Date: Thu, 24 Apr 1997 08:48:37 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org Cc: pavlin@catarina.usc.edu (Pavlin Ivanov Radoslavov) Subject: Re: Kernel remote debugging using gdb Message-ID: <19970424084837.TT37090@uriah.heep.sax.de> In-Reply-To: <199704240118.SAA05346@catarina.usc.edu>; from Pavlin Ivanov Radoslavov on Apr 23, 1997 18:18:55 -0700 References: <199704240118.SAA05346@catarina.usc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
As Pavlin Ivanov Radoslavov wrote: > I need to do remote debugging of the kernel, but I am using the > first serial port as a serial console. How can I specify/change the > target machine to use the second serial port for remote debugging > purpose? Changing CONADDR and CONUNIT will affect the serial console > too, right? Bruce once mentioned that you need to patch sio.c. I gave up that idea, and simply disabled the serial console whenever i need remote gdb. Boot with -d, then add 0x10000 (RB_MUTE) to the value of `boothowto', type `gdb', and continue. If you wanna switch back from GDB to DDB, set the variable `cn_mute' to 0 again, and type `detach' in GDB. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970424084837.TT37090>