This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA] Make QUIT work


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.

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

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