Fix latent bug in target_pass_ctrlc
authorPedro Alves <pedro@palves.net>
Sat, 4 Jul 2020 18:12:30 +0000 (19:12 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 10 Jul 2020 22:48:19 +0000 (23:48 +0100)
commit43667cc6f65e60e2c15f3bb84e45730b537db5fa
treee301f7e3884af9c20cb0e5bc44cff2b872763277
parent96118d114e3c53aadaf3fe5b5cf94979dbf56d87
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.
gdb/ChangeLog
gdb/target.c