CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use BREAKPOINT_FROM_PC Delete global variable memory_breakpoint_size. Use BREAKPOINT_FROM_PC instead.
This commit is contained in:
parent
fbf1f3f1f6
commit
afcad54a90
9 changed files with 123 additions and 28 deletions
|
@ -134,6 +134,25 @@ branch_dest (opcode, instr, pc, safety)
|
|||
}
|
||||
|
||||
|
||||
/* Sequence of bytes for breakpoint instruction. */
|
||||
|
||||
#define BIG_BREAKPOINT { 0x7d, 0x82, 0x10, 0x08 }
|
||||
#define LITTLE_BREAKPOINT { 0x08, 0x10, 0x82, 0x7d }
|
||||
|
||||
unsigned char *
|
||||
rs6000_breakpoint_from_pc (bp_addr, bp_size)
|
||||
CORE_ADDR *bp_addr;
|
||||
int *bp_size;
|
||||
{
|
||||
static unsigned char *big_breakpoint = BIG_BREAKPOINT;
|
||||
static unsigned char *little_breakpoint = LITTLE_BREAKPOINT;
|
||||
*bp_size = 4;
|
||||
if (TARGET_BYTE_ORDER == BIG_ENDIAN)
|
||||
return big_breakpoint;
|
||||
else
|
||||
return little_breakpoint;
|
||||
}
|
||||
|
||||
|
||||
/* AIX does not support PT_STEP. Simulate it. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue