aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorMark Salter <msalter@sadr.localdomain>2002-07-23 18:55:06 +0000
committerMark Salter <msalter@sadr.localdomain>2002-07-23 18:55:06 +0000
commit66504d44b96283186cf2a489e6995c222fb81f60 (patch)
tree0a9af256f8d54f527240fd7885f2c8a05853a29b /gdb/remote.c
parent4455705d7605e5b81eb4c7569f216424b3f0b0d6 (diff)
downloadgdb-66504d44b96283186cf2a489e6995c222fb81f60.zip
gdb-66504d44b96283186cf2a489e6995c222fb81f60.tar.gz
gdb-66504d44b96283186cf2a489e6995c222fb81f60.tar.bz2
Fix error check in remote_read_bytes
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 1758d17..dde6fb0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3953,7 +3953,9 @@ remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
putpkt (buf);
getpkt (buf, sizeof_buf, 0);
- if (buf[0] == 'E')
+ if (buf[0] == 'E'
+ && isxdigit (buf[1]) && isxdigit (buf[2])
+ && buf[3] == '\0')
{
/* There is no correspondance between what the remote protocol uses
for errors and errno codes. We would like a cleaner way of