From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb] Fix assert in delete_breakpoint
Date: Tue, 28 Nov 2023 08:30:51 -0700 [thread overview]
Message-ID: <87v89ldhec.fsf@tromey.com> (raw)
In-Reply-To: <8653ed15-aaf7-4734-b673-5ec6f15cd4c1@simark.ca> (Simon Marchi's message of "Mon, 27 Nov 2023 11:29:04 -0500")
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> On the other hand, I suspect that any memory read / write used to
Simon> implement GDB's internal logic should be considered by default unsafe to
Simon> interrupt. Otherwise, that code should be written in a way that ensures
Simon> that should exceptions get thrown, the internal state is left in a
Simon> coherent... state, either by rolling back changes or otherwise. That
Simon> sounds difficult, if not impossible.
Maybe I don't understand the context or something, because this seems
like a pretty big departure from historical practice. In gdb,
exceptions can happen nearly anywhere and code must ordinarily be
exception-safe.
In this situation I think the issue is that some code was not, in a
subtle way.
Simon> The question is, how to decide where QUITs should be suppressed. Here's
Simon> a random backtrace I just grabbed from a maybe_quit call under an
Simon> update_global_location_list call:
The danger with suppressing these quits is that then gdb can enter
uninterruptible states if something bad happens to the remote. That
seems unfortunate. At least assuming I understand correctly.
Tom
next prev parent reply other threads:[~2023-11-28 15:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 15:26 Tom de Vries
2023-11-14 15:09 ` Simon Marchi
2023-11-15 11:12 ` Tom de Vries
2023-11-15 12:12 ` Tom de Vries
2023-11-21 12:22 ` Tom de Vries
2023-11-21 16:11 ` Simon Marchi
2023-11-21 16:52 ` Tom de Vries
2023-11-22 12:44 ` Tom de Vries
2023-11-22 14:49 ` Tom de Vries
2023-11-27 10:19 ` Tom de Vries
2023-11-27 16:29 ` Simon Marchi
2023-11-28 15:22 ` Tom de Vries
2023-11-28 15:30 ` Tom Tromey [this message]
2023-11-29 12:08 ` Tom de Vries
2023-11-29 20:46 ` Tom de Vries
2023-11-29 21:33 ` Tom de Vries
2023-11-30 17:08 ` Simon Marchi
2023-11-21 16:40 ` Luis Machado
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=87v89ldhec.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--cc=tdevries@suse.de \
/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: link
Be 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).