We were checking the thr->executing of an exited thread.
gdb/ChangeLog:
PR gdb/26199
* target.c (target_pass_ctrlc): Look at the inferior's non-exited
threads, not all threads.
+2020-07-10 Pedro Alves <pedro@palves.net>
+
+ PR gdb/26199
+ * target.c (target_pass_ctrlc): Look at the inferior's non-exited
+ threads, not all threads.
+
2020-07-10 Pedro Alves <pedro@palves.net>
PR gdb/26199
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. */