From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 124AE385801B; Mon, 1 Aug 2022 15:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 124AE385801B From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/29277] jit_event_handler: Assertion `jiter->jiter_data != nullptr' failed with separate debug files Date: Mon, 01 Aug 2022 15:56:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2022 15:56:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29277 --- Comment #5 from Tom de Vries --- Fixed by: ... diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index dae96d205be..4ea22f4bd9c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5669,7 +5669,10 @@ handle_jit_event (CORE_ADDR address) function needs to be updated too. */ bound_minimal_symbol jit_bp_sym =3D lookup_minimal_symbol_by_pc (address= ); gdb_assert (jit_bp_sym.objfile !=3D nullptr); - jit_event_handler (gdbarch, jit_bp_sym.objfile); + objfile *objfile =3D jit_bp_sym.objfile; + if (objfile->separate_debug_objfile_backlink) + objfile =3D objfile->separate_debug_objfile_backlink; + jit_event_handler (gdbarch, objfile); target_terminal::inferior (); } ... which is essentially a refactoring of the patch from comment 1. --=20 You are receiving this mail because: You are on the CC list for the bug.=