summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:15:46 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:15:46 +0000
commit081bc0611209ff2d78857a2e9430b77ed7766963 (patch)
treecd975e98ff63358a1e8d939fb67ab6b058ea0e05 /src
parent8bc200e1fe1e0997989aa0bf4d9f57cda0b3c9c3 (diff)
downloadopenocd+libswd-081bc0611209ff2d78857a2e9430b77ed7766963.tar.gz
openocd+libswd-081bc0611209ff2d78857a2e9430b77ed7766963.tar.bz2
openocd+libswd-081bc0611209ff2d78857a2e9430b77ed7766963.tar.xz
openocd+libswd-081bc0611209ff2d78857a2e9430b77ed7766963.zip
Edgar Grimberg, fix arm926ejs_examine_debug_reason return value.
git-svn-id: svn://svn.berlios.de/openocd/trunk@470 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/arm926ejs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index 87603bca..ff73e1a1 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)