From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6585B3858D39; Thu, 29 Sep 2022 14:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6585B3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664462533; bh=kBB+eWarE9pR+2FiefpOqUY+6I7qdq92u0DUcjih71Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VBl6qzX92RhouYSiJM+57UVvuCvlgNkae3L3AbKWiPLVoKy9s0ZrtGgMs0ZE4FgFq cSyo8ELTocCDf49pFiINENUo49YeMllg1nmMdKh8mieKBe3+IEiNUzxsSAHFdpHDJh I5W0bbNsw0yqDXr1kDRQgvvhsoTwwgbecTQJVXGc= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/26761] thread.c:95: internal-error: thread_info* inferior_thread(): Assertion `current_thread_ != nullptr' failed Date: Thu, 29 Sep 2022 14:42:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D26761 --- Comment #12 from Tom de Vries --- Alternatively: ... diff --git a/gdb/proc-service.c b/gdb/proc-service.c index dd3d7c9201e..88f07d78236 100644 --- a/gdb/proc-service.c +++ b/gdb/proc-service.c @@ -73,13 +73,9 @@ ps_xfer_memory (const struct ps_prochandle *ph, psaddr_t addr, gdb_byte *buf, size_t len, int write) { scoped_restore_current_inferior restore_inferior; - set_current_inferior (ph->thread->inf); - scoped_restore_current_program_space restore_current_progspace; - set_current_program_space (ph->thread->inf->pspace); - scoped_restore save_inferior_ptid =3D make_scoped_restore (&inferior_pti= d); - inferior_ptid =3D ph->thread->ptid; + switch_to_thread_no_regs (ph->thread); CORE_ADDR core_addr =3D ps_addr_to_core_addr (addr); ... --=20 You are receiving this mail because: You are on the CC list for the bug.=