]> git.sur5r.net Git - openocd/commitdiff
fix instruction refilling bug when using software breakpoints on a big-endian arm926e...
authorJun Ma <jma@hfut.edu.cn>
Mon, 10 May 2010 14:54:25 +0000 (22:54 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 12 May 2010 11:37:33 +0000 (13:37 +0200)
Signed-off-by: Jun Ma <sync.jma@gmail.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/arm7_9_common.c

index 9f1bb2e64722145d7c17a7b730e568df3835cc60..ac18b379f0093556f871d7039805a4a4ea537fd1 100644 (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)
                                {