From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16793 invoked by alias); 3 Apr 2006 13:21:29 -0000 Received: (qmail 16784 invoked by uid 22791); 3 Apr 2006 13:21:28 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 03 Apr 2006 13:21:28 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FQOzl-0001PM-Qj; Mon, 03 Apr 2006 09:21:25 -0400 Date: Mon, 03 Apr 2006 13:21:00 -0000 From: Daniel Jacobowitz To: Andy Howell Cc: gdb@sources.redhat.com Subject: Re: GDB is not trapping SIGINT Message-ID: <20060403132125.GA5007@nevyn.them.org> Mail-Followup-To: Andy Howell , gdb@sources.redhat.com References: <4430AB93.4050004@raitechnology.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4430AB93.4050004@raitechnology.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00010.txt.bz2 On Sun, Apr 02, 2006 at 11:58:59PM -0500, Andy Howell wrote: > Hello, > > I'm having problems getting GDB to not pass SIGINT to my program. In my > main thread I do a sigwait for SIGINT. When I'm debugging, I don't want > this called. "info handle" shows that SIGINT should not be being passed > to my app. > > I using GDB 6.3 on RH Linux. But how are you using it? :-) An example, please. You also did not mention what kernel version you are using; at least one sigwait-related kernel bug has been reported. And it looks like it is still present in current 2.6 kernels, so you may want to report this to the kernel developers. sys_rt_sigtimedwait calls dequeue_signal, but never lets ptrace see it. Maybe the bits from get_signal_to_deliver can be moved into dequeue_signal now. -- Daniel Jacobowitz CodeSourcery