This is an automated email from Gerrit. "Marek Vrbka <marek.vr...@codasip.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7958
-- gerrit commit 3e8e302169f84dfc380dae85c6a081a2a1e0f4ad Author: Marek Vrbka <marek.vr...@codasip.com> Date: Fri Nov 3 10:29:47 2023 +0100 target: Fix get_reg when reading invalid registers This patch forces a read during get_reg when the found register has invalid value instead of returning this invalid value. Register read using the "reg" command already does this. Change-Id: I75fad25188e94ee4e06162ab6d600ea24dbf590a Signed-off-by: Marek Vrbka <marek.vr...@codasip.com> diff --git a/jimtcl b/jimtcl index 1933e5457b..caa721c4fd 160000 --- a/jimtcl +++ b/jimtcl @@ -1 +1 @@ -Subproject commit 1933e5457b9512d39ebbe11ed32578aada149f49 +Subproject commit caa721c4fde07f04cd472d815f8e42455bbe0b10 diff --git a/src/helper/configuration.h b/src/helper/configuration.h index 295ea591d6..5923e8463b 100644 --- a/src/helper/configuration.h +++ b/src/helper/configuration.h @@ -12,6 +12,7 @@ #define OPENOCD_HELPER_CONFIGURATION_H #include <helper/command.h> +#include <stdio.h> int parse_cmdline_args(struct command_context *cmd_ctx, int argc, char *argv[]); diff --git a/src/helper/jim-nvp.c b/src/helper/jim-nvp.c index e1ab64ae5b..b973e11f14 100644 --- a/src/helper/jim-nvp.c +++ b/src/helper/jim-nvp.c @@ -22,6 +22,7 @@ #include "jim-nvp.h" #include <string.h> +#include <stdio.h> int jim_get_nvp(Jim_Interp *interp, Jim_Obj *objptr, const struct jim_nvp *nvp_table, const struct jim_nvp **result) diff --git a/src/jtag/drivers/libjaylink b/src/jtag/drivers/libjaylink index 0d23921a05..b5df64d685 160000 --- a/src/jtag/drivers/libjaylink +++ b/src/jtag/drivers/libjaylink @@ -1 +1 @@ -Subproject commit 0d23921a05d5d427332a142d154c213d0c306eb1 +Subproject commit b5df64d6852beac6c8058897a932dfea19104eec diff --git a/src/target/target.c b/src/target/target.c index 10d0088d53..0d2c2bc689 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -5149,7 +5149,7 @@ static int target_jim_get_reg(Jim_Interp *interp, int argc, return JIM_ERR; } - if (force) { + if (force || !reg->valid) { int retval = reg->type->get(reg); if (retval != ERROR_OK) { diff --git a/tools/git2cl b/tools/git2cl index 8373c9f749..1d74d4c0d9 160000 --- a/tools/git2cl +++ b/tools/git2cl @@ -1 +1 @@ -Subproject commit 8373c9f74993e218a08819cbcdbab3f3564bbeba +Subproject commit 1d74d4c0d933fc69ed5cec838c73502584dead05 --