Fix latent bug in target_pass_ctrlc
[deliverable/binutils-gdb.git] / gdb / target.c
index f4e4f05b5fac4bb2f9eae881d6fe65c2f6604f58..cd66675e8a41f52da1e9ea759299e643930e214b 100644 (file)
@@ -3274,7 +3274,7 @@ target_pass_ctrlc (void)
       if (proc_target == NULL)
        continue;
 
-      for (thread_info *thr : inf->threads ())
+      for (thread_info *thr : inf->non_exited_threads ())
        {
          /* A thread can be THREAD_STOPPED and executing, while
             running an infcall.  */
This page took 0.023212 seconds and 4 git commands to generate.