diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2023-06-21 08:47:01 +0200 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2023-06-21 08:47:13 +0200 |
commit | 94dd9fb7482cc292f6ea7e641340563ca5536fcc (patch) | |
tree | f7a845b36ffe1742ab899c1c874f76507ae38d86 /gdbserver | |
parent | fffb10b122c58128f604ddabd421db84c99a5eaa (diff) | |
download | gdb-94dd9fb7482cc292f6ea7e641340563ca5536fcc.zip gdb-94dd9fb7482cc292f6ea7e641340563ca5536fcc.tar.gz gdb-94dd9fb7482cc292f6ea7e641340563ca5536fcc.tar.bz2 |
gdbserver: use target_waitstatus::to_string in 'prepare_resume_reply'
Use the to_string method of target_waitstatus in
'prepare_resume_reply' for a more readable log message.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/remote-utils.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdbserver/remote-utils.cc b/gdbserver/remote-utils.cc index f54bbab..722915d 100644 --- a/gdbserver/remote-utils.cc +++ b/gdbserver/remote-utils.cc @@ -1053,8 +1053,9 @@ void prepare_resume_reply (char *buf, ptid_t ptid, const target_waitstatus &status) { client_state &cs = get_client_state (); - threads_debug_printf ("Writing resume reply for %s:%d", - target_pid_to_str (ptid).c_str (), status.kind ()); + threads_debug_printf ("Writing resume reply for %s: %s", + target_pid_to_str (ptid).c_str (), + status.to_string ().c_str ()); switch (status.kind ()) { |