aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2024-10-05 01:26:53 -0300
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2025-01-09 22:03:53 -0300
commit1f493519f703220bc072538ce3586f7363eba904 (patch)
treeeea8e627902e569a616115ae961a8e52de85f951
parent8a26bf8fc1a852159ff4c092f638e99ffe98e011 (diff)
downloadbinutils-1f493519f703220bc072538ce3586f7363eba904.zip
binutils-1f493519f703220bc072538ce3586f7363eba904.tar.gz
binutils-1f493519f703220bc072538ce3586f7363eba904.tar.bz2
GDB: remote: Print total bytes received in debug message
This is useful information I missed while debugging issues with the g packet reply. Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Approved-By: Simon Marchi <simon.marchi@efficios.com>
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index d9ad697..8cb9050 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10539,8 +10539,8 @@ remote_target::getpkt (gdb::char_vector *buf, bool forever, bool *is_notif)
if (val > max_chars)
remote_debug_printf_nofunc
- ("Packet received: %s [%d bytes omitted]", str.c_str (),
- val - max_chars);
+ ("Packet received: %s [%d of %d bytes omitted]", str.c_str (),
+ val - max_chars, val);
else
remote_debug_printf_nofunc ("Packet received: %s",
str.c_str ());