From owner-freebsd-hackers Wed Jun 6 11:35:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from nimitz.mcnett (cse-air-dhcp-208.ucsd.edu [132.239.10.208]) by hub.freebsd.org (Postfix) with ESMTP id 7440A37B401 for ; Wed, 6 Jun 2001 11:35:14 -0700 (PDT) (envelope-from mmcnett@cs.ucsd.edu) Received: from cs.ucsd.edu (localhost [127.0.0.1]) by nimitz.mcnett (8.11.1/8.11.1) with ESMTP id f56IdLU00473; Wed, 6 Jun 2001 11:39:22 -0700 (PDT) (envelope-from mmcnett@cs.ucsd.edu) Message-ID: <3B1E78D9.4F30DE9E@cs.ucsd.edu> Date: Wed, 06 Jun 2001 11:39:21 -0700 From: Marvin McNett X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: Juan Fco Rodriguez Hervella Subject: Re: On-Line Kernel Debugging Using Remote GDB References: <3B1E4EA5.528E5D59@it.uc3m.es> <3B1E54FF.7C2CCEA9@cs.ucsd.edu> <3B1E67A2.B86660F1@it.uc3m.es> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Looks like you forgot to set the 'flags 080' on the sio device of the machine being debugged. This is a logical OR with what was set before. So, for me, I changed the line in my kernel config device sio0 at isa? port IO_COM1 flags 0x10 irq 4 to device sio0 at isa? port IO_COM1 flags 0x90 irq 4 and attach my serial cable to the first serial port of the machine being debugged. Also, you want to use target remote /dev/cuaa0 (the dialout serial port) assuming you've attached your serial cable to the first serial port of the debugging host. Finally, you won't have any sioX devices in /dev, so stop looking for them. :-) Juan Fco Rodriguez Hervella wrote: > When I type 'gdb', this happens: > > gdb> gdb > gdb> No gdb port enable. Set flag 0x80 on desired port > gdb> in your configuration file (currently sio only) > > Other question related: > > Which is the difference between /dev/cuaaX and /dev/ttydX ? > I have to type in REMOTE machine 'target remote /dev/cuaaX or > /dev/ttydX' ? > and also, I dont find the sioX devices in /dev. > > Thansk very much. > > Marvin McNett escribió: > > > > I'm not sure if you're already doing this but, on the machine being > > debugged, you must switch to gdb mode by typing 'gdb' at the DDB > > prompt. Then, after running gdb -k on your debugging box, go back to > > the machine being debugged and type 's'. If you're already doing this, > > then it looks like you've got a communication problem. Let me know and > > I'll send you more information about my setup. > > > > -Marvin > > -- > ********************************* > Juan F. Rodriguez Hervella > Universidad Carlos III de Madrid > ******************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message