Help on kernel debugger

Greg 'groggy' Lehey grog at FreeBSD.org
Tue Feb 24 16:52:42 PST 2004


On Tuesday, 24 February 2004 at 11:23:40 +0530, sundeep.puliccott at wipro.com wrote:
>
> I need to use a kernel debugger on FreeBSD 4.8 to check if
> my messages to the kernel have all the info required and if
> Is being processed.

I don't really understand what you mean here.

> DDB is the debugger mentioned in the handbook. Will DDB help
> Me debug the kernel on the target itself?

That's one possibility.

> All that I have read abt DDB is debugging from a remote box over a
> serial line.

No, that's gdb.

> I have rebuilt my kernel with the options
>
> # Kernel debugger support
> options         DDB
> options         DDB_UNATTENDED

A lot depends on exactly what you want to do.  There's an man page
gdb(4) in -CURRENT which will, to some extent, help you with remote
debugging.  Note that the macros mentioned are in 4.8, but they're in
a different form in the directory /usr/src/sys/modules/vinum.  You'll
have to play around with them to get them to work.  Also, 4.8 does not
support debugging over firewire.

If you have specific questions, I suggest you follow up on
FreeBSD-hackers at FreeBSD.org.

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
Note: I discard all HTML mail unseen.
Finger grog at FreeBSD.org for PGP public key.
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/20040225/0111e4fb/attachment.bin


More information about the freebsd-questions mailing list