mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-15 20:08:23 +00:00
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.
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -8275,12 +8275,12 @@ remote_target::remote_notif_remove_queued_reply (ptid_t ptid)
|
|||||||
{
|
{
|
||||||
result = std::move (*iter);
|
result = std::move (*iter);
|
||||||
rs->stop_reply_queue.erase (iter);
|
rs->stop_reply_queue.erase (iter);
|
||||||
}
|
|
||||||
|
|
||||||
if (notif_debug)
|
if (notif_debug)
|
||||||
gdb_printf (gdb_stdlog,
|
gdb_printf (gdb_stdlog,
|
||||||
"notif: discard queued event: 'Stop' in %s\n",
|
"notif: discard queued event: 'Stop' in %s\n",
|
||||||
ptid.to_string ().c_str ());
|
ptid.to_string ().c_str ());
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -9186,8 +9186,6 @@ ptid_t
|
|||||||
remote_target::wait (ptid_t ptid, struct target_waitstatus *status,
|
remote_target::wait (ptid_t ptid, struct target_waitstatus *status,
|
||||||
target_wait_flags options)
|
target_wait_flags options)
|
||||||
{
|
{
|
||||||
REMOTE_SCOPED_DEBUG_ENTER_EXIT;
|
|
||||||
|
|
||||||
remote_state *rs = get_remote_state ();
|
remote_state *rs = get_remote_state ();
|
||||||
|
|
||||||
/* Start by clearing the flag that asks for our wait method to be called,
|
/* Start by clearing the flag that asks for our wait method to be called,
|
||||||
|
|||||||
Reference in New Issue
Block a user