From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11698 invoked by alias); 18 Feb 2008 08:54:13 -0000 Received: (qmail 11685 invoked by uid 22791); 18 Feb 2008 08:54:13 -0000 X-Spam-Check-By: sourceware.org Received: from ctb-mesg-1-1.saix.net (HELO ctb-mesg-1-1.saix.net) (196.25.240.79) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Feb 2008 08:53:44 +0000 Received: from [192.168.0.8] (dsl-242-38-199.telkomadsl.co.za [41.242.38.199]) by ctb-mesg-1-1.saix.net (Postfix) with ESMTP id 3359820AF4 for ; Mon, 18 Feb 2008 10:53:41 +0200 (SAST) From: "Gerrit van Niekerk" To: gdb@sources.redhat.com Date: Mon, 18 Feb 2008 09:04:00 -0000 MIME-Version: 1.0 Subject: Re: How do you debug gdb? Reply-to: gerritvn@gpvno.co.za,gpvno@telkomsa.net Message-ID: <47B963B5.11861.1636CBA4@gerritvn.gpvno.co.za> In-reply-to: References: X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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: 2008-02/txt/msg00125.txt.bz2 On 17 Feb 2008 at 20:00, Ray Hurst wrote: > It seemed that this question was better suited for the development group > than in the general group. > > How do you debug gdb? > > In other words, if I have a problem with gdb itself how do I go about > debugging the issue? > You first have to build GDB with symbols, so you run "config" and then "make". If you debug gdb right in the directory it was created, you automatically get a script loaded which will differentiate between a breakpoint being hit in gdb and in the debug target.