mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb: make find_thread_ptid a process_stratum_target method
Make find_thread_ptid (the overload that takes a process_stratum_target) a method of process_stratum_target. Change-Id: Ib190a925a83c6b93e9c585dc7c6ab65efbdd8629 Reviewed-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
3c8af02fa0
commit
9213a6d79a
@@ -415,7 +415,7 @@ bsd_uthread_target::wait (ptid_t ptid, struct target_waitstatus *status,
|
||||
thread_change_ptid (beneath, inferior_ptid, ptid);
|
||||
|
||||
/* Don't let the core see a ptid without a corresponding thread. */
|
||||
thread_info *thread = find_thread_ptid (beneath, ptid);
|
||||
thread_info *thread = beneath->find_thread (ptid);
|
||||
if (thread == NULL || thread->state == THREAD_EXITED)
|
||||
add_thread (beneath, ptid);
|
||||
|
||||
@@ -466,7 +466,7 @@ bsd_uthread_target::update_thread_list ()
|
||||
|
||||
process_stratum_target *proc_target
|
||||
= as_process_stratum_target (this->beneath ());
|
||||
thread_info *thread = find_thread_ptid (proc_target, ptid);
|
||||
thread_info *thread = proc_target->find_thread (ptid);
|
||||
if (thread == nullptr || thread->state == THREAD_EXITED)
|
||||
{
|
||||
/* If INFERIOR_PTID doesn't have a tid member yet, then ptid
|
||||
|
||||
Reference in New Issue
Block a user