forked from auracaster/openocd
target/breakpoints: better wording for error reason
Imported from https://github.com/riscv-collab/riscv-openocd/pull/767 Extracted small part of target/riscv: Don't resume unavailable harts. Change-Id: Id6617230cfdadf93ba402e60fb704bdfe7af5c1e Signed-off-by: Tim Newsome <tim@sifive.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8921 Tested-by: jenkins Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
@@ -78,7 +78,7 @@ static int breakpoint_add_internal(struct target *target,
|
||||
reason = "resource not available";
|
||||
goto fail;
|
||||
case ERROR_TARGET_NOT_HALTED:
|
||||
reason = "target running";
|
||||
reason = "target not halted";
|
||||
goto fail;
|
||||
default:
|
||||
reason = "unknown reason";
|
||||
@@ -523,7 +523,7 @@ static int watchpoint_add_internal(struct target *target, target_addr_t address,
|
||||
reason = "resource not available";
|
||||
goto bye;
|
||||
case ERROR_TARGET_NOT_HALTED:
|
||||
reason = "target running";
|
||||
reason = "target not halted";
|
||||
goto bye;
|
||||
default:
|
||||
reason = "unrecognized error";
|
||||
|
||||
Reference in New Issue
Block a user