Remote Debugging using GDB on Linux
Marcel Moolenaar
marcel at xcllnt.net
Tue Apr 20 08:23:33 PDT 2004
On Tue, Apr 20, 2004 at 03:17:56AM -0500, William M. Grim wrote:
> Hi!
>
> Is it possible to do remote debugging of the FreeBSD kernel over a
> serial connection using Linux? FreeBSD has a special "-k" switch that
> Linux does not for GDB; so, I'm not even sure it's possible without a
> lot of work.
Most of the logic is in the gdb stub, which lives in the kernel. You
don't have to use -k to be able to remote debug the kernel. It may
have to be a cross-debugger (host=*-*-linux*, target=*-*-freebsd*).
In principle it should not be necessary, provided the host and target
architectures are the same.
In short: try it. chances are it works. If not, try with a cross-gdb.
HTH,
--
Marcel Moolenaar USPA: A-39004 marcel at xcllnt.net
More information about the freebsd-hackers
mailing list