* config/mips/tm-mips.h: Undefine BREAKPOINT, replace
authorMark Alexander <marka@cygnus>
Tue, 31 Dec 1996 15:02:30 +0000 (15:02 +0000)
committerMark Alexander <marka@cygnus>
Tue, 31 Dec 1996 15:02:30 +0000 (15:02 +0000)
with separate LITTLE_BREAKPOINT and BIG_BREAKPOINT definitions;
this fixes problem with setting breakpoints in little-endian
programs in the simulator.

gdb/config/mips/tm-mips.h

index d815cc7421e55595a796be5f891312f8b50603c3..ace22ac95ee37f4cf3fa4466956e931dd1addfb2 100644 (file)
@@ -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