aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2024-06-24 08:21:17 +0000
committerMarkus Metzger <markus.t.metzger@intel.com>2024-09-13 10:25:27 +0000
commit3f75b095204e480e5b0fd10806a5da60e1595c20 (patch)
tree0de9860bde6e250652e7992cfa90f4be4062f684
parent97e2c4e49c77b5ee2b160098196f3a0698c2737e (diff)
downloadgdb-3f75b095204e480e5b0fd10806a5da60e1595c20.zip
gdb-3f75b095204e480e5b0fd10806a5da60e1595c20.tar.gz
gdb-3f75b095204e480e5b0fd10806a5da60e1595c20.tar.bz2
gdb, remote: adjust debug printing
remote::wait () may get called rather frequently, polluting the logging output with tons of [remote] wait: enter [remote] wait: exit messages. Similarly, remote_target::remote_notif_remove_queued_reply () will print the debug message even if nothing was actually removed. Change that to only print a debug message if a stop reply was removed.
-rw-r--r--gdb/remote.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 2c3988c..24b89ae 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -7891,12 +7891,12 @@ remote_target::remote_notif_remove_queued_reply (ptid_t ptid)
{
result = std::move (*iter);
rs->stop_reply_queue.erase (iter);
- }
- if (notif_debug)
- gdb_printf (gdb_stdlog,
- "notif: discard queued event: 'Stop' in %s\n",
- ptid.to_string ().c_str ());
+ if (notif_debug)
+ gdb_printf (gdb_stdlog,
+ "notif: discard queued event: 'Stop' in %s\n",
+ ptid.to_string ().c_str ());
+ }
return result;
}
@@ -8796,8 +8796,6 @@ ptid_t
remote_target::wait (ptid_t ptid, struct target_waitstatus *status,
target_wait_flags options)
{
- REMOTE_SCOPED_DEBUG_ENTER_EXIT;
-
remote_state *rs = get_remote_state ();
/* Start by clearing the flag that asks for our wait method to be called,