diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-06 16:42:52 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-06 16:42:52 +0000 |
commit | 1a406ce8c419273e124e5ab1c580a03c24ce056b (patch) | |
tree | 2623352809143a927be1a484f4a7ef4b3b31eee2 /gdb/remote-mips.c | |
parent | 27e889bf600d712a0135265b1f0b3c0207e84ff6 (diff) | |
download | gdb-1a406ce8c419273e124e5ab1c580a03c24ce056b.zip gdb-1a406ce8c419273e124e5ab1c580a03c24ce056b.tar.gz gdb-1a406ce8c419273e124e5ab1c580a03c24ce056b.tar.bz2 |
* remote-mips.c (break_insn): Remove.
(BREAK_INSN, BREAK_INSN_SIZE): Define.
(mips_insert_breakpoint): Use BREAK_INSN, not break_insn.
(mips_remove_breakpoint): Likewise.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index b993bac..0a31d77 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -1461,11 +1461,8 @@ mips_mourn_inferior () /* The IDT board uses an unusual breakpoint value, and sometimes gets confused when it sees the usual MIPS breakpoint instruction. */ -#if TARGET_BYTE_ORDER == BIG_ENDIAN -static unsigned char break_insn[] = {0, 0, 0x0a, 0x0d}; -#else -static unsigned char break_insn[] = {0x0d, 0x0a, 0, 0}; -#endif +#define BREAK_INSN (0x00000a0d) +#define BREAK_INSN_SIZE (4) /* Insert a breakpoint on targets that don't have any better breakpoint support. We read the contents of the target location and stash it, @@ -1482,10 +1479,7 @@ mips_insert_breakpoint (addr, contents_cache) { int status; - return - mips_store_word (addr, - extract_unsigned_integer (break_insn, sizeof break_insn), - contents_cache); + return mips_store_word (addr, BREAK_INSN, contents_cache); } static int @@ -1493,7 +1487,7 @@ mips_remove_breakpoint (addr, contents_cache) CORE_ADDR addr; char *contents_cache; { - return target_write_memory (addr, contents_cache, sizeof break_insn); + return target_write_memory (addr, contents_cache, BREAK_INSN_SIZE); } /* The target vector. */ |