From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17568 invoked by alias); 21 Jan 2002 07:32:17 -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 17418 invoked from network); 21 Jan 2002 07:32:13 -0000 Received: from unknown (HELO bothner.com) (216.102.199.253) by sources.redhat.com with SMTP; 21 Jan 2002 07:32:13 -0000 Received: from bothner.com (eureka.bothner.com [192.168.1.9]) by bothner.com (8.11.6/8.11.6) with ESMTP id g0L7XYM07030; Sun, 20 Jan 2002 23:33:34 -0800 Message-ID: <3C4BC418.1020407@bothner.com> Date: Sun, 20 Jan 2002 23:32:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020111 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrew Cagney CC: 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; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00628.txt.bz2 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/