From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4224 invoked by alias); 2 Feb 2009 07:06:47 -0000 Received: (qmail 4215 invoked by uid 22791); 2 Feb 2009 07:06:46 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_33,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Feb 2009 07:06:42 +0000 Received: by ti-out-0910.google.com with SMTP id d10so762537tib.12 for ; Sun, 01 Feb 2009 23:06:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.53.14 with SMTP id b14mr6031204tia.37.1233558398696; Sun, 01 Feb 2009 23:06:38 -0800 (PST) In-Reply-To: References: Date: Mon, 02 Feb 2009 07:06:00 -0000 Message-ID: Subject: Re: SIGINT sent to executable From: teawater To: Sushrut Sardeshmukh Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00008.txt.bz2 I think this is because > Signal Stop Print Pass to program Description SIGINT Yes Yes No Interrupt Stop mean that when inferior get a sigint, gdb will stop the inferior. I think you can try to use command "handle" to set it to "No". Thanks, Hui On Sun, Feb 1, 2009 at 12:18, Sushrut Sardeshmukh wrote: > I searched google before sending this email. But could not find the > solution to the problem :( > > I am using ddd+gdb on Linux to debug executable which handles SIGINT > to do graceful shutdown. > > gdb is set not to pass SIGINT to executable. > (gdb) info signal > Signal Stop Print Pass to program Description > SIGHUP Yes Yes Yes Hangup > SIGINT Yes Yes No Interrupt > > However, when I press Interrupt button in ddd, executable gets SIGINT > and it does graceful shutdown. Totalview debugger is able to interrupt > execution. So it must be something wrong with the way I am setting up > gdb. > > How can I interrupt the execution and get gdb prompt (to set another > breapoint/ watchpoint) but not send SIGINT to executable ? > > > Here is version info about gdb > gdb --version > GNU gdb 6.8 > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "x86_64-unknown-linux-gnu". >