fix instruction refilling bug when using software breakpoints on a big-endian arm926ej-s system

Signed-off-by: Jun Ma <sync.jma@gmail.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Jun Ma 2010-05-10 22:54:25 +08:00 committed by Øyvind Harboe
parent 6f03e92959
commit b05f8171c9
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ static int arm7_9_unset_breakpoint(struct target *target, struct breakpoint *bre
{
return retval;
}
current_instr = target_buffer_get_u32(target, (uint8_t *)&current_instr);
if (current_instr == arm7_9->arm_bkpt)
if ((retval = target_write_memory(target, breakpoint->address, 4, 1, breakpoint->orig_instr)) != ERROR_OK)
{