From: Bob Rossi <bob_rossi@cox.net>
To: Jim Blandy <jimb@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: invoking GDB from FE and signals
Date: Fri, 19 May 2006 19:22:00 -0000 [thread overview]
Message-ID: <20060519175522.GA30002@brasko.net> (raw)
In-Reply-To: <vt2iro2hr3l.fsf@theseus.home.>
On Fri, May 19, 2006 at 10:17:02AM -0700, Jim Blandy wrote:
>
> Bob Rossi <bob_rossi@cox.net> writes:
> > On Fri, May 19, 2006 at 08:49:19AM -0400, Daniel Jacobowitz wrote:
> >> On Fri, May 19, 2006 at 06:59:45AM -0400, Bob Rossi wrote:
> >> > OK, you could not be more correct. I want GDB to handle it, not the FE.
> >> > However, how do I let "GDB handle it", while using the 'set tty'
> >> > command? I guess that's the question I've been asking all along.
> >>
> >> Make it trap the SIGINT and do something sensible with it.
> >
> > OK, so, does anyone think this suggestion would have drawbacks?
> > That is, modify GDB so that the FE can always send the signal to the GDB
> > pty, and GDB will figure out what to do with the signal. This would be a
> > wonderful solution. That way, if the FE is using 'set tty' or not, it
> > could always send the signal to the same place.
>
> I totally think you should be using 'set tty'. It's the only way to
> keep inferior and GDB output straight, and nobody has ever had the
> forbearance to explain the drawbacks to me.
>
> I still think it's odd that you would actually want a way to send a
> SIGINT to either the inferior if running or GDB otherwise. But if you
> really do want that, then making GDB deal with it seems like the right
> thing.
Jim, the user can do this exact sort of thing just using plain old GDB.
They don't even know they are doing it probably, they just hit ^c. So,
it's not that I want to send ^c to GDB or inferior, I just want to do
what the user wants.
OK, I have to assume you know more about this than I do. You've been
doing it for much longer. Where does your FE send the ^c when GDB is
running? when inferior is running?
Anyone maintaining an FE using the 'set tty', what does your FE do when
it get's a ^c under these 2 case's?
Thanks,
Bob Rossi
next prev parent reply other threads:[~2006-05-19 17:55 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-18 16:27 Alain Magloire
2006-05-18 16:55 ` Bob Rossi
2006-05-18 16:59 ` Andreas Schwab
[not found] ` <vt2bqtvl157.fsf@theseus.home.>
2006-05-18 17:44 ` Bob Rossi
2006-05-18 21:56 ` Jim Blandy
2006-05-19 1:19 ` Bob Rossi
2006-05-19 3:00 ` Daniel Jacobowitz
2006-05-19 12:49 ` Bob Rossi
2006-05-19 15:37 ` Daniel Jacobowitz
2006-05-19 15:56 ` Bob Rossi
2006-05-19 17:55 ` Jim Blandy
2006-05-19 19:22 ` Bob Rossi [this message]
2006-05-23 3:46 ` Jim Blandy
2006-05-18 22:51 ` Andreas Schwab
2006-05-18 23:25 ` Bob Rossi
2006-05-19 1:17 ` Andreas Schwab
2006-05-18 23:28 ` Jim Blandy
2006-05-19 0:59 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2006-05-13 15:09 Bob Rossi
2006-05-13 15:11 ` Daniel Jacobowitz
2006-05-13 15:19 ` Bob Rossi
2006-05-13 15:48 ` Daniel Jacobowitz
2006-05-13 15:49 ` Bob Rossi
2006-05-13 17:11 ` Daniel Jacobowitz
2006-05-14 3:25 ` Bob Rossi
2006-05-14 4:17 ` Nick Roberts
2006-05-14 4:18 ` Eli Zaretskii
2006-05-14 5:01 ` Daniel Jacobowitz
2006-05-15 6:55 ` Nick Roberts
2006-05-15 13:35 ` Daniel Jacobowitz
2006-05-15 13:39 ` Bob Rossi
2006-05-15 15:04 ` Daniel Jacobowitz
2006-05-15 19:04 ` Jim Blandy
2006-05-15 13:37 ` Jim Blandy
2006-05-15 14:58 ` Bob Rossi
2006-05-15 18:50 ` Jim Blandy
2006-05-15 20:09 ` Bob Rossi
2006-05-15 18:42 ` PAUL GILLIAM
2006-05-15 19:18 ` Bob Rossi
2006-05-15 19:43 ` Daniel Jacobowitz
2006-05-15 20:05 ` Bob Rossi
2006-05-15 20:09 ` Daniel Jacobowitz
2006-05-15 20:20 ` Bob Rossi
2006-05-15 21:02 ` Daniel Jacobowitz
2006-05-15 21:08 ` Bob Rossi
2006-05-15 21:31 ` Daniel Jacobowitz
2006-05-15 21:33 ` Bob Rossi
2006-05-15 20:11 ` PAUL GILLIAM
2006-05-15 20:33 ` Bob Rossi
2006-05-15 21:52 ` Joel Brobecker
2006-05-15 22:40 ` Bob Rossi
2006-05-16 3:32 ` Nick Roberts
2006-05-18 1:40 ` Bob Rossi
2006-05-18 12:32 ` Jim Blandy
2006-05-18 7:28 ` Bob Rossi
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=20060519175522.GA30002@brasko.net \
--to=bob_rossi@cox.net \
--cc=gdb@sources.redhat.com \
--cc=jimb@codesourcery.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