aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-01-15 23:45:06 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-01-18 11:28:33 -0500
commite53c95d40b128a1e794b27ec8b166ae1445356eb (patch)
tree27ee9e14035d4bc48982bd172ce8cce80436375a /gdb/thread.c
parentcced7cacecad104fff03e94814a3fca1d304b16f (diff)
downloadfsf-binutils-gdb-e53c95d40b128a1e794b27ec8b166ae1445356eb.zip
fsf-binutils-gdb-e53c95d40b128a1e794b27ec8b166ae1445356eb.tar.gz
fsf-binutils-gdb-e53c95d40b128a1e794b27ec8b166ae1445356eb.tar.bz2
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
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c4
1 files changed, 2 insertions, 2 deletions
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);