From 3c8af02fa0b140edcde2a65d016f565aad1a699b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 27 Mar 2023 12:53:54 -0400 Subject: 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 --- gdb/infrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 87141117dfe..461855b2a7b 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -646,7 +646,7 @@ holding the child stopped. Try \"set detach-on-fork\" or \ The former case will have pending_follow cleared, the later will have pending_follow set. */ - thread_info *parent_thread = find_thread_ptid (parent_inf, parent_ptid); + thread_info *parent_thread = parent_inf->find_thread (parent_ptid); gdb_assert (parent_thread != nullptr); parent_thread->pending_follow.set_spurious (); @@ -3761,7 +3761,7 @@ do_target_wait_1 (inferior *inf, ptid_t ptid, ptid.to_string ().c_str ()); /* We have a specific thread to check. */ - tp = find_thread_ptid (inf, ptid); + tp = inf->find_thread (ptid); gdb_assert (tp != nullptr); if (!tp->has_pending_waitstatus ()) tp = nullptr; -- cgit v1.2.1