From: Jun Ma Date: Mon, 10 May 2010 14:54:25 +0000 (+0800) Subject: fix instruction refilling bug when using software breakpoints on a big-endian arm926e... X-Git-Tag: v0.5.0-rc1~704 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b05f8171c965bc3875df82f4469f952a13e2c504;p=openocd fix instruction refilling bug when using software breakpoints on a big-endian arm926ej-s system Signed-off-by: Jun Ma Signed-off-by: Øyvind Harboe --- diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 9f1bb2e6..ac18b379 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -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 *)¤t_instr); if (current_instr == arm7_9->arm_bkpt) if ((retval = target_write_memory(target, breakpoint->address, 4, 1, breakpoint->orig_instr)) != ERROR_OK) {