diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-01-15 23:45:06 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-01-18 11:28:33 -0500 |
commit | e53c95d40b128a1e794b27ec8b166ae1445356eb (patch) | |
tree | 27ee9e14035d4bc48982bd172ce8cce80436375a /gdb/displaced-stepping.c | |
parent | cced7cacecad104fff03e94814a3fca1d304b16f (diff) | |
download | fsf-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/displaced-stepping.c')
-rw-r--r-- | gdb/displaced-stepping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/displaced-stepping.c b/gdb/displaced-stepping.c index 43fc435..e2afbe4 100644 --- a/gdb/displaced-stepping.c +++ b/gdb/displaced-stepping.c @@ -232,7 +232,7 @@ displaced_step_buffers::finish (gdbarch *arch, thread_info *thread, buffer->saved_copy.data (), len); displaced_debug_printf ("restored %s %s", - target_pid_to_str (thread->ptid).c_str (), + thread->ptid.to_string ().c_str (), paddress (arch, buffer->addr)); regcache *rc = get_thread_regcache (thread); @@ -285,7 +285,7 @@ displaced_step_buffers::restore_in_ptid (ptid_t ptid) write_memory_ptid (ptid, buffer.addr, buffer.saved_copy.data (), len); displaced_debug_printf ("restored in ptid %s %s", - target_pid_to_str (ptid).c_str (), + ptid.to_string ().c_str (), paddress (arch, buffer.addr)); } } |