From e53c95d40b128a1e794b27ec8b166ae1445356eb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 15 Jan 2022 23:45:06 -0500 Subject: gdb: use ptid_t::to_string instead of target_pid_to_str in debug statements Same idea as 0fab79556484 ("gdb: use ptid_t::to_string in infrun debug messages"), but throughout GDB. Change-Id: I62ba36eaef29935316d7187b9b13d7b88491acc1 --- gdb/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/thread.c') diff --git a/gdb/thread.c b/gdb/thread.c index c43f661..0f9fbe3 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -424,7 +424,7 @@ void global_thread_step_over_chain_enqueue (struct thread_info *tp) { infrun_debug_printf ("enqueueing thread %s in global step over chain", - target_pid_to_str (tp->ptid).c_str ()); + tp->ptid.to_string ().c_str ()); gdb_assert (!thread_is_in_step_over_chain (tp)); global_thread_step_over_list.push_back (*tp); @@ -444,7 +444,7 @@ void global_thread_step_over_chain_remove (struct thread_info *tp) { infrun_debug_printf ("removing thread %s from global step over chain", - target_pid_to_str (tp->ptid).c_str ()); + tp->ptid.to_string ().c_str ()); gdb_assert (thread_is_in_step_over_chain (tp)); auto it = global_thread_step_over_list.iterator_to (*tp); -- cgit v1.1