From: David B. <dbr...@us...> - 2009-11-01 03:19:34
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via c352c96f74bd5d5c3a498805856e4c2e6145eb0a (commit) from 0da0bfd40a0ba46a68a6b9db428700241d2700b1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c352c96f74bd5d5c3a498805856e4c2e6145eb0a Author: David Brownell <dbr...@us...> Date: Sat Oct 31 18:03:54 2009 -0700 arm9tdmi: more correct fix for vector_catch Just use the array of names we're given, ignoring indices. The "reserved means don't use" patch missed that change. Signed-off-by: David Brownell <dbr...@us...> diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c index e3c6ca3..9c90f00 100644 --- a/src/target/arm9tdmi.c +++ b/src/target/arm9tdmi.c @@ -1042,14 +1042,11 @@ static int handle_arm9tdmi_catch_vectors_command( embeddedice_store_reg(vector_catch); } - /* output current settings (skip RESERVED vector) */ - for (i = 0; i < 8; i++) - { - if (i != 5) - { - command_print(cmd_ctx, "%s: %s", arm9tdmi_vectors[i].name, - (vector_catch_value & (1 << i)) ? "catch" : "don't catch"); - } + /* output current settings */ + for (i = 0; arm9tdmi_vectors[i].name; i++) { + command_print(cmd_ctx, "%s: %s", arm9tdmi_vectors[i].name, + (vector_catch_value & arm9tdmi_vectors[i].value) + ? "catch" : "don't catch"); } return ERROR_OK; ----------------------------------------------------------------------- Summary of changes: src/target/arm9tdmi.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) hooks/post-receive -- Main OpenOCD repository |