Bug 18183 - saving and restoring breakpoints -vs- pending
Summary: saving and restoring breakpoints -vs- pending
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 20:31 UTC by Tom Tromey
Modified: 2023-01-23 22:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2015-03-30 20:31:14 UTC
I saved my breakpoints to a file, then in a new session,
"source"d the file to recreate them.
However, they weren't recreated, because I had neglected to
"set breakpoint pending on":

(gdb) source /tmp/B
Function "nsDOMWindowUtils::SendMouseEventCommon" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
No source file named EventBinding.cpp.
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]


One way around this would be to arrange for this to be handled explicitly in the
saved script.
Comment 1 Tom Tromey 2018-04-12 20:05:15 UTC
Maybe a "-pending" flag could be added to the "break" command for this.
Comment 2 Tom Tromey 2023-01-21 21:47:41 UTC
The 'save' command could now emit:

with breakpoint pending on -- break ...
Comment 3 Tom Tromey 2023-01-23 22:52:48 UTC
I have a patch now.