gdb over Firewire
Greg 'groggy' Lehey
grog at FreeBSD.org
Thu Feb 17 00:01:34 GMT 2005
On Friday, 11 February 2005 at 10:11:31 +0100, Gerald Heinig wrote:
> Hello Current'ers,
>
> I'm trying to get two-machine kernel debugging over Firewire working,
> unfortunately without much luck so far. dconschat over Firewire works
> fine, but gdb won't attach, complaining about get_tty_state failed,
> among other things.
> Is kernel gdb over Firewire a -current-only feature?
Sorry for the slow reply; I've been busy.
No, it's not a current-only feature. It used to work, but I've had a
lot of difficulty since the introduction of the new gdb framework.
Try this:
$ sysctl debug.kdb
debug.kdb.available: ddb
debug.kdb.current: ddb
debug.kdb.enter: 0
debug.kdb.stop_cpus: 1
That's what I get, and it indicates that I don't have gdb capability.
If that's what you get, try building a kernel with firewire support
built-in (as opposed to the (recommended) method of loading the
firewire klds later). The background here is the hypothesis that the
kernel checks for debug back-ends at boot time, and not later, so if
you load the firewire klds later, it won't be registered.
Note that this is a hypothesis. If you try this, please let us know
what happens.
Greg
--
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-current/attachments/20050217/2a8d6c03/attachment.bin
More information about the freebsd-current
mailing list