Decouple target_interrupt from all-stop/non-stop modes
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index d68711663fcf7069319fdd744e1b90a7691b0fcb..3a0265f1957846b313ae08fd81b092a5ad4ff935 100644 (file)
@@ -3013,7 +3013,11 @@ interrupt_target_1 (int all_threads)
     ptid = minus_one_ptid;
   else
     ptid = inferior_ptid;
-  target_interrupt (ptid);
+
+  if (non_stop)
+    target_stop (ptid);
+  else
+    target_interrupt (ptid);
 
   /* Tag the thread as having been explicitly requested to stop, so
      other parts of gdb know not to resume this thread automatically,
This page took 0.024162 seconds and 4 git commands to generate.