From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27921 invoked by alias); 3 Jan 2006 13:11:23 -0000 Received: (qmail 27910 invoked by uid 22791); 3 Jan 2006 13:11:22 -0000 X-Spam-Check-By: sourceware.org Received: from im.fdgs.com (HELO fdgs.com) (207.67.17.148) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 03 Jan 2006 13:11:21 +0000 Received: from ([192.168.60.65]) by im.fdgs.com with ESMTP id 4420402.1891838; Tue, 03 Jan 2006 08:10:56 -0500 Received: from govconexch.govcon.govconnect.com ([10.15.12.10]) by mailrelay.govcon.govconnect.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Jan 2006 08:10:56 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Sending signal to inferior Date: Tue, 03 Jan 2006 13:11:00 -0000 Message-ID: From: "Sanborn, Ed" To: 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-01/txt/msg00004.txt.bz2 Please delete me from this list. -----Original Message----- From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Bob Rossi Sent: Friday, December 30, 2005 5:58 PM To: Carlos Eduardo Rodrigues de Almeida; gdb@sources.redhat.com Subject: Re: Sending signal to inferior On Fri, Dec 30, 2005 at 11:48:02AM -0500, Daniel Jacobowitz wrote: > On Fri, Dec 30, 2005 at 11:43:00AM -0500, Bob Rossi wrote: > > On Fri, Dec 30, 2005 at 04:57:38AM +0000, Carlos Eduardo Rodrigues de Almeida wrote: > > > Thank you.. I'm trying to solve this for days.. > >=20 > > Wow, that took me a long time to figure out, and I wrote libtgdb. > >=20 > > It's the tty command that is allowing libtgdb to interrupt GDB when=20 > > the inferior is running. Apparently, if you don't move the=20 > > inferior's terminal via the GDB tty command, then you can't=20 > > interrupt the inferior when it's running. > >=20 > > Basically, I'm assuming that the SIGINT to GDB is ignored if the=20 > > inferior has control of the terminal. However, if you put the=20 > > inferior on a different terminal, then GDB must handle the SIGINT.=20 > > This explanation is just a guess though. >=20 > It shouldn't be. Check whether GDB is reaching handle_sigint() and=20 > whether it is going through the event loop properly? This is a tough one. For some reason, if I start debugging GDB, it doesn't reach the handle_sigint line. However, with fprintf there, I'm seeing output. Could I be doing something wrong or is this expected? I configured && compiled like this: cvs -d ':ext:bobbybrasko@sources.redhat.com:/cvs/src' co gdb CFLAGS=3D-g ../src/configure make I was wondering if any of the -W compile options stop me from debuging GDB in this case. Thanks, Bob Rossi