* xcoffexec.c (exec_ops): child_attach and child_create_inferior
[deliverable/binutils-gdb.git] / gdb / sparc-stub.c
index 461b9cd6155c366535a2060355d5cd50db729351..47b98109d73a43733946ce424609c558940aebbe 100644 (file)
@@ -289,11 +289,6 @@ getpacket(buffer)
        {
          xmitcsum = hex(getDebugChar()) << 4;
          xmitcsum |= hex(getDebugChar());
-#if 1
-         /* Humans shouldn't have to figure out checksums to type to it. */
-         putDebugChar ('+');
-         return;
-#endif
          if (checksum != xmitcsum)
            putDebugChar('-');  /* failed checksum */
          else
@@ -546,7 +541,7 @@ hexToInt(char **ptr, int *intValue)
       *intValue = (*intValue << 4) | hexValue;
       numChars ++;
 
-      *ptr++;
+      (*ptr)++;
     }
 
   return (numChars);
@@ -727,6 +722,12 @@ handle_exception (registers)
              registers[NPC] = addr + 4;
            }
 
+/* Need to flush the instruction cache here, as we may have deposited a
+   breakpoint, and the icache probably has no way of knowing that a data ref to
+   some location may have changed something that is in the instruction cache.
+ */
+
+         flush_i_cache();
          return;
 
          /* kill the program */
This page took 0.023662 seconds and 4 git commands to generate.