From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13962 invoked by alias); 1 Feb 2009 04:18:11 -0000 Received: (qmail 13953 invoked by uid 22791); 1 Feb 2009 04:18:10 -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 wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 01 Feb 2009 04:18:06 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1050555wfc.24 for ; Sat, 31 Jan 2009 20:18:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.242.11 with SMTP id p11mr1213358wfh.297.1233461884399; Sat, 31 Jan 2009 20:18:04 -0800 (PST) Date: Sun, 01 Feb 2009 04:18:00 -0000 Message-ID: Subject: SIGINT sent to executable From: Sushrut Sardeshmukh To: 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/msg00000.txt.bz2 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 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".