This is an automated email from Gerrit. "Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6773
-- gerrit commit a03a3cf9b1c69e4ac3d28376f5e77ada47654eb0 Author: Tomas Vanek <van...@fbl.cz> Date: Fri Dec 10 17:42:02 2021 +0100 target/breakpoints: add address related error types Change-Id: I80986808b12f3e5b448af0fcb40c527c06fb9dfc Signed-off-by: Tomas Vanek <van...@fbl.cz> diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index dd901ef25..22b2479c6 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -82,6 +82,12 @@ static int breakpoint_add_internal(struct target *target, case ERROR_TARGET_RESOURCE_NOT_AVAILABLE: reason = "resource not available"; goto fail; + case ERROR_TARGET_INVALID_BREAKPOINT_ADDRESS: + reason = "invalid address"; + goto fail; + case ERROR_TARGET_MAGIC_ADDRESS: + reason = "invalid magic address"; + goto fail; case ERROR_TARGET_NOT_HALTED: reason = "target running"; goto fail; diff --git a/src/target/target.h b/src/target/target.h index 6ef8f10e0..82a3c9439 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -798,7 +798,9 @@ int target_profiling_default(struct target *target, uint32_t *samples, uint32_t #define ERROR_TARGET_NOT_RUNNING (-310) #define ERROR_TARGET_NOT_EXAMINED (-311) #define ERROR_TARGET_DUPLICATE_BREAKPOINT (-312) -#define ERROR_TARGET_ALGO_EXIT (-313) +#define ERROR_TARGET_INVALID_BREAKPOINT_ADDRESS (-313) +#define ERROR_TARGET_MAGIC_ADDRESS (-314) +#define ERROR_TARGET_ALGO_EXIT (-315) extern bool get_target_reset_nag(void); --