summaryrefslogtreecommitdiff
path: root/gdb/sparc-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc-stub.c')
-rw-r--r--gdb/sparc-stub.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c
index 461b9cd6155..62636c2cad7 100644
--- a/gdb/sparc-stub.c
+++ b/gdb/sparc-stub.c
@@ -546,7 +546,7 @@ hexToInt(char **ptr, int *intValue)
*intValue = (*intValue << 4) | hexValue;
numChars ++;
- *ptr++;
+ (*ptr)++;
}
return (numChars);
@@ -727,6 +727,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 */