Date: Mon, 15 May 2006 15:14:10 +0400 (MSD) From: Maxim Konovalov <maxim@macomnet.ru> To: Sam Leffler <sam@errno.com> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files src/sys/gdb gdb_cons.c gdb_int.h gdb_main.c Message-ID: <20060515145944.V71191@mp2.macomnet.net> In-Reply-To: <44232AED.9020504@errno.com> References: <200603232306.k2NN6EVk018671@repoman.freebsd.org> <44232AED.9020504@errno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060515145944.V71191>
