From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7657 invoked by alias); 1 Feb 2002 17:26:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7522 invoked from network); 1 Feb 2002 17:26:07 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 1 Feb 2002 17:26:07 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16WhS1-0007MP-00; Fri, 01 Feb 2002 12:26:13 -0500 Date: Fri, 01 Feb 2002 09:26:00 -0000 From: Daniel Jacobowitz To: Salman Khilji Cc: gdb@sources.redhat.com Subject: Re: Debugging gdb with gdb Message-ID: <20020201122613.A28169@nevyn.them.org> Mail-Followup-To: Salman Khilji , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00034.txt.bz2 On Fri, Feb 01, 2002 at 04:25:15PM +0000, Salman Khilji wrote: > I am running gdb under gdb. > > Lets assume gdb starts mygdb. I issue the run command in (gdb) without > setting any breakpoints anywhere. mygdb comes up and the prompt now says > (mygdb) instead of (gdb). I want to put a break point somewhere inside the > mygdb code---not the program that mygdb is going to debug. However if I > issue the break command, the break point is going to be set in the program > that (mygdb) is going to debug---not in mygdb itself. > > So the question is: How do I temporarily stop the target application in > gdb---set a break point in the target---then continue? This is useful in > GUI applications as well. Hit control-C at the (mygdb) prompt, and it should stop on the parent GDB. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer