From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id A416C3858C52; Mon, 2 May 2022 14:32:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A416C3858C52 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix Ada catchpoint regression X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: a55939ca586b81c16cc95fa692a7862551cc6773 X-Git-Newrev: 73a7911e8e5f77145f93cfc5f6596aead79f6fee Message-Id: <20220502143235.A416C3858C52@sourceware.org> Date: Mon, 2 May 2022 14:32:35 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 14:32:35 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D73a7911e8e5f= 77145f93cfc5f6596aead79f6fee commit 73a7911e8e5f77145f93cfc5f6596aead79f6fee Author: Tom Tromey Date: Mon May 2 08:26:49 2022 -0600 Fix Ada catchpoint regression =20 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. =20 This patch fixes the problem. I'm checking it in. Diff: --- 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 @@ public: =20 /* An instance of this type is used to represent an Ada catchpoint. */ =20 -struct ada_catchpoint : public breakpoint +struct ada_catchpoint : public base_breakpoint { explicit ada_catchpoint (enum ada_exception_catchpoint_kind kind) : m_kind (kind)