From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 77990385780F; Mon, 16 May 2022 15:10:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77990385780F 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 exception regression on Windows X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: cdd4206647d0ef8d54d0fa66b3dfa57a4ec07db9 X-Git-Newrev: 1779689128d45ca6fd1d1484f2fd907ac791873e Message-Id: <20220516151012.77990385780F@sourceware.org> Date: Mon, 16 May 2022 15:10:12 +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, 16 May 2022 15:10:12 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1779689128d4= 5ca6fd1d1484f2fd907ac791873e commit 1779689128d45ca6fd1d1484f2fd907ac791873e Author: Tom Tromey Date: Wed May 4 10:28:35 2022 -0600 Fix Ada exception regression on Windows =20 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. 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 8333671c48b..248b847cfbc 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 (); =20 /* Reparse the exception conditional expressions. One for each location. */