From: Per Bothner <per@bothner.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: patch to ignore SIGPWR and SIGXCPU (used by pthreads)
Date: Sun, 20 Jan 2002 23:32:00 -0000 [thread overview]
Message-ID: <3C4BC418.1020407@bothner.com> (raw)
In-Reply-To: <3C4BBF78.8050405@cygnus.com>
Andrew Cagney wrote:
> Consider SIGXCPU.
>
> With your proposed change, a program that exceeds its CPU usage will
> quietly terminate. The user will loose their entire debug session.
> This is very different to GDB's current behavour where the signal is
> intercepted, the program is stopped, and control is returned to the user.
How does a program exceed its CPU usage? In any other situation except
by having a person running the program explicitly set the CPU usage?
Somebody who knows how to to do that can be expected to know how to
use the 'handle' command. On the other hand, we should not expect
someone debugging a Java program to have to use 'handle'. That is
not acceptable, so we need to figure some way to fix this problem.
Is there a way that gdb can check if the inferior has set a non-default
signal handler, and only stop if using the default handler (or of
course if 'handle' was explicitly set)?
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
next prev parent reply other threads:[~2002-01-21 7:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-19 12:33 Per Bothner
2002-01-20 16:48 ` Andrew Cagney
2002-01-20 21:51 ` Per Bothner
2002-01-20 23:12 ` Andrew Cagney
2002-01-20 23:32 ` Per Bothner [this message]
2002-01-21 0:44 ` Andrew Cagney
2002-01-21 9:32 ` Michael Snyder
2002-01-21 10:39 ` Daniel Jacobowitz
2002-01-20 23:39 ` Per Bothner
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=3C4BC418.1020407@bothner.com \
--to=per@bothner.com \
--cc=ac131313@cygnus.com \
--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