aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.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/btrace.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/btrace.c')
-rw-r--r--gdb/btrace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c
index ba10f78..dc4d686 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -1616,7 +1616,7 @@ btrace_enable (struct thread_info *tp, const struct btrace_config *conf)
#endif /* !defined (HAVE_LIBIPT) */
DEBUG ("enable thread %s (%s)", print_thread_id (tp),
- target_pid_to_str (tp->ptid).c_str ());
+ tp->ptid.to_string ().c_str ());
tp->btrace.target = target_enable_btrace (tp->ptid, conf);
@@ -1671,7 +1671,7 @@ btrace_disable (struct thread_info *tp)
print_thread_id (tp), target_pid_to_str (tp->ptid).c_str ());
DEBUG ("disable thread %s (%s)", print_thread_id (tp),
- target_pid_to_str (tp->ptid).c_str ());
+ tp->ptid.to_string ().c_str ());
target_disable_btrace (btp->target);
btp->target = NULL;
@@ -1690,7 +1690,7 @@ btrace_teardown (struct thread_info *tp)
return;
DEBUG ("teardown thread %s (%s)", print_thread_id (tp),
- target_pid_to_str (tp->ptid).c_str ());
+ tp->ptid.to_string ().c_str ());
target_teardown_btrace (btp->target);
btp->target = NULL;
@@ -1912,7 +1912,7 @@ btrace_fetch (struct thread_info *tp, const struct btrace_cpu *cpu)
int errcode;
DEBUG ("fetch thread %s (%s)", print_thread_id (tp),
- target_pid_to_str (tp->ptid).c_str ());
+ tp->ptid.to_string ().c_str ());
btinfo = &tp->btrace;
tinfo = btinfo->target;
@@ -1989,7 +1989,7 @@ btrace_clear (struct thread_info *tp)
struct btrace_thread_info *btinfo;
DEBUG ("clear thread %s (%s)", print_thread_id (tp),
- target_pid_to_str (tp->ptid).c_str ());
+ tp->ptid.to_string ().c_str ());
/* Make sure btrace frames that may hold a pointer into the branch
trace data are destroyed. */