only log BUG: (do not return error) in the case of unknown debug reason(0xc)
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 23 Oct 2008 12:52:30 +0000 (12:52 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 23 Oct 2008 12:52:30 +0000 (12:52 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1096 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm926ejs.c

index a6dbcfe73644acab1840b8ce156be3f3ec700528..b6ad09b736438f4440e0a7fca5751d31d2069393 100644 (file)
@@ -350,11 +350,11 @@ int arm926ejs_examine_debug_reason(target_t *target)
                        break;
                case 11:
                        LOG_ERROR("BUG: debug re-entry from system speed access shouldn't be handled here");
+                       target->debug_reason = DBG_REASON_DBGRQ;
                        break;
                default:
                        LOG_ERROR("BUG: unknown debug reason: 0x%x", debug_reason);
                        target->debug_reason = DBG_REASON_DBGRQ;
-                       retval = ERROR_TARGET_FAILURE;
                        break;
        }