aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2007-02-09 23:45:35 +0000
committerFred Fish <fnf@specifix.com>2007-02-09 23:45:35 +0000
commit4ac94eda118c2fa243af025b1377ff1b791c9bf2 (patch)
tree897d368d4f46465e96141d0b4d10494235464e63
parent6051b195072a0a5f799fe4c5bf6593e8645e4c9e (diff)
downloadgdb-4ac94eda118c2fa243af025b1377ff1b791c9bf2.zip
gdb-4ac94eda118c2fa243af025b1377ff1b791c9bf2.tar.gz
gdb-4ac94eda118c2fa243af025b1377ff1b791c9bf2.tar.bz2
2007-02-09 Fred Fish <fnf@specifix.com>
Based on work by Apple Computer, Inc. * event-top.c (async_request_quit): Call quit() whenever either quit_flag is set or immediate_quit is set.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/event-top.c13
2 files changed, 13 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cb5163d..6453ce9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-09 Fred Fish <fnf@specifix.com>
+
+ Based on work by Apple Computer, Inc.
+ * event-top.c (async_request_quit): Call quit() whenever either
+ quit_flag is set or immediate_quit is set.
+
2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
* ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
@@ -115,6 +121,7 @@
2007-02-08 Fred Fish <fnf@specifix.com>
+ Based on work by Apple Computer, Inc.
* event-top.c (handle_sigint): Set quit_flag.
(async_request_quit): Don't set quit_flag. Avoid calling quit()
if quit_flag has already been reset.
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 9a6c2fb..7765767 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -997,14 +997,13 @@ void
async_request_quit (gdb_client_data arg)
{
/* If the quit_flag has gotten reset back to 0 by the time we get
- back here, that means that an exception was thrown to unwind
- the current command before we got back to the event loop. So
- there is no reason to call quit again here. */
+ back here, that means that an exception was thrown to unwind the
+ current command before we got back to the event loop. So there
+ is no reason to call quit again here, unless immediate_quit is
+ set.*/
- if (quit_flag == 0)
- return;
-
- quit ();
+ if (quit_flag || immediate_quit)
+ quit ();
}
#ifdef SIGQUIT