From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: clear quit_flag in quit, not throw_exception
Date: Thu, 09 Aug 2012 20:20:00 -0000 [thread overview]
Message-ID: <878vdnddh2.fsf@fleche.redhat.com> (raw)
In-Reply-To: <501AB42C.4000701@redhat.com> (Pedro Alves's message of "Thu, 02 Aug 2012 18:09:00 +0100")
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> If the unrelated exception/error unwinds things all the way up to
Pedro> the top prompt, managing to bypass all QUIT calls, then we'll end
Pedro> up with a dangling quit until the next command it entered
Pedro> (resulting in a spurious, delayed "Quit"), it seems to me. If
Pedro> that analysis is correct, maybe we should also clear or handle
Pedro> these somehow somewhere near the top loop?
Thanks for noticing this.
I looked into the problem in more detail, and I think it is a crazy
morass.
The quit_flag part is all solvable. Maybe I will tackle it.
However, the immediate_quit part is really quite bad. I started by
changing the current places that set and clear immediate_quit to use a
cleanup instead. However, remote_start_remote remains a big problem --
it is just wrong. I think a fix here would be to only set and clear
immediate_quit around I/O primitives. But, finding all those and
applying the change is troublesome.
One idea I had was that maybe we could simply not have immediate_quit,
but instead rely on EINTR and sprinkle more QUIT calls around. In my
initial experiment, this didn't seem to work, but I haven't gone back
yet to understand why.
Maybe someone else has a more workable idea.
Tom
prev parent reply other threads:[~2012-08-09 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 16:13 Tom Tromey
2012-08-02 17:09 ` Pedro Alves
2012-08-09 20:20 ` Tom Tromey [this message]
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=878vdnddh2.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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