]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver: use target_waitstatus::to_string in 'prepare_resume_reply'
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 21 Jun 2023 06:47:01 +0000 (08:47 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 21 Jun 2023 06:47:13 +0000 (08:47 +0200)
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>
gdbserver/remote-utils.cc

index f54bbab0243769f3c6e73f360a301b8781d9cd17..722915d30f2dfb36ba1f294940e0a47a67babab7 100644 (file)
@@ -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 ())
     {