diff options
author | Stu Grossman <grossman@cygnus> | 1992-08-25 03:47:53 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-08-25 03:47:53 +0000 |
commit | ee97d6736c59414e36fe1d0ca34eae0b3bdcb2e1 (patch) | |
tree | 5be8a8bba42417a9685ee76b852215e59ae8ce42 /gdb | |
parent | 817b5a60abfe34c233e7abf66315431cd76884e3 (diff) | |
download | gdb-ee97d6736c59414e36fe1d0ca34eae0b3bdcb2e1.zip gdb-ee97d6736c59414e36fe1d0ca34eae0b3bdcb2e1.tar.gz gdb-ee97d6736c59414e36fe1d0ca34eae0b3bdcb2e1.tar.bz2 |
* sparc-stub.c (handle_exception): Flush instruction cache just
before returning to the user. (hexToInt): Fix overzealous cleanup.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sparc-stub.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a588037..1e9fd85 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com) + + * sparc-stub.c (handle_exception): Flush instruction cache just + before returning to the user. (hexToInt): Fix overzealous cleanup. + Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com) * infrun.c (handle_command): Rewrite to allow multiple signal diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c index 461b9cd..62636c2 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 */ |