public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: John Baldwin <jhb@FreeBSD.org>
To: gdb-patches@sourceware.org
Subject: [RFC PATCH 6/7] fbsd nat: Switch function entry debug message from lwp to nat.
Date: Mon,  7 Jun 2021 10:09:31 -0700	[thread overview]
Message-ID: <20210607170932.3954-7-jhb@FreeBSD.org> (raw)
In-Reply-To: <20210607170932.3954-1-jhb@FreeBSD.org>

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(-)

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.  */
-- 
2.31.1


  parent reply	other threads:[~2021-06-07 17:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 17:09 [RFC PATCH 0/7] FreeBSD target async mode and related refactoring John Baldwin
2021-06-07 17:09 ` [RFC PATCH 1/7] gdbsupport: Add an event-pipe class John Baldwin
2021-06-25 21:37   ` Lancelot SIX
2021-06-27 16:12   ` Pedro Alves
2021-07-12 16:07     ` John Baldwin
2021-07-13 12:27       ` Pedro Alves
2021-06-07 17:09 ` [RFC PATCH 2/7] gdb linux-nat: Convert linux_nat_event_pipe to the event_pipe class John Baldwin
2021-06-27 16:12   ` Pedro Alves
2021-07-13 13:51     ` John Baldwin
2021-06-07 17:09 ` [RFC PATCH 3/7] gdbserver linux-low: Convert linux_event_pipe to the event-pipe class John Baldwin
2021-06-07 17:09 ` [RFC PATCH 4/7] fbsd-nat: Implement async target support John Baldwin
2021-06-07 22:49   ` John Baldwin
2021-06-27 16:12     ` Pedro Alves
2021-07-12 16:32       ` John Baldwin
2021-07-13 12:38         ` Pedro Alves
2021-07-20 22:35           ` John Baldwin
2021-06-07 17:09 ` [RFC PATCH 5/7] fbsd nat: Include ptrace operation in error messages John Baldwin
2021-06-27 16:13   ` Pedro Alves
2021-06-27 16:42     ` Pedro Alves
2021-07-12 15:11     ` John Baldwin
2021-07-13 12:43       ` Pedro Alves
2021-06-07 17:09 ` John Baldwin [this message]
2021-06-07 17:09 ` [RFC PATCH 7/7] fbsd nat: Return NULL rather than failing thread_alive John Baldwin
2021-06-25 23:35 ` [RFC PATCH 0/7] FreeBSD target async mode and related refactoring Lancelot SIX
2021-06-27 16:38 ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210607170932.3954-7-jhb@FreeBSD.org \
    --to=jhb@freebsd.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).