From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch/gdbserver] Handle early interrupts
Date: Sun, 29 Feb 2004 16:47:00 -0000 [thread overview]
Message-ID: <20040229164750.GC15749@nevyn.them.org> (raw)
In-Reply-To: <20040228181359.GA16903@nevyn.them.org>
On Sat, Feb 28, 2004 at 01:13:59PM -0500, Daniel Jacobowitz wrote:
> This patch lets gdbserver start expecting control-C as soon as we begin
> resuming threads, instead of as soon as we begin waiting. On slow targets,
> especially if one of the threads is scheduled right after the PTRACE_CONT
> and before gdbserver has finished waking its siblings, there can be a long
> delay. Until this arbitrary, sometimes very long, delay has passed, any
> control-C sent by the client will be ignored. The easy solution is to
> enable, but block, SIGIO; then unblock it when we're ready and the OS
> will automatically deliver it then.
>
> Will commit in a little while. Tested on arm-linux using gdbserver
> (I've forgotten to mention that for the last few patches, but it's true of
> all of them).
> 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
>
> * linux-low.c (linux_wait): Unblock async I/O.
> (linux_resume): Block and enable async I/O.
> * remote-utils.c (block_async_io, unblock_async_io): New functions.
> * server.h (block_async_io, unblock_async_io): Add prototypes.
Committed to HEAD.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2004-02-29 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 18:14 Daniel Jacobowitz
2004-02-29 16:47 ` Daniel Jacobowitz [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=20040229164750.GC15749@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.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