* 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.
This commit is contained in:
parent
04624a8582
commit
133b13c022
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue