summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
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
commit61fec593c92e9f0e49a9482b0af2d49f58426acc (patch)
tree19b1fde5965e7e2aa69f47f1df2a1f577448e9ba /gdb/event-top.c
parent8ddc0a8be89f90c23ded16ae849407d6a23b06f8 (diff)
downloadgdb-61fec593c92e9f0e49a9482b0af2d49f58426acc.tar.gz
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.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 9a6c2fbc184..7765767c3dc 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