public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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 [thread overview] Message-ID: <bug-26761-4717-H2JA5KnTwm@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26761-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26761 --- Comment #12 from Tom de Vries <vries at gcc dot gnu.org> --- 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 = make_scoped_restore (&inferior_ptid); - inferior_ptid = ph->thread->ptid; + switch_to_thread_no_regs (ph->thread); CORE_ADDR core_addr = ps_addr_to_core_addr (addr); ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-09-29 14:42 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-20 16:07 [Bug gdb/26761] New: " vries at gcc dot gnu.org 2020-10-20 16:07 ` [Bug gdb/26761] " vries at gcc dot gnu.org 2020-11-25 21:05 ` marcdufresne at laposte dot net 2020-12-13 13:12 ` ddresser at bmc dot com 2020-12-14 19:04 ` simark at simark dot ca 2020-12-14 19:06 ` simark at simark dot ca 2021-02-17 22:34 ` Minima2014 at iCloud dot com 2021-09-16 1:17 ` parke.nexus at gmail dot com 2021-09-19 2:10 ` simark at simark dot ca 2021-09-19 3:43 ` parke.nexus at gmail dot com 2022-09-29 10:02 ` vries at gcc dot gnu.org 2022-09-29 12:07 ` vries at gcc dot gnu.org 2022-09-29 14:24 ` simark at simark dot ca 2022-09-29 14:42 ` vries at gcc dot gnu.org [this message] 2022-09-29 14:43 ` vries at gcc dot gnu.org 2022-09-29 15:22 ` vries at gcc dot gnu.org 2022-12-15 14:56 ` tromey at sourceware dot org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org 2023-03-09 22:44 ` kevinb at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26761-4717-H2JA5KnTwm@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).