This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sending signal to inferior


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]