aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-04 10:28:35 -0600
committerTom Tromey <tromey@adacore.com>2022-05-16 09:08:43 -0600
commit1779689128d45ca6fd1d1484f2fd907ac791873e (patch)
tree83f87fd0e2fdf27d33d91269784e05377da11d15 /gdb/ada-lang.c
parentcdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9 (diff)
downloadbinutils-1779689128d45ca6fd1d1484f2fd907ac791873e.zip
binutils-1779689128d45ca6fd1d1484f2fd907ac791873e.tar.gz
binutils-1779689128d45ca6fd1d1484f2fd907ac791873e.tar.bz2
Fix Ada exception regression on Windows
The breakpoint c++-ification series introduced another bug in Ada -- it caused "catch exception" and related commands to fail on Windows. The problem is that the re_set method calls the wrong superclass method, so the breakpoint doesn't get correctly re-set when the runtime offsets change. This patch fixes the problem.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 8333671..248b847 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -12212,7 +12212,7 @@ ada_catchpoint::re_set ()
{
/* Call the base class's method. This updates the catchpoint's
locations. */
- this->breakpoint::re_set ();
+ this->base_breakpoint::re_set ();
/* Reparse the exception conditional expressions. One for each
location. */