]> git.sur5r.net Git - openocd/commitdiff
Edgar Grimberg, fix arm926ejs_examine_debug_reason return value.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 7 Mar 2008 16:15:46 +0000 (16:15 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 7 Mar 2008 16:15:46 +0000 (16:15 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@470 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm926ejs.c

index 87603bca89a514aa28d2a6365b2ca9c41bda0d4a..ff73e1a12ac6f5d0f953d9c9f9a9439ebe7f2375 100644 (file)
@@ -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)