diff options
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index af1b764..1f9bb47 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -3719,10 +3719,17 @@ linux_nat_thread_alive (struct target_ops *ops, ptid_t ptid) static void linux_nat_update_thread_list (struct target_ops *ops) { + struct lwp_info *lwp; + /* We add/delete threads from the list as clone/exit events are processed, so just try deleting exited threads still in the thread list. */ delete_exited_threads (); + + /* Update the processor core that each lwp/thread was last seen + running on. */ + ALL_LWPS (lwp) + lwp->core = linux_common_core_of_thread (lwp->ptid); } static char * |