From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Doug Evans <dje@google.com>
Subject: Re: call_function_by_hand doesn't restore target async?
Date: Thu, 04 Dec 2008 21:33:00 -0000 [thread overview]
Message-ID: <200812042133.25694.pedro@codesourcery.com> (raw)
In-Reply-To: <200812042123.16654.pedro@codesourcery.com>
On Thursday 04 December 2008 21:23:16, Pedro Alves wrote:
> Right, it doesn't. inf-loop.c:inferior_event_handler has a
> drastic attitude about exceptions --- it always pops the target, which
> means that a cleanup will would most of the times set the async mask
> in the wrong target, and thus say, e.g., remote_async_mask_value
> will still be left dangling... I think that adjusting the
> target_wait interface like described above would be the best way
> to fix this.
Hmmm, sorry, that's a thinko. When doing an infcall, of course you
don't go through fetch_inferior_event... So a cleanup would indeed
fix most cases, although a few times, like when remote.c pops the
target due to losing the connection, a cleanup wil still set the
async mask in the wrong target. (The parameter to target_wait
would solve this 100%).
Don't you love having two ways to do the same thing?
--
Pedro Alves
next prev parent reply other threads:[~2008-12-04 21:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 20:19 Doug Evans
2008-12-04 21:23 ` Pedro Alves
2008-12-04 21:33 ` Pedro Alves [this message]
2008-12-04 21:37 ` Doug Evans
2008-12-04 22:14 ` Pedro Alves
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=200812042133.25694.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=dje@google.com \
--cc=gdb@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: 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