public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Fix Ada catchpoint regression
@ 2022-05-02 14:32 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-05-02 14:32 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

The breakpoint C++-ification series introduced a regression for Ada
catchpoints.  Specifically, commit 2b5ab5b8 ("Convert base breakpoints
to vtable ops") caused these to start failing.  I didn't notice this
because testing Ada using a Linux distro compiler requires installing
the GNAT debuginfo, which I hadn't done.

This patch fixes the problem.  I'm checking it in.
---
 gdb/ada-lang.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index f1af28a696a..54bcd86ee7f 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -12122,7 +12122,7 @@ class ada_catchpoint_location : public bp_location
 
 /* An instance of this type is used to represent an Ada catchpoint.  */
 
-struct ada_catchpoint : public breakpoint
+struct ada_catchpoint : public base_breakpoint
 {
   explicit ada_catchpoint (enum ada_exception_catchpoint_kind kind)
     : m_kind (kind)
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-02 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 14:32 [pushed] Fix Ada catchpoint regression Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).