* sourcing gdb-scripts and future shared lib loads
@ 2005-12-20 15:33 Fabio De Bona
2005-12-20 15:37 ` Joel Brobecker
0 siblings, 1 reply; 2+ messages in thread
From: Fabio De Bona @ 2005-12-20 15:33 UTC (permalink / raw)
To: gdb
Hi everyone,
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 ?
Regards
Fabio De Bona
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sourcing gdb-scripts and future shared lib loads
2005-12-20 15:33 sourcing gdb-scripts and future shared lib loads Fabio De Bona
@ 2005-12-20 15:37 ` Joel Brobecker
0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2005-12-20 15:37 UTC (permalink / raw)
To: Fabio De Bona; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-20 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 15:33 sourcing gdb-scripts and future shared lib loads Fabio De Bona
2005-12-20 15:37 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox