diff options
author | Pedro Alves <pedro@palves.net> | 2020-07-04 19:12:30 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-07-10 23:48:19 +0100 |
commit | 43667cc6f65e60e2c15f3bb84e45730b537db5fa (patch) | |
tree | e301f7e3884af9c20cb0e5bc44cff2b872763277 /gdb/target.c | |
parent | 96118d114e3c53aadaf3fe5b5cf94979dbf56d87 (diff) | |
download | binutils-43667cc6f65e60e2c15f3bb84e45730b537db5fa.zip binutils-43667cc6f65e60e2c15f3bb84e45730b537db5fa.tar.gz binutils-43667cc6f65e60e2c15f3bb84e45730b537db5fa.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): Look at the inferior's non-exited
threads, not all threads.
Diffstat (limited to 'gdb/target.c')
-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. */ |