From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13495 invoked by alias); 19 Jan 2002 20:33:07 -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 13261 invoked from network); 19 Jan 2002 20:32:52 -0000 Received: from unknown (HELO bothner.com) (216.102.199.253) by sources.redhat.com with SMTP; 19 Jan 2002 20:32:52 -0000 Received: from bothner.com (eureka.bothner.com [192.168.1.9]) by bothner.com (8.11.6/8.11.6) with ESMTP id g0JKY6M19760 for ; Sat, 19 Jan 2002 12:34:06 -0800 Message-ID: <3C49D806.4050500@bothner.com> Date: Sat, 19 Jan 2002 12:33: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: gdb-patches@sources.redhat.com Subject: patch to ignore SIGPWR and SIGXCPU (used by pthreads) Content-Type: multipart/mixed; boundary="------------080405090506080007040803" X-SW-Source: 2002-01/txt/msg00541.txt.bz2 This is a multi-part message in MIME format. --------------080405090506080007040803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 322 Ok to check in? Without it, people debugging Java have to issue handle commands, as shown in http://gcc.gnu.org/java/gdb.html. * infrun.c (_initialize_infrun): Don't stop or print SIGCPU and SIGPWR - they are used by the Java runtime's thread support. -- --Per Bothner per@bothner.com http://www.bothner.com/per/ --------------080405090506080007040803 Content-Type: text/plain; name="infrun.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="infrun.patch" Content-length: 949 * infrun.c (_initialize_infrun): Don't stop or print SIGCPU and SIGPWR - they are used by the Java runtime's thread support. Index: infrun.c =================================================================== RCS file: /cvs/src/src/gdb/infrun.c,v retrieving revision 1.50 diff -u -p -r1.50 infrun.c --- infrun.c 2002/01/17 22:15:17 1.50 +++ infrun.c 2002/01/19 20:17:19 @@ -4298,6 +4298,12 @@ of the program stops.", &cmdlist); signal_stop[TARGET_SIGNAL_WINCH] = 0; signal_print[TARGET_SIGNAL_WINCH] = 0; + /* These are used for pthread context switching, used by libgcj. */ + signal_stop[TARGET_SIGNAL_PWR] = 0; + signal_print[TARGET_SIGNAL_PWR] = 0; + signal_stop[TARGET_SIGNAL_XCPU] = 0; + signal_print[TARGET_SIGNAL_XCPU] = 0; + /* 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 --------------080405090506080007040803--