From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9056 invoked by alias); 17 Sep 2011 07:17:52 -0000 Received: (qmail 9048 invoked by uid 22791); 17 Sep 2011 07:17:50 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from apetukhov.ru (HELO apetukhov.ru) (93.100.134.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Sep 2011 07:17:30 +0000 Received: from [192.168.0.195] (apetukhov.ru [93.100.134.215]) by apetukhov.ru (Postfix) with ESMTPSA id BEBE380A4 for ; Sat, 17 Sep 2011 11:17:27 +0400 (MSD) Message-ID: <4E7449BD.4030405@apetukhov.ru> Date: Sat, 17 Sep 2011 07:17:00 -0000 From: Alexander Petukhov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 MIME-Version: 1.0 To: gdb@sourceware.org Subject: proper usage of "-exec-interrupt" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 2011-09/txt/msg00060.txt.bz2 Hi, I'm writing a GDB plugin for an IDE and I'm using async target in MI mode to allow user to alter breakpoints while debugging. As I learned I have to use "-exec-interrupt" command to stop a debugger but when I'm doing so a process that spawns GDB, i.e. an IDE receives SIGINT and exits accordingly. Unfortunately I wasn't able to intercept a signal in IDE as it's written with GTK and signal functions do not work for some reason. The other way I've found is to send SIGINT directly to a GDB process and it worked for me but recently another developer reported that he has problem with finishing the whole X session when trying to interrupt GDB in this way, looks like SIGINT reached X session manager... Whay does this signal come to parent process and can I avoid this somehow? Thanks, Alexander