projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target/riscv: fix 'reset run' after 'reset halt'
[fw/openocd]
/
src
/
target
/
arm_cti.c
diff --git
a/src/target/arm_cti.c
b/src/target/arm_cti.c
index 7d005e2b127752d4387eba40423333ff06122e23..96927bf9459cf75c37a7f1dd91cf9782faf6e6c9 100644
(file)
--- a/
src/target/arm_cti.c
+++ b/
src/target/arm_cti.c
@@
-435,8
+435,13
@@
static int cti_configure(struct jim_getopt_info *goi, struct arm_cti *cti)
/* parse config or cget options ... */
while (goi->argc > 0) {
int e = adiv5_jim_mem_ap_spot_configure(&cti->spot, goi);
/* parse config or cget options ... */
while (goi->argc > 0) {
int e = adiv5_jim_mem_ap_spot_configure(&cti->spot, goi);
+
+ if (e == JIM_CONTINUE)
+ Jim_SetResultFormatted(goi->interp, "unknown option '%s'",
+ Jim_String(goi->argv[0]));
+
if (e != JIM_OK)
if (e != JIM_OK)
- return
e
;
+ return
JIM_ERR
;
}
if (!cti->spot.dap) {
}
if (!cti->spot.dap) {
@@
-465,7
+470,7
@@
static int cti_create(struct jim_getopt_info *goi)
/* COMMAND */
jim_getopt_obj(goi, &new_cmd);
/* does this command exist? */
/* COMMAND */
jim_getopt_obj(goi, &new_cmd);
/* does this command exist? */
- cmd = Jim_GetCommand(goi->interp, new_cmd, JIM_
ERRMSG
);
+ cmd = Jim_GetCommand(goi->interp, new_cmd, JIM_
NONE
);
if (cmd) {
cp = Jim_GetString(new_cmd, NULL);
Jim_SetResultFormatted(goi->interp, "Command: %s Exists", cp);
if (cmd) {
cp = Jim_GetString(new_cmd, NULL);
Jim_SetResultFormatted(goi->interp, "Command: %s Exists", cp);