- improved ETB trace output
- use BKPT instruction on cores supporting it (ARM926EJ-S, ARM966E-S) - correctly handle endianness of software breakpoint instruction git-svn-id: svn://svn.berlios.de/openocd/trunk@143 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -187,15 +187,15 @@ int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
|
||||
{
|
||||
/* keep the original instruction in target endianness */
|
||||
target->type->read_memory(target, breakpoint->address, 4, 1, breakpoint->orig_instr);
|
||||
/* write the original instruction in target endianness (arm7_9->arm_bkpt is host endian) */
|
||||
/* write the breakpoint instruction in target endianness (arm7_9->arm_bkpt is host endian) */
|
||||
target_write_u32(target, breakpoint->address, arm7_9->arm_bkpt);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* keep the original instruction in target endianness */
|
||||
target->type->read_memory(target, breakpoint->address, 2, 1, breakpoint->orig_instr);
|
||||
/* write the original instruction in target endianness (arm7_9->arm_bkpt is host endian) */
|
||||
target_write_u32(target, breakpoint->address, arm7_9->thumb_bkpt);
|
||||
/* write the breakpoint instruction in target endianness (arm7_9->thumb_bkpt is host endian) */
|
||||
target_write_u16(target, breakpoint->address, arm7_9->thumb_bkpt);
|
||||
}
|
||||
breakpoint->set = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user