From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1215 invoked by alias); 1 Feb 2002 16:25:19 -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 1020 invoked from network); 1 Feb 2002 16:25:17 -0000 Received: from unknown (HELO hotmail.com) (216.33.149.47) by sources.redhat.com with SMTP; 1 Feb 2002 16:25:17 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 1 Feb 2002 08:25:15 -0800 Received: from 64.211.171.168 by lw4fd.law4.hotmail.msn.com with HTTP; Fri, 01 Feb 2002 16:25:15 GMT X-Originating-IP: [64.211.171.168] From: "Salman Khilji" To: gdb@sources.redhat.com Bcc: Subject: Debugging gdb with gdb Date: Fri, 01 Feb 2002 08:25:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Feb 2002 16:25:15.0451 (UTC) FILETIME=[07C0B8B0:01C1AB3D] X-SW-Source: 2002-02/txt/msg00021.txt.bz2 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. Salman _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com