From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22066 invoked by alias); 21 Feb 2007 19:58:23 -0000 Received: (qmail 22055 invoked by uid 22791); 21 Feb 2007 19:58:22 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Feb 2007 19:58:16 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id AF5BD124914; Wed, 21 Feb 2007 11:58:10 -0800 (PST) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04087-06-3; Wed, 21 Feb 2007 11:58:09 -0800 (PST) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id 73CAE1248BB; Wed, 21 Feb 2007 11:58:09 -0800 (PST) Received: from 192.168.92.81 ([192.168.92.81]) by ussunex01.palmsource.com ([192.168.101.9]) via Exchange Front-End Server owa.palmsource.com ([10.0.20.17]) with Microsoft Exchange Server HTTP-DAV ; Wed, 21 Feb 2007 19:58:09 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 21 Feb 2007 11:58:09 -0800 Subject: Re: Debug the Debugger From: Michael Snyder To: Markus Deuling Cc: GDB Discuss In-Reply-To: <45A54567.8080808@de.ibm.com> References: <45A542CC.2090906@de.ibm.com> <20070110195443.GA11558@nevyn.them.org> <45A54567.8080808@de.ibm.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 21 Feb 2007 21:57:00 -0000 Message-Id: <1172087889.9824.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00225.txt.bz2 On Wed, 2007-01-10 at 20:58 +0100, Markus Deuling wrote: > Daniel Jacobowitz schrieb: > > On Wed, Jan 10, 2007 at 08:47:24PM +0100, Markus Deuling wrote: > >> Hi, > >> > >> I try debugging gdb with gdb. GDB Internals Manual (19.2, p.96) says "The > >> info command, when executed without a subcommand in a GDB being debugged by > >> gdb, will pop you backup to the top leve gdb." > >> > >> But it doesn't :-( > > > > This relies on a breakpoint on info_command. The gdbinit file in the > > gdb object directory sets that up. If you run GDB from anywhere else, > > you won't get it. > > > > Like Paul, I usually use C-c. > > > > Aha ?!? Ok, interesting idea. Well, I think I'll take the C-c :-) And in case that doesn't work, I habitually set a breakpoint on "help_command". Then you just say "help foo", and you're back in the top-level debugger.