openocd: use unique name for struct command_registration
Just to avoid name clash when comparing documentation with registered commands through scripts. Change-Id: I8832545d8d9236ea5dabe6e73732f51e5246caff Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6717 Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
@@ -349,7 +349,7 @@ static int dap_create(struct jim_getopt_info *goi)
|
||||
goto err;
|
||||
}
|
||||
|
||||
struct command_registration dap_commands[] = {
|
||||
struct command_registration dap_create_commands[] = {
|
||||
{
|
||||
.name = cp,
|
||||
.mode = COMMAND_ANY,
|
||||
@@ -362,9 +362,9 @@ static int dap_create(struct jim_getopt_info *goi)
|
||||
|
||||
/* don't expose the instance commands when using hla */
|
||||
if (transport_is_hla())
|
||||
dap_commands[0].chain = NULL;
|
||||
dap_create_commands[0].chain = NULL;
|
||||
|
||||
e = register_commands_with_data(cmd_ctx, NULL, dap_commands, dap);
|
||||
e = register_commands_with_data(cmd_ctx, NULL, dap_create_commands, dap);
|
||||
if (e != ERROR_OK) {
|
||||
e = JIM_ERR;
|
||||
goto err;
|
||||
|
||||
Reference in New Issue
Block a user