aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-fork.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-03-27 12:53:55 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-04-04 21:05:31 -0400
commit9213a6d79a64446de3c176773f123d1f8b9311b4 (patch)
tree6d7374a516e68130713eccfaf3ba60611809c104 /gdb/linux-fork.c
parent3c8af02fa0b140edcde2a65d016f565aad1a699b (diff)
downloadbinutils-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/linux-fork.c')
-rw-r--r--gdb/linux-fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index a6e74c0..52e3854 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -529,7 +529,7 @@ Please switch to another checkpoint before deleting the current one"));
list, waitpid the ptid.
If fi->parent_ptid is a part of lwp and it is stopped, waitpid the
ptid. */
- thread_info *parent = find_thread_ptid (linux_target, pptid);
+ thread_info *parent = linux_target->find_thread (pptid);
if ((parent == NULL && find_fork_ptid (pptid))
|| (parent != NULL && parent->state == THREAD_STOPPED))
{