2007-06-28 Michael Snyder <msnyder@access-company.com>
[deliverable/binutils-gdb.git] / gdb / event-top.c
index 9a6c2fbc1841e67d40c723bbc55dfe08489a75a6..7765767c3dc14ab1719a07f85e1aae409ac6f55f 100644 (file)
@@ -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
This page took 0.024464 seconds and 4 git commands to generate.