Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Per Bothner <per@bothner.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: patch to ignore SIGPWR and SIGXCPU (used by pthreads)
Date: Mon, 21 Jan 2002 00:44:00 -0000	[thread overview]
Message-ID: <3C4BD500.70605@cygnus.com> (raw)
In-Reply-To: <3C4BC418.1020407@bothner.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.


I don't think it is reasonable to assume that it was the user that set 
the cpu-limit.  That is often a BOFH imposed restriction.

Remember, there is a compromise here.  Change GDB's behavour to give 
GCJ/Linux users a good experience (and in the process cover up a screwup 
- lets be honest :-) VS give GCJ/Linux users a bad experience but 
preserve correct behavour for all other users.

Andrew


  reply	other threads:[~2002-01-21  8:44 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
2002-01-21  0:44         ` Andrew Cagney [this message]
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=3C4BD500.70605@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=per@bothner.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