Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: gdb@sourceware.org
Subject: Re: [rfc/remote] Tell remote stubs which signals are boring
Date: Thu, 26 Oct 2006 21:11:00 -0000	[thread overview]
Message-ID: <m33b9adbpe.fsf@codesourcery.com> (raw)
In-Reply-To: <20061025212441.GA622@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 25 Oct 2006 17:24:41 -0400")


Daniel Jacobowitz <drow@false.org> writes:
> Some time ago, I got a bug report that gdbserver couldn't be used to
> debug a program.  You'd tell it to "continue", and it wouldn't - it
> would just spin in place.
>
> We realized eventually that the problem was SIGALRM.  There was a tiny
> signal handler running every timer tick (at about 100Hz, if I remember
> right).  That's plenty of time for native GDB to notice, resume, and
> let the code run.  But if you have to stop the program, including any
> threads, and send a packet over a socket to another machine, only to
> have GDB tell you that you're not interested in it anyway, then you
> never make any progress.  By the time the program returns from its
> signal handler, SIGALRM is pending again.
>
> This is the solution I came up with for that problem, adjusted to HEAD
> and given a more sensible packet name.  I have a tested implementation
> of this patch for HEAD, if my remote protocol choices are acceptable.
> The new mechanism is completely transparent to the user.
>
> All comments welcome!
>
> `QPassSignals SIGNAL [;SIGNAL]...'

(Thanks, Mark, for asking about this!)  Please don't use a space to
mark the end of the packet name.  At the moment, the remote protocol
documentation uses spaces just for clarity; if they become meaningful,
then we're going to have to revamp our manual notation --- again.

The text in "Overview" suggests using ',', ';', or ':'.


>      Each listed SIGNAL, using the same signal numbering used in

I'd like to see "and syntax" added here --- I assume that's so?


  parent reply	other threads:[~2006-10-26 21:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-25 21:24 Daniel Jacobowitz
2006-10-25 21:33 ` Mark Kettenis
2006-10-25 22:56 ` David Daney
2006-10-26  1:40   ` Daniel Jacobowitz
2006-10-26  7:02     ` Eli Zaretskii
2006-10-26  6:57 ` Eli Zaretskii
2006-10-26 12:18   ` Daniel Jacobowitz
2006-10-26 15:01     ` Eli Zaretskii
2006-10-26 15:10       ` Daniel Jacobowitz
2006-10-26 15:18         ` Eli Zaretskii
2006-10-26 15:22           ` Daniel Jacobowitz
2006-10-26 15:27     ` Mark Kettenis
2006-10-26 15:37       ` Daniel Jacobowitz
2006-10-26 17:54         ` Mark Kettenis
2006-10-26 21:11 ` Jim Blandy [this message]
2006-10-26 21:16   ` Daniel Jacobowitz
2006-10-26 21:28     ` Jim Blandy
2006-10-26 21:37       ` Daniel Jacobowitz

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=m33b9adbpe.fsf@codesourcery.com \
    --to=jimb@codesourcery.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