diff options
author | Tom Tromey <tromey@adacore.com> | 2024-05-24 10:51:02 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-12-16 10:55:44 -0700 |
commit | 59d25b31eb54130f1115aae20da4ac9ccaa15a53 (patch) | |
tree | 1f2b43b4921d428ebca845fd7a3557122d190802 /gdb/top.h | |
parent | 72491a6a7e2cb586db566d37a278df2d88500060 (diff) | |
download | gdb-59d25b31eb54130f1115aae20da4ac9ccaa15a53.zip gdb-59d25b31eb54130f1115aae20da4ac9ccaa15a53.tar.gz gdb-59d25b31eb54130f1115aae20da4ac9ccaa15a53.tar.bz2 |
Don't let exception terminate 'rbreak'
'rbreak' searches symbols and then sets a number of breakpoints. If
setting one of the breakpoints fails, then 'rbreak' will terminate
before examining the remaining symbols.
However, it seems to me that it is better for 'rbreak' to keep going
in this situation. That is what this patch implements.
This problem can be seen by writing an Ada program that uses "pragma
import" to reference a symbol that does not have debug info. In this
case, the program will link but setting a breakpoint on the imported
name will not work.
I don't think it's possible to write a reliable test for this, as it
depends on the order in which symtabs are examined.
New in v2: rbreak now shows how many breakpoints it made and also how
many errors it encountered.
Regression tested on x86-64 Fedora 40.
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/top.h')
0 files changed, 0 insertions, 0 deletions