From: Øyvind Harboe Date: Mon, 12 Oct 2009 12:10:49 +0000 (+0200) Subject: Propagate wDTR/rDTR failure immediately, otherwise it's followed up by timeout errors. X-Git-Tag: v0.3.0-rc0~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ca473468c94e28599ad56bd6b671c04d9d88849;p=openocd Propagate wDTR/rDTR failure immediately, otherwise it's followed up by timeout errors. --- diff --git a/src/target/arm11.c b/src/target/arm11.c index 588ea3c2..915bee64 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -610,6 +610,7 @@ int arm11_leave_debug_state(arm11_common_t * arm11) if (DSCR & (ARM11_DSCR_RDTR_FULL | ARM11_DSCR_WDTR_FULL)) { LOG_ERROR("wDTR/rDTR inconsistent (DSCR %08" PRIx32 ")", DSCR); + return ERROR_FAIL; } }