Date: Thu, 23 Mar 2006 15:10:37 -0800 From: Sam Leffler <sam@errno.com> To: src-committers@FreeBSD.org Cc: cvs-src@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: <44232AED.9020504@errno.com> In-Reply-To: <200603232306.k2NN6EVk018671@repoman.freebsd.org> References: <200603232306.k2NN6EVk018671@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44232AED.9020504>