debugging kernel with remote gdb

Greg 'groggy' Lehey grog at FreeBSD.org
Sun Apr 20 21:08:20 PDT 2003


On Saturday, 19 April 2003 at 14:07:36 +0400, Dmitry Sivachenko wrote:
> 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?

I don't think you need the -k option for serial debugging.  It's only
needed for processor dumps, and it's a FreeBSD extension, so you'd
need to port the FreeBSD version of gdb.  Try it and see.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers
-------------- 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/20030421/19414e7c/attachment.bin


More information about the freebsd-questions mailing list