This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Debugging gdb with gdb
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Salman Khilji <salmankhilji at hotmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 1 Feb 2002 12:26:13 -0500
- Subject: Re: Debugging gdb with gdb
- References: <F47tuKOaxeTBTcnv57p0000b1ec@hotmail.com>
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