From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F08133858002; Mon, 27 Jun 2022 14:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F08133858002 From: "hector.oron at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/29277] jit_event_handler: Assertion `jiter->jiter_data != nullptr' failed with separate debug files Date: Mon, 27 Jun 2022 14:06:50 +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: hector.oron at gmail dot com 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: cc 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, 27 Jun 2022 14:06:51 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29277 HectorOron changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hector.oron at gmail dot c= om --- Comment #1 from HectorOron --- Proposed patch: --- gdb-12.1.orig/gdb/breakpoint.c +++ gdb-12.1/gdb/breakpoint.c @@ -5549,7 +5549,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); + if (jit_bp_sym.objfile->separate_debug_objfile_backlink) + jit_event_handler (gdbarch, jit_bp_sym.objfile->separate_debug_objfile_backlink); + else + jit_event_handler (gdbarch, jit_bp_sym.objfile); target_terminal::inferior (); } --=20 You are receiving this mail because: You are on the CC list for the bug.=