X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farm926ejs.c;h=ff73e1a12ac6f5d0f953d9c9f9a9439ebe7f2375;hb=a3f35e348e535c2610e67390d466f49c3f0d9f42;hp=87603bca89a514aa28d2a6365b2ca9c41bda0d4a;hpb=bc67c6720b246652bc0915b1b6d036ada6c85fda;p=openocd.git diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c index 87603bca89..ff73e1a12a 100644 --- a/src/target/arm926ejs.c +++ b/src/target/arm926ejs.c @@ -337,9 +337,11 @@ int arm926ejs_examine_debug_reason(target_t *target) default: ERROR("BUG: unknown debug reason: 0x%x", debug_reason); target->debug_reason = DBG_REASON_DBGRQ; + retval = ERROR_TARGET_FAILURE; + break; } - return ERROR_OK; + return retval; } u32 arm926ejs_get_ttb(target_t *target)