From owner-freebsd-hackers Thu Apr 24 01:53:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA24875 for hackers-outgoing; Thu, 24 Apr 1997 01:53:56 -0700 (PDT) Received: from catarina.usc.edu (catarina.usc.edu [128.125.51.47]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA24633 for ; Thu, 24 Apr 1997 01:48:03 -0700 (PDT) Received: from carlsbad.usc.edu (carlsbad.usc.edu [128.125.51.5]) by catarina.usc.edu (8.6.10/8.6.9) with SMTP id BAA06706; Thu, 24 Apr 1997 01:40:55 -0700 Message-Id: <199704240840.BAA06706@catarina.usc.edu> X-Authentication-Warning: catarina.usc.edu: Host carlsbad.usc.edu didn't use HELO protocol To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-hackers@freebsd.org Subject: Re: Kernel remote debugging using gdb In-reply-to: Your message of "Thu, 24 Apr 1997 08:48:37 +0200." <19970424084837.TT37090@uriah.heep.sax.de> Date: Thu, 24 Apr 1997 01:40:52 -0700 From: Pavlin Ivanov Radoslavov Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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 You mean "write boothowto+0x10000 to cn_mute", right? However, maybe I wasn't very clear in my first email: The PC has two serial ports. The first one is connected to a Digi Portserver and is used as a serial console (no monitor, no keyboard). The second serial port is connected to another PC and it is the port I want to use for remote debugging. Thus I need explicitly to specify that I need to use the second serial port to debug instead of the default first one. Because by doing the above procedure, the target kernel is still trying to use the first serial port for the debugging purpose. Pavlin P.S. The OS is FreeBSD 2.2.1 > 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. ;-)