diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-08-14 22:58:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-08-14 22:58:30 +0000 |
commit | a68128530cc39e10ef29c20c17f2e30900921b27 (patch) | |
tree | 34d7fd3c2e4415bce0fa6ad3147d5baab45a11f8 /c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c | |
parent | 2002-08-14 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-a68128530cc39e10ef29c20c17f2e30900921b27.tar.bz2 |
2002-08-14 Greg Menke <gregory.menke@gsfc.nasa.gov>
* mips-stub.c: Re-debugged a breakpoint problem, zbreak target
address was a char * which caused the target instruction to not
be fully copied, so the zbreak logic corrupted the original
instruction and didn't insert a valid break instruction.
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.c | 8 |
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; }; |