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/31061] [gdb] intrusive_list.h:458: internal-error: erase_element: Assertion `elem_node->prev != INTRUSIVE_LIST_UNLINKED_VALUE' failed Date: Mon, 13 Nov 2023 12:55:51 +0000 [thread overview] Message-ID: <bug-31061-4717-xW9ZlCvPhK@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31061-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31061 --- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> --- Fixed by the usual: ... diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fe09dbcbeee..0a58821fc00 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -12633,7 +12633,8 @@ delete_breakpoint (struct breakpoint *bpt) if (bpt->number) notify_breakpoint_deleted (bpt); - breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt)); + if (bpt->is_linked ()) + breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt)); /* Be sure no bpstat's are pointing at the breakpoint after it's been freed. */ ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-11-13 12:55 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-13 12:55 [Bug gdb/31061] New: " vries at gcc dot gnu.org 2023-11-13 12:55 ` vries at gcc dot gnu.org [this message] 2023-11-13 15:25 ` [Bug gdb/31061] " vries at gcc dot gnu.org 2023-11-13 15:26 ` vries at gcc dot gnu.org 2023-11-29 11:58 ` vries at gcc dot gnu.org 2024-01-24 15:00 ` sam at gentoo dot org 2024-01-24 15:00 ` sam at gentoo dot org
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-31061-4717-xW9ZlCvPhK@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).