Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Fabio De Bona <Auslieferator@gmx.net>
Cc: gdb@sources.redhat.com
Subject: Re: sourcing gdb-scripts and future shared lib loads
Date: Tue, 20 Dec 2005 15:37:00 -0000	[thread overview]
Message-ID: <20051220153713.GV31944@adacore.com> (raw)
In-Reply-To: <43A824AB.1030709@gmx.net>

> I face the following problem: I created a file with gdb commands to be 
> sourced in gdb or used via gdb -x file, in which I want to set some
> breakpoints in parts of my application that are loaded in the future. 
> When you do this interactive gdb usually asks you if you want to create
> breakpoints for symbols loaded in the future. The problem is that the 
> question is automatically answered with "no" if you use the above script
> approach (same like setting 'set confirm off' in interactive mode). How 
> can I tell gdb to answer all questions with "yes" when it executes one 
> of my scripts ? Has anyone an idea how to solve this problem ?

Read the manual, Luke. The following should help you solve that problem:

(gdb) help set breakpoint pending
Set debugger's behavior regarding pending breakpoints.
If on, an unrecognized breakpoint location will cause gdb to create a
pending breakpoint.  If off, an unrecognized breakpoint location results in
an error.  If auto, an unrecognized breakpoint location results in a
user-query to see if a pending breakpoint should be created.

-- 
Joel


      reply	other threads:[~2005-12-20 15:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20 15:33 Fabio De Bona
2005-12-20 15:37 ` Joel Brobecker [this message]

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=20051220153713.GV31944@adacore.com \
    --to=brobecker@adacore.com \
    --cc=Auslieferator@gmx.net \
    --cc=gdb@sources.redhat.com \
    /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