This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Misleading error message
- From: Paul Brook <paul at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 21 Oct 2006 18:59:14 +0100
- Subject: Misleading error message
When gdb gets a response to a g packet that is too long it tells the user
"Remote reply is too short:"
Patch below makes the error message more vague.
Approved offline by Daniel Jacobowitz.
Applied to head.
Paul
2006-10-21 Paul Brook <paul@codesourcery.com>
* remote.c (remote_fetch_registers): Fix error message.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.235
diff -u -p -r1.235 remote.c
--- remote.c 20 Oct 2006 01:08:14 -0000 1.235
+++ remote.c 21 Oct 2006 17:58:04 -0000
@@ -3530,7 +3530,7 @@ remote_fetch_registers (int regnum)
register_bytes_found = i;
if (REGISTER_BYTES_OK_P ()
&& !REGISTER_BYTES_OK (i))
- warning (_("Remote reply is too short: %s"), buf);
+ warning (_("Remote reply is wrong length: %s"), buf);
}
supply_them: