Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: gdb@sources.redhat.com, i_am_triumph@ofir.dk
Subject: Re: Debugging GDB and breaking?
Date: Wed, 18 Dec 2002 07:59:00 -0000	[thread overview]
Message-ID: <jevg1rxqrl.fsf@sykes.suse.de> (raw)
In-Reply-To: <200212181523.gBIFNUZ10382@duracef.shout.net> (Michael Elizabeth Chastain's message of "Wed, 18 Dec 2002 09:23:30 -0600")

Michael Elizabeth Chastain <mec@shout.net> 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."


  reply	other threads:[~2002-12-18 15:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18  7:23 Michael Elizabeth Chastain
2002-12-18  7:59 ` Andreas Schwab [this message]
2002-12-18 11:01 ` Grant Edwards
  -- strict thread matches above, loose matches on Subject: below --
2002-12-19  1:16 James Sampson
2002-12-18  5:49 James Sampson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jevg1rxqrl.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb@sources.redhat.com \
    --cc=i_am_triumph@ofir.dk \
    --cc=mec@shout.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox