summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c')
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
index c7edbf0f96..9018ed36e9 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
@@ -249,7 +249,13 @@ struct z0break
struct z0break *prev;
/* Location, preserved data */
- unsigned char *address;
+
+ /* the address pointer, really, really must be a pointer to
+ ** a 32 bit quantity (likely 64 on the R4k), so the full instruction is read &
+ ** written. Making it a char * as on the i386 will cause
+ ** the zbreaks to mess up the breakpoint instructions
+ */
+ unsigned *address;
unsigned instr;
};