aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1996-12-31 15:02:30 +0000
committerMark Alexander <marka@cygnus>1996-12-31 15:02:30 +0000
commit133b13c022d80106be95aad0af515d480207b9f3 (patch)
tree694bdaa1de1ef7153afccf236b921b5cb958f0d7 /gdb/config
parent04624a8582de29ca2760e615191d8c67f7646363 (diff)
downloadgdb-133b13c022d80106be95aad0af515d480207b9f3.zip
gdb-133b13c022d80106be95aad0af515d480207b9f3.tar.gz
gdb-133b13c022d80106be95aad0af515d480207b9f3.tar.bz2
* config/mips/tm-mips.h: Undefine BREAKPOINT, replace
with separate LITTLE_BREAKPOINT and BIG_BREAKPOINT definitions; this fixes problem with setting breakpoints in little-endian programs in the simulator.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mips/tm-mips.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h
index d815cc7..ace22ac 100644
--- a/gdb/config/mips/tm-mips.h
+++ b/gdb/config/mips/tm-mips.h
@@ -114,11 +114,8 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *));
#define INNER_THAN <
#define BIG_ENDIAN 4321
-#if TARGET_BYTE_ORDER == BIG_ENDIAN
-#define BREAKPOINT {0, 0x5, 0, 0xd}
-#else
-#define BREAKPOINT {0xd, 0, 0x5, 0}
-#endif
+#define BIG_BREAKPOINT {0, 0x5, 0, 0xd}
+#define LITTLE_BREAKPOINT {0xd, 0, 0x5, 0}
/* Amount PC must be decremented by after a breakpoint.
This is often the number of bytes in BREAKPOINT