From owner-freebsd-hackers Thu Apr 24 14:51:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA03650 for hackers-outgoing; Thu, 24 Apr 1997 14:51:45 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [199.184.181.250]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA03640 for ; Thu, 24 Apr 1997 14:51:41 -0700 (PDT) Received: from right.PCS (right.pcs. [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id QAA22125; Thu, 24 Apr 1997 16:54:17 -0500 (CDT) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id QAA21681; Thu, 24 Apr 1997 16:51:54 -0500 Message-ID: <19970424165153.38383@right.PCS> Date: Thu, 24 Apr 1997 16:51:53 -0500 From: Jonathan Lemon To: Bakul Shah Cc: Pavlin Ivanov Radoslavov , hackers@freebsd.org Subject: Re: Kernel remote debugging using gdb References: <199704240840.BAA06706@catarina.usc.edu> <199704241351.JAA13535@chai.plexuscom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <199704241351.JAA13535@chai.plexuscom.com>; from Bakul Shah on Apr 04, 1997 at 09:51:23AM -0400 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Apr 04, 1997 at 09:51:23AM -0400, Bakul Shah wrote: > If you can _live_ with sharing the same sio port for console and > gdb, there is a way. Not pretty but it works. First, as Amancio > suggested, swap your connections to the UUG (Unix under GDB :-) so > that the PC is now attached to COM1. Now you can switch between gdb > and a comm program like kermit. The kermit window will show you > all your printfs. Any time you want to drop into gdb, send a break, > stop kermit and switch to gdb and hit ^C in it. If you are in > kermit when the kernel stops due to a breakpoint it is easy to see > and switch to gdb. actually, if you do 'set remotebreak 1' in gdb, then you can use ^C from gdb to drop directly into the debugger. Now, is there any way to get _back_ to DDB after invoking the remote GDB protocol? -- Jonathan