aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-02-22 11:22:14 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2022-02-22 11:22:14 -0800
commit1188bfcfa981fd0f5007d667f9caefc24b8c7718 (patch)
tree3392fbe550dccbf158cd65b594bfaa11055c2706 /gdb/fbsd-nat.c
parent5efac66ca662bc56972c450d0f9011a3d0f46ed5 (diff)
downloadbinutils-1188bfcfa981fd0f5007d667f9caefc24b8c7718.zip
binutils-1188bfcfa981fd0f5007d667f9caefc24b8c7718.tar.gz
binutils-1188bfcfa981fd0f5007d667f9caefc24b8c7718.tar.bz2
fbsd-nat: Various cleanups to the ::resume entry debug message.
Move the message from 'show debug fbsd-lwp' to 'show debug fbsd-nat' since it is helpful for debugging async target support and not just LWP support. Use target_pid_to_str to format the ptid and log the step and signo arguments.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 18c2750..89c9ae6 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1162,8 +1162,9 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
return;
#endif
- fbsd_lwp_debug_printf ("ptid (%d, %ld, %s)", ptid.pid (), ptid.lwp (),
- pulongest (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. */