* parse.c (write_dollar_variable): New function.
[deliverable/binutils-gdb.git] / gdb / sparc-stub.c
index d2e7b438a8dc658d96f4779e59472198bf8bdadb..1f04f31955f373d1cfcdb01f6d21229f1961c307 100644 (file)
@@ -159,6 +159,7 @@ _trap_low:
        srl     %l3, 1, %g1             ! Rotate wim right
        tst     %g1
        bg      good_wim                ! Branch if new wim is non-zero
+       nop
 
 ! At this point, we need to bring a 1 into the high order bit of the wim.
 ! Since we don't want to make any assumptions about the number of register
@@ -298,7 +299,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;
@@ -308,7 +309,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;
@@ -323,8 +324,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 ('+');
@@ -381,7 +382,7 @@ putpacket(buffer)
       putDebugChar(hexchars[checksum & 0xf]);
 
     }
-  while (getDebugChar() != '+');
+  while ((getDebugChar() & 0x7f) != '+');
 }
 
 static char remcomInBuffer[BUFMAX];
This page took 0.026369 seconds and 4 git commands to generate.