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

Maxim Konovalov maxim at macomnet.ru
Mon May 15 04:14:38 PDT 2006


Hi Sam,

On Thu, 23 Mar 2006, 15:10-0800, Sam Leffler wrote:

> 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.

Yes, it works:

gdb% trf
kdb_thr_from_pid (pid=0x0) at /usr/src/sys/kern/subr_kdb.c:394
394     {
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
gdb% c
Continuing.
WARNING: R/W mount of / denied.  Filesystem is not clean - run fsck
WARNING: /home was not properly dismounted
/home: mount pending error: blocks 600 files 6
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 36 files 14
WARNING: /vol0 was not properly dismounted
wi0: <Intersil Prism2.5> mem 0xf8000000-0xf8000fff at device 2.0 on pci2
...

-- 
Maxim Konovalov



More information about the cvs-src mailing list