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/amd-dbgapi-target.c | |
parent | 3c8af02fa0b140edcde2a65d016f565aad1a699b (diff) | |
download | binutils-9213a6d79a64446de3c176773f123d1f8b9311b4.zip binutils-9213a6d79a64446de3c176773f123d1f8b9311b4.tar.gz binutils-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/amd-dbgapi-target.c')
-rw-r--r-- | gdb/amd-dbgapi-target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c index f516103..f1ef37d 100644 --- a/gdb/amd-dbgapi-target.c +++ b/gdb/amd-dbgapi-target.c @@ -718,7 +718,7 @@ amd_dbgapi_target::stop (ptid_t ptid) { /* No need to iterate all non-exited threads if the request is to stop a specific thread. */ - stop_one_thread (find_thread_ptid (proc_target, ptid)); + stop_one_thread (proc_target->find_thread (ptid)); return; } @@ -998,7 +998,7 @@ process_one_event (amd_dbgapi_event_id_t event_id, else ws.set_stopped (GDB_SIGNAL_0); - thread_info *thread = find_thread_ptid (proc_target, event_ptid); + thread_info *thread = proc_target->find_thread (event_ptid); if (thread == nullptr) { /* Silently create new GPU threads to avoid spamming the |