diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-03-27 12:53:54 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-04-04 21:05:30 -0400 |
commit | 3c8af02fa0b140edcde2a65d016f565aad1a699b (patch) | |
tree | 7d738cf49a90ef27a9b700b5e914f6d91b765e73 /gdb/ravenscar-thread.c | |
parent | 91385d13a8820bf3e6274ec51d4da613bae67554 (diff) | |
download | gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.zip gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.tar.gz gdb-3c8af02fa0b140edcde2a65d016f565aad1a699b.tar.bz2 |
gdb: make find_thread_ptid an inferior method
Make find_thread_ptid (the overload that takes an inferior) a method of
struct inferior.
Change-Id: Ie5b9fa623ff35aa7ddb45e2805254fc8e83c9cd4
Reviewed-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r-- | gdb/ravenscar-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 22fbdbe..ad35735 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -452,7 +452,7 @@ ravenscar_thread_target::wait (ptid_t ptid, void ravenscar_thread_target::add_thread (struct ada_task_info *task) { - if (find_thread_ptid (current_inferior (), task->ptid) == NULL) + if (current_inferior ()->find_thread (task->ptid) == NULL) { ::add_thread (current_inferior ()->process_target (), task->ptid); m_cpu_map[task->ptid.tid ()] = task->base_cpu; |