debugging kernel with remote gdb

Dmitry Sivachenko demon at cavia.pp.ru
Sat Apr 19 03:07:41 PDT 2003


On Sat, Apr 19, 2003 at 01:22:49PM +0930, Greg 'groggy' Lehey wrote:
> On Friday, 18 April 2003 at 18:48:30 +0400, Dmitry Sivachenko wrote:
> > Hello!
> >
> > I have two machines: one IA32 running FreeBSD and the other SPARC
> > running Solaris.  I want to debug FreeBSD kernel using remote gdb.
> > After reading developers handbook it is unclear whether it is
> > possible to use my SPARC for that purpose?
> 
> Theoretically, yes.  In practice, you'll need a version of gdb which
> understands the ia32 instruction set, and I suspect you'll have to
> build that yourself.  You might get a more accurate answer on the
> sparc64 mailing list.
> 

Well, I built gdb to understand i386-freebsd target (using --target
option).  The problem is that it seems stock gdb does not
understand '-k' option (for kernel debugging).

May be I am missing something obvious?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030419/7f1d8208/attachment.bin


More information about the freebsd-questions mailing list