Skip to content

Commit 0a829ef

Browse files
committed
driver: vdebug: fix mode of cmd 'vdebug mem_path'
The command 'vdebug mem_path' is reported in the documentation as '{Config Command}', but the code sets mode = COMMAND_ANY. The code of the commands sets some value that is only used during the init phase, so the documentation is correct. Change mode of command 'vdebug mem_path' to COMMAND_CONFIG. Change-Id: Icb940fe382cbc75015273b35dcc8a88fc2a7d0ac Signed-off-by: Antonio Borneo <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/7395 Tested-by: jenkins Reviewed-by: Jacek Wuwer <[email protected]>
1 parent 2b6fe8f commit 0a829ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jtag/drivers/vdebug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ static const struct command_registration vdebug_command_handlers[] = {
12461246
{
12471247
.name = "mem_path",
12481248
.handler = &vdebug_set_mem,
1249-
.mode = COMMAND_ANY,
1249+
.mode = COMMAND_CONFIG,
12501250
.help = "set the design memory for the code load",
12511251
.usage = "<path> <base_address> <size>",
12521252
},

0 commit comments

Comments
 (0)