Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Make QUIT work
@ 2004-05-08  3:27 Michael Snyder
  2004-05-08  4:51 ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Snyder @ 2004-05-08  3:27 UTC (permalink / raw)
  To: gdb-patches, Elena Zannoni

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

Elena, here's something that must have fallen thru the cracks
at some point.  handle_sigint needs to set quit_flag -- or else
QUIT won't quit.  As is currently, QUIT won't work unles
immediate_quit is set -- and I'm pretty sure that's not how
it was intended to work.


[-- Attachment #2: quit --]
[-- Type: text/plain, Size: 704 bytes --]

2004-05-08  Michael Snyder  <msnyder@redhat.com>

	* event-top.c (handle_sigint): Set quit_flag, so that QUIT
	will work the next time it's invoked.

Index: event-top.c
===================================================================
RCS file: /cvs/src/src/gdb/event-top.c,v
retrieving revision 1.33
diff -p -r1.33 event-top.c
*** event-top.c	28 Feb 2004 18:04:36 -0000	1.33
--- event-top.c	8 May 2004 03:22:55 -0000
*************** void
*** 950,955 ****
--- 950,956 ----
  handle_sigint (int sig)
  {
    signal (sig, handle_sigint);
+   quit_flag=1;
  
    /* If immediate_quit is set, we go ahead and process the SIGINT right
       away, even if we usually would defer this to the event loop. The

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-05-11 18:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-08  3:27 [RFA] Make QUIT work Michael Snyder
2004-05-08  4:51 ` Daniel Jacobowitz
2004-05-08  6:16   ` Joel Brobecker
2004-05-10 23:07     ` Michael Snyder
2004-05-10 23:09       ` Joel Brobecker
2004-05-11  1:11   ` Andrew Cagney
2004-05-11  1:38     ` Michael Snyder
2004-05-11  2:19       ` Daniel Jacobowitz
2004-05-11 15:07       ` Andrew Cagney
2004-05-11 18:37         ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox