cvs commit: src/sys/conf files src/sys/gdb gdb_cons.c gdb_int.h gdb_main.c

Sam Leffler sam at
Thu Mar 23 23:10:39 UTC 2006

Sam Leffler wrote:
> sam         2006-03-23 23:06:14 UTC
>   FreeBSD src repository
>   Modified files:
>     sys/conf             files 
>     sys/gdb              gdb_int.h gdb_main.c 
>   Added files:
>     sys/gdb              gdb_cons.c 
>   Log:
>   add support for copying console messages to a remote gdb

To use this do something like:

1. add debug.gdbcons="1" in loader.conf
2. boot -d; gdb; step
3. attach gdb

You'll see the boot messages and all console output.  To turn this 
on/off use the debug.gdbcons sysctl.

Note that console messages can cause a kernel to hang if you take away 
the remote gdb as the gdb packet protocol code works synchronously and 
doesn't have a robust way to detect when the dbg port is not being serviced.

Tested only with a serial port on i386.  It'd be nice if someone setup 
to use firewire would verify it works.  I couldn't find an appropriate 
manual page to document this.


More information about the cvs-src mailing list