From owner-freebsd-current Fri May 9 02:43:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA23680 for current-outgoing; Fri, 9 May 1997 02:43:49 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA23675 for ; Fri, 9 May 1997 02:43:44 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id LAA25977 for current@FreeBSD.ORG; Fri, 9 May 1997 11:43:41 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id KAA03600; Fri, 9 May 1997 10:15:29 +0200 (MET DST) Message-ID: <19970509101528.TX43772@uriah.heep.sax.de> Date: Fri, 9 May 1997 10:15:28 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: current@FreeBSD.ORG Subject: Re: Problems using remote gdb References: <199705082344.JAA10890@godzilla.zeta.org.au> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199705082344.JAA10890@godzilla.zeta.org.au>; from Bruce Evans on May 9, 1997 09:44:56 +1000 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Bruce Evans wrote: > The configuration of serial consoles is under development and not very > suiatble for putting in handbooks (the current configuration doesn't > apply to 2.2...). There's no problem for the handbook verbally mentioning the differences between version. Well actually, the information in the handbook works for 2.2, so the flags only have to be mentioned as a 3.0 item. > > strip -x, and boot it using the -d boot option. Connect the first > ^^^^^^^^^ > > serial line of the target machine to any serial line of the debugging > ^^^^^^^^^^^ Now any sio port can be used. Previously only sio0 with > the default configuration (with i/o address 0x3f8, etc.) > could be used. What are the knobs for this? > > Initialize the remote debugging session (assuming the first serial > ^^^^^^^^^^^^^^^^ > > port is being used) by: > ^^^^ > > > >(kgdb) target remote /dev/cuaa0 > ^^^^^^^^^^^ > > This is the first sio port on a FreeBSD debugger-host. Any serial port on > any debugger-host can be used. Sure. That's why a wrote ``assuming the first serial port''. From a kernel hacker, i expect he knows that the second port will be cuaa1 etc. ;-) > > Now, on the target host (that entered DDB right before even starting > ^^^^^^^^^^^ some confusion about `host'. > I used it for the machine running gdb. > > the device probe), type: Target host is the machine running the kernel to test. That's also the machine that now (apparently) requires some flags to sio0 (or whatever has been chosen), so my question: which flags? According to Justin, 0x40. -- 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. ;-)