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>
This commit is contained in:
parent
73746d78b7
commit
92ea7e41b9
|
@ -766,9 +766,11 @@ int target_examine(void)
|
||||||
if (target->defer_examine)
|
if (target->defer_examine)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
retval = target_examine_one(target);
|
int retval2 = target_examine_one(target);
|
||||||
if (retval != ERROR_OK)
|
if (retval2 != ERROR_OK) {
|
||||||
return retval;
|
LOG_WARNING("target %s examination failed", target_name(target));
|
||||||
|
retval = retval2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue