forked from Imagelibrary/binutils-gdb
Fix latent bug in target_pass_ctrlc
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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user