diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-22 11:27:29 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-22 13:57:43 -0500 |
commit | 7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d (patch) | |
tree | 11f65eb07e8a35b04dd4fda44eca976d8c6d9f23 /gdbserver/linux-low.cc | |
parent | a58577878b19cb2e6ebbfdbff557203c344955b1 (diff) | |
download | gdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.zip gdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.tar.gz gdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.tar.bz2 |
gdb: rename target_waitstatus_to_string to target_waitstatus::to_string
Make target_waitstatus_to_string a "to_string" method of
target_waitstatus, a bit like we have ptid_t::to_string already. This
will save a bit of typing.
Change-Id: Id261b7a09fa9fa3c738abac131c191a6f9c13905
Diffstat (limited to 'gdbserver/linux-low.cc')
-rw-r--r-- | gdbserver/linux-low.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 34ede23..d214aff 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -3445,13 +3445,9 @@ linux_process_target::wait_1 (ptid_t ptid, target_waitstatus *ourstatus, if (debug_threads) { if (event_child->waitstatus.kind () != TARGET_WAITKIND_IGNORE) - { - std::string str - = target_waitstatus_to_string (&event_child->waitstatus); - - debug_printf ("LWP %ld: extended event with waitstatus %s\n", - lwpid_of (get_lwp_thread (event_child)), str.c_str ()); - } + debug_printf ("LWP %ld: extended event with waitstatus %s\n", + lwpid_of (get_lwp_thread (event_child)), + event_child->waitstatus.to_string ().c_str ()); if (current_thread->last_resume_kind == resume_step) { if (event_child->step_range_start == event_child->step_range_end) |