diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-11-15 22:29:48 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-11-15 22:29:48 +0000 |
commit | 2d4838fe0dcca00186f623dce94352572ec05dae (patch) | |
tree | e7e5b9a93d42861e7146c20713e3b1863084ac46 /gdb/sparcl-stub.c | |
parent | 8de6b5f8e9e8add46ec46977e984a28411ad056a (diff) | |
download | gdb-2d4838fe0dcca00186f623dce94352572ec05dae.zip gdb-2d4838fe0dcca00186f623dce94352572ec05dae.tar.gz gdb-2d4838fe0dcca00186f623dce94352572ec05dae.tar.bz2 |
* i386-stub.c, m68k-stub.c, sparc-stub.c, sparcl-stub.c: Mask out
the top bit returned by getDebugChar.
Diffstat (limited to 'gdb/sparcl-stub.c')
-rw-r--r-- | gdb/sparcl-stub.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/sparcl-stub.c b/gdb/sparcl-stub.c index ddcf246..fa63ef1 100644 --- a/gdb/sparcl-stub.c +++ b/gdb/sparcl-stub.c @@ -375,7 +375,7 @@ getpacket(buffer) do { /* wait around for the start character, ignore all other characters */ - while ((ch = getDebugChar()) != '$') ; + while ((ch = (getDebugChar() & 0x7f)) != '$') ; checksum = 0; xmitcsum = -1; @@ -385,7 +385,7 @@ getpacket(buffer) /* now, read until a # or end of buffer is found */ while (count < BUFMAX) { - ch = getDebugChar(); + ch = getDebugChar() & 0x7f; if (ch == '#') break; checksum = checksum + ch; @@ -400,8 +400,8 @@ getpacket(buffer) if (ch == '#') { - xmitcsum = hex(getDebugChar()) << 4; - xmitcsum |= hex(getDebugChar()); + xmitcsum = hex(getDebugChar() & 0x7f) << 4; + xmitcsum |= hex(getDebugChar() & 0x7f); #if 0 /* Humans shouldn't have to figure out checksums to type to it. */ putDebugChar ('+'); @@ -458,7 +458,7 @@ putpacket(buffer) putDebugChar(hexchars[checksum & 0xf]); } - while (getDebugChar() != '+'); + while ((getDebugChar() & 0x7f) != '+'); } static char remcomInBuffer[BUFMAX]; |