diff options
author | Pedro Alves <pedro@palves.net> | 2020-07-04 19:12:30 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-07-06 19:57:20 +0100 |
commit | ce502e47c0b5333703dfa4b6d1268ca65a0b2926 (patch) | |
tree | 763170f53cca92daca0df2c05502ac8497866801 | |
parent | 14b98a10cae819d8ae113c4d4cb049bac3caf0c2 (diff) | |
download | gdb-ce502e47c0b5333703dfa4b6d1268ca65a0b2926.zip gdb-ce502e47c0b5333703dfa4b6d1268ca65a0b2926.tar.gz gdb-ce502e47c0b5333703dfa4b6d1268ca65a0b2926.tar.bz2 |
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): Looking at the inferiors
non-exited threads, not all threads.
-rw-r--r-- | gdb/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index f4e4f05..cd66675 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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. */ |