diff options
author | Jun Ma <jma@hfut.edu.cn> | 2010-05-10 22:54:25 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-12 13:37:33 +0200 |
commit | b05f8171c965bc3875df82f4469f952a13e2c504 (patch) | |
tree | b4670b261d1c1f94a8cb551ee197c633321fa223 | |
parent | 6f03e92959008708ac6808df679f5729f6683166 (diff) | |
download | openocd_libswd-b05f8171c965bc3875df82f4469f952a13e2c504.tar.gz openocd_libswd-b05f8171c965bc3875df82f4469f952a13e2c504.tar.bz2 openocd_libswd-b05f8171c965bc3875df82f4469f952a13e2c504.tar.xz openocd_libswd-b05f8171c965bc3875df82f4469f952a13e2c504.zip |
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>
-rw-r--r-- | src/target/arm7_9_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |