diff options
author | Kevin Yang <kangyang@google.com> | 2020-10-12 15:33:47 -0700 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-07 20:52:26 +0000 |
commit | 92ea7e41b9261d4d7a88d96cc3ef0a727d1059f0 (patch) | |
tree | 712cd60238c6d6d07b475617f00b1afde2043534 | |
parent | 73746d78b7bd582bab26cebdcf78299b8da99a62 (diff) | |
download | riscv-openocd-92ea7e41b9261d4d7a88d96cc3ef0a727d1059f0.zip riscv-openocd-92ea7e41b9261d4d7a88d96cc3ef0a727d1059f0.tar.gz riscv-openocd-92ea7e41b9261d4d7a88d96cc3ef0a727d1059f0.tar.bz2 |
target: Examine subsequent targets after failure
When a target examination fails, continue to examine subsequent targets.
Return the number of targets that failed to examine.
Change-Id: I883a0c445edc7eb00f496b79271d773771ec6b66
Signed-off-by: Kevin Yang <kangyang@google.com>
Reviewed-on: http://openocd.zylin.com/5855
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r-- | src/target/target.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c index 39575b0..3b1c666 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -766,9 +766,11 @@ int target_examine(void) if (target->defer_examine) continue; - retval = target_examine_one(target); - if (retval != ERROR_OK) - return retval; + int retval2 = target_examine_one(target); + if (retval2 != ERROR_OK) { + LOG_WARNING("target %s examination failed", target_name(target)); + retval = retval2; + } } return retval; } |