diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-03-27 12:53:55 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-04-04 21:05:31 -0400 |
commit | 9213a6d79a64446de3c176773f123d1f8b9311b4 (patch) | |
tree | 6d7374a516e68130713eccfaf3ba60611809c104 /gdb/ravenscar-thread.c | |
parent | 3c8af02fa0b140edcde2a65d016f565aad1a699b (diff) | |
download | gdb-9213a6d79a64446de3c176773f123d1f8b9311b4.zip gdb-9213a6d79a64446de3c176773f123d1f8b9311b4.tar.gz gdb-9213a6d79a64446de3c176773f123d1f8b9311b4.tar.bz2 |
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>
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r-- | gdb/ravenscar-thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index ad35735..5201613 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -127,7 +127,7 @@ struct ravenscar_thread_target final : public target_ops process_stratum_target *proc_target = as_process_stratum_target (this->beneath ()); ptid_t underlying = get_base_thread_from_ravenscar_task (tp->ptid); - tp = find_thread_ptid (proc_target, underlying); + tp = proc_target->find_thread (underlying); return beneath ()->enable_btrace (tp, conf); } @@ -161,7 +161,7 @@ private: process_stratum_target *proc_target = as_process_stratum_target (this->beneath ()); ptid_t underlying = get_base_thread_from_ravenscar_task (ptid); - switch_to_thread (find_thread_ptid (proc_target, underlying)); + switch_to_thread (proc_target->find_thread (underlying)); } /* Some targets use lazy FPU initialization. On these, the FP @@ -312,7 +312,7 @@ ravenscar_thread_target::add_active_thread () /* The running thread may not have been added to system.tasking.debug's list yet; so ravenscar_update_thread_list may not always add it to the thread list. Add it here. */ - thread_info *active_thr = find_thread_ptid (proc_target, active_ptid); + thread_info *active_thr = proc_target->find_thread (active_ptid); if (active_thr == nullptr) { active_thr = ::add_thread (proc_target, active_ptid); |