remote: allow aborting long operations (e.g., file transfers)
[deliverable/binutils-gdb.git] / gdb / utils.c
index a3c707658a942fdc8d44a7b25e110ac1f7c7f08c..3a05680161e7439cf86e50f65bbad66af775ffdb 100644 (file)
@@ -1041,6 +1041,18 @@ quit (void)
 #endif
 }
 
+/* See defs.h.  */
+
+void
+maybe_quit (void)
+{
+  if (check_quit_flag () || sync_quit_force_run)
+    quit ();
+  if (deprecated_interactive_hook)
+    deprecated_interactive_hook ();
+  target_check_pending_interrupt ();
+}
+
 \f
 /* Called when a memory allocation fails, with the number of bytes of
    memory requested in SIZE.  */
This page took 0.025452 seconds and 4 git commands to generate.