diff options
author | Stan Shebs <shebs@codesourcery.com> | 1996-04-28 23:43:05 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1996-04-28 23:43:05 +0000 |
commit | fea17b5545043b58cb4c89d3354b00f82527604f (patch) | |
tree | 3c4b3d64f19f65705c0f6e546711c3bbb46da39f /gdb/config | |
parent | 5a2934b4bef77fa27323891333aa99ebb519cf4e (diff) | |
download | gdb-fea17b5545043b58cb4c89d3354b00f82527604f.zip gdb-fea17b5545043b58cb4c89d3354b00f82527604f.tar.gz gdb-fea17b5545043b58cb4c89d3354b00f82527604f.tar.bz2 |
Support for bi-endian remote breakpoints.
* remote.c (big_break_insn, little_break_insn): New globals.
(break_insn): Remove.
(remote_insert_breakpoint, remote_remove_breakpoint): Use own
code if REMOTE_BREAKPOINT defined, otherwise call memory
breakpoint functions.
* config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
(BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/sh/tm-sh.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index 0a57192..9152625 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -60,7 +60,9 @@ extern CORE_ADDR sh_skip_prologue (); #define BREAKPOINT {0xc3, 0xc3} /* 0xc3c3 is trapa #c3, and it works in big and little endian modes */ -#define REMOTE_BREAKPOINT { 0xc3, 0x20} + +#define BIG_REMOTE_BREAKPOINT { 0xc3, 0x20 } +#define LITTLE_REMOTE_BREAKPOINT { 0x20, 0xc3 } /* If your kernel resets the pc after the trap happens you may need to define this before including this file. */ |