Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Carlos Eduardo Rodrigues de Almeida <eduardo.almeida@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: Sending signal to inferior
Date: Fri, 30 Dec 2005 04:11:00 -0000	[thread overview]
Message-ID: <20051230041134.GB1316@white> (raw)
In-Reply-To: <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


  reply	other threads:[~2005-12-30  4:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-30  3:37 Carlos Eduardo Rodrigues de Almeida
2005-12-30  4:11 ` Bob Rossi [this message]
2005-12-30  4:29   ` Carlos Eduardo Rodrigues de Almeida
2005-12-30  4:42     ` Bob Rossi
2005-12-30  4:57       ` Carlos Eduardo Rodrigues de Almeida
2005-12-30 16:43         ` Bob Rossi
2005-12-30 16:48           ` Daniel Jacobowitz
2005-12-30 17:04             ` Bob Rossi
2005-12-30 22:58             ` Bob Rossi
2005-12-30 23:14               ` Bob Rossi
2006-01-03 13:11 Sanborn, Ed
2006-01-03 22:54 ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051230041134.GB1316@white \
    --to=bob@brasko.net \
    --cc=eduardo.almeida@gmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox