[RFC,6/7] fbsd nat: Switch function entry debug message from lwp to nat.

Message ID 20210607170932.3954-7-jhb@FreeBSD.org
State New
Headers show
Series
  • FreeBSD target async mode and related refactoring
Related show

Commit Message

John Baldwin June 7, 2021, 5:09 p.m.
While here, use target_pid_to_str to format the ptid and log the step
and signo arguments.

gdb/ChangeLog:

	* fbsd-nat.c (fbsd_nat_target::resume): Adjust debug message.
---
 gdb/ChangeLog  | 4 ++++
 gdb/fbsd-nat.c | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.31.1

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1369444e89..675cc0aaf6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@ 
+2021-06-04  John Baldwin  <jhb@FreeBSD.org>
+
+	* fbsd-nat.c (fbsd_nat_target::resume): Adjust debug message.
+
 2021-06-04  John Baldwin  <jhb@FreeBSD.org>
 
 	* fbsd-nat.c (fbsd_nat_target::thread_name)
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 84bf23a36b..92bd81ea33 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1163,8 +1163,9 @@  fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
     return;
 #endif
 
-  fbsd_lwp_debug_printf ("ptid (%d, %ld, %ld)", ptid.pid (), ptid.lwp (),
-			 ptid.tid ());
+  fbsd_nat_debug_printf ("[%s], step %d, signo %d (%s)",
+			 target_pid_to_str (ptid).c_str (), step, signo,
+			 gdb_signal_to_name (signo));
   if (ptid.lwp_p ())
     {
       /* If ptid is a specific LWP, suspend all other LWPs in the process.  */