From eeeb9f4332031932b608946d5a15c05c1445d508 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Wed, 12 Apr 2017 10:07:03 -0400 Subject: [PATCH] ARM7/9: Fixed gcc6 build error This error is a real bug where a bracket is missing and because of it an error condition will not be reported properly. Signed-off-by: Robert Foss --- src/target/arm7_9_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 617ee784..b7f3c98a 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -350,11 +350,12 @@ static int arm7_9_unset_breakpoint(struct target *target, struct breakpoint *bre if (retval != ERROR_OK) return retval; current_instr = target_buffer_get_u16(target, (uint8_t *)¤t_instr); - if (current_instr == arm7_9->thumb_bkpt) + if (current_instr == arm7_9->thumb_bkpt) { retval = target_write_memory(target, breakpoint->address, 2, 1, breakpoint->orig_instr); if (retval != ERROR_OK) return retval; + } }