This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Sending signal to inferior
- From: Bob Rossi <bob at brasko dot net>
- To: Carlos Eduardo Rodrigues de Almeida <eduardo dot almeida at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 29 Dec 2005 23:11:34 -0500
- Subject: Re: Sending signal to inferior
- References: <214135380512291937q58cd9ebajc40590fdc3936be4@mail.gmail.com>
> 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