From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10644 invoked by alias); 18 Dec 2002 15:59:10 -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 10603 invoked from network); 18 Dec 2002 15:59:07 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by 209.249.29.67 with SMTP; 18 Dec 2002 15:59:07 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id C855E14805; Wed, 18 Dec 2002 16:58:55 +0100 (MET) To: Michael Elizabeth Chastain Cc: gdb@sources.redhat.com, i_am_triumph@ofir.dk Subject: Re: Debugging GDB and breaking? References: <200212181523.gBIFNUZ10382@duracef.shout.net> X-Yow: I'm having a tax-deductible experience! I need an energy crunch!! From: Andreas Schwab Date: Wed, 18 Dec 2002 07:59:00 -0000 In-Reply-To: <200212181523.gBIFNUZ10382@duracef.shout.net> (Michael Elizabeth Chastain's message of "Wed, 18 Dec 2002 09:23:30 -0600") Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-12/txt/msg00275.txt.bz2 Michael Elizabeth Chastain writes: |> Some general hints for debugging gdb: |> |> I start with "gdb /my/gdb/to/debug/bin/gdb". I like to use a stable gdb |> for the top gdb, such as the vendor-supplied gdb or gdb 5.3. Also this |> helps separate, in my mind, the top gdb from the inferior gdb. |> |> Then I immediately: |> |> (gdb) set prompt [top] |> [top] break help_command |> [top] set args /program/under/test |> |> The first line distinguishes the top gdb from the inferior gdb. If you start gdb from the build directory you get these thing automatically through the .gdbinit file in this directory. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."