From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5916 invoked by alias); 21 Jan 2002 17:32:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5882 invoked from network); 21 Jan 2002 17:32:03 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 21 Jan 2002 17:32:03 -0000 Received: from telocity.telocity.com (taarna.sfbay.redhat.com [205.180.230.102]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id JAA12921; Mon, 21 Jan 2002 09:31:59 -0800 (PST) Message-ID: <3C4C4F81.7269@redhat.com> Date: Mon, 21 Jan 2002 09:32:00 -0000 From: Michael Snyder X-Mailer: Mozilla 3.04 (Win95; I) MIME-Version: 1.0 To: Andrew Cagney CC: Per Bothner , gdb-patches@sources.redhat.com Subject: Re: patch to ignore SIGPWR and SIGXCPU (used by pthreads) References: <3C49D806.4050500@bothner.com> <3C4B6560.6010201@cygnus.com> <3C4BAC6B.1030908@bothner.com> <3C4BBF78.8050405@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00653.txt.bz2 Andrew Cagney wrote: > > > Why not? What does it hurt to (by default) just pass them to the > > inferior? Having gdb stop inconveniences (and confuses) everybody who > > uses gcj. Having gdb silently pass the signals to the application > > inconveniences/confuses - who? > > 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. Java's use of these signals is somewhat analogous to what linux threads does. In that case, we also "silence" the signals, but we do it only in the context where we know they are used. Only for linux, and only when a multi-thread program is detected. Could you do something like that?