From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30877 invoked by alias); 30 Dec 2005 04:11:54 -0000 Received: (qmail 30869 invoked by uid 22791); 30 Dec 2005 04:11:53 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao03.cox.net (HELO eastrmmtao03.cox.net) (68.230.240.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Dec 2005 04:11:50 +0000 Received: from white ([68.9.65.164]) by eastrmmtao03.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051230040950.ZZHZ29285.eastrmmtao03.cox.net@white>; Thu, 29 Dec 2005 23:09:50 -0500 Received: from bob by white with local (Exim 3.36 #1 (Debian)) id 1EsBc6-0000hz-00; Thu, 29 Dec 2005 23:11:34 -0500 Date: Fri, 30 Dec 2005 04:11:00 -0000 From: Bob Rossi To: Carlos Eduardo Rodrigues de Almeida Cc: gdb@sources.redhat.com Subject: Re: Sending signal to inferior Message-ID: <20051230041134.GB1316@white> Mail-Followup-To: Carlos Eduardo Rodrigues de Almeida , gdb@sources.redhat.com References: <214135380512291937q58cd9ebajc40590fdc3936be4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <214135380512291937q58cd9ebajc40590fdc3936be4@mail.gmail.com> User-Agent: Mutt/1.5.9i 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: 2005-12/txt/msg00213.txt.bz2 > I couldn't find what tgdb does to stop the inferior when I send gdb > the SIGINT.. does someone can point me a solution? Hi Eduardo, I don't understand. If I compile and run your program on a sample inferior, tgdb_driver and your driver act the same. What is the exact difference you are seeing? With your driver: $ ./driver ./test GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux". (gdb) No symbol table is loaded. Use the "file" command. file ./test Reading symbols from /home/bob/cvs/cgdb/cgdb/builddir/tgdb/tgdb-base/src/tmp/test...done. Using host libthread_db library "/lib/libthread_db.so.1". (gdb) (gdb) Quit With tgdb_driver: $ ./tgdb_driver ./test GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...No symbol table is loaded. Use the "file" command. Using host libthread_db library "/lib/libthread_db.so.1". (tgdb) Quit (tgdb) In both cases, I ran $ kill -s INT PID This is tested on a Debian box, with GDB GNU gdb 6.3-debian. Bob Rossi