Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: brobecker@adacore.com
Cc: gdb@sourceware.org
Subject: Re: does it make sense to stop on SIGPRIO?
Date: Wed, 05 Jan 2011 13:13:00 -0000	[thread overview]
Message-ID: <201101051312.p05DCtEl011037@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <20110105072245.GA28888@adacore.com> (message from Joel Brobecker	on Wed, 5 Jan 2011 11:22:45 +0400)

> Date: Wed, 5 Jan 2011 11:22:45 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> I've been looking at how we decide what to when we receive a signal.
> We have some code that disables stop&printing for various signals
> because these signals are used as part of normal thread operations.
> 
>   /* These signals are used internally by user-level thread
>      implementations.  (See signal(5) on Solaris.)  Like the above
>      signals, a healthy program receives and handles them as part of
>      its normal operation.  */
> 
> We do the same for other signals, which are not error signals:
> 
>   /* Signals that are not errors should not normally enter the debugger.  */
> 
> On LynxOS, changing the priority of a thread automatically causes
> a SIGPRIO signal to be raised.  I think that SIGPRIO falls more
> into the second category (not a signal used to indicate an error).
> 
> Are there any known situations where we would want a SIGPRIO would
> be indicating something abnormal, or significant enough that we would
> want to stop?

Given that SIGPRIO seems to be something rather un-UNIXy (OpenBSD,
Linux and Solaris don't seem to have it), I think you can do here
whatever you like ;).


  reply	other threads:[~2011-01-05 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05  7:22 Joel Brobecker
2011-01-05 13:13 ` Mark Kettenis [this message]
2011-01-05 13:27 ` Andreas Schwab
2011-01-05 18:23 ` Michael Snyder
2011-01-05 18:26   ` Michael Snyder

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=201101051312.p05DCtEl011037@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=brobecker@adacore.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