target/cortex_m: Change sleep to running state
[openocd.git] / src / target / arc_cmd.c
index a1d5a0936a238a7c41473b6749bea16fe4d246e1..18f5cb8f40fce77a7f97abbeb41d549b0612ec6e 100644 (file)
@@ -86,7 +86,7 @@ static int jim_arc_read_reg_type_field(Jim_GetOptInfo *goi, const char **field_n
                int e = JIM_OK;
                if ((type == CFG_ADD_REG_TYPE_STRUCT && goi->argc < 3) ||
                 (type == CFG_ADD_REG_TYPE_FLAG && goi->argc < 2)) {
-                       Jim_SetResultFormatted(goi->interp, "Not enough argmunets after -flag/-bitfield");
+                       Jim_SetResultFormatted(goi->interp, "Not enough arguments after -flag/-bitfield");
                        return JIM_ERR;
                }
 
@@ -101,7 +101,7 @@ static int jim_arc_read_reg_type_field(Jim_GetOptInfo *goi, const char **field_n
 
                end_pos = start_pos;
 
-               /* Check if any argnuments remain,
+               /* Check if any arguments remain,
                 * set bitfields[cur_field].end if flag is multibit */
                if (goi->argc > 0)
                        /* Check current argv[0], if it is equal to "-flag",
@@ -143,9 +143,9 @@ static int jim_arc_add_reg_type_flags(Jim_Interp *interp, int argc,
 
        int e = JIM_OK;
 
-       /* Check if the amount of argnuments is not zero */
+       /* Check if the amount of arguments is not zero */
        if (goi.argc <= 0) {
-               Jim_SetResultFormatted(goi.interp, "The command has no argnuments");
+               Jim_SetResultFormatted(goi.interp, "The command has no arguments");
                return JIM_ERR;
        }
 
@@ -154,7 +154,7 @@ static int jim_arc_add_reg_type_flags(Jim_Interp *interp, int argc,
        unsigned int fields_sz = (goi.argc - 2) / 3;
        unsigned int cur_field = 0;
 
-       /* Tha maximum amount of bitfilds is 32 */
+       /* The maximum amount of bitfields is 32 */
        if (fields_sz > 32) {
                Jim_SetResultFormatted(goi.interp, "The amount of bitfields exceed 32");
                return JIM_ERR;
@@ -451,7 +451,7 @@ static const struct command_registration arc_jtag_command_group[] = {
                        "raw JTAG request that bypasses OpenOCD register cache "
                        "and thus is unsafe and can have unexpected consequences. "
                        "Use at your own risk.",
-               .usage = "arc jtag get-aux-reg <regnum>"
+               .usage = "<regnum>"
        },
        {
                .name = "set-aux-reg",
@@ -461,7 +461,7 @@ static const struct command_registration arc_jtag_command_group[] = {
                        "raw JTAG request that bypasses OpenOCD register cache "
                        "and thus is unsafe and can have unexpected consequences. "
                        "Use at your own risk.",
-               .usage = "arc jtag set-aux-reg <regnum> <value>"
+               .usage = "<regnum> <value>"
        },
        {
                .name = "get-core-reg",
@@ -471,7 +471,7 @@ static const struct command_registration arc_jtag_command_group[] = {
                        "raw JTAG request that bypasses OpenOCD register cache "
                        "and thus is unsafe and can have unexpected consequences. "
                        "Use at your own risk.",
-               .usage = "arc jtag get-core-reg <regnum> [<value>]"
+               .usage = "<regnum> [<value>]"
        },
        {
                .name = "set-core-reg",
@@ -481,7 +481,7 @@ static const struct command_registration arc_jtag_command_group[] = {
                        "raw JTAG request that bypasses OpenOCD register cache "
                        "and thus is unsafe and can have unexpected consequences. "
                        "Use at your own risk.",
-               .usage = "arc jtag set-core-reg <regnum> [<value>]"
+               .usage = "<regnum> [<value>]"
        },
        COMMAND_REGISTRATION_DONE
 };
@@ -509,9 +509,9 @@ static int jim_arc_add_reg_type_struct(Jim_Interp *interp, int argc,
 
        int e = JIM_OK;
 
-       /* Check if the amount of argnuments is not zero */
+       /* Check if the amount of arguments is not zero */
        if (goi.argc <= 0) {
-               Jim_SetResultFormatted(goi.interp, "The command has no argnuments");
+               Jim_SetResultFormatted(goi.interp, "The command has no arguments");
                return JIM_ERR;
        }
 
@@ -520,7 +520,7 @@ static int jim_arc_add_reg_type_struct(Jim_Interp *interp, int argc,
        unsigned int fields_sz = (goi.argc - 2) / 4;
        unsigned int cur_field = 0;
 
-       /* Tha maximum amount of bitfilds is 32 */
+       /* The maximum amount of bitfields is 32 */
        if (fields_sz > 32) {
                        Jim_SetResultFormatted(goi.interp, "The amount of bitfields exceed 32");
                        return JIM_ERR;
@@ -672,19 +672,19 @@ static int jim_arc_add_reg(Jim_Interp *interp, int argc, Jim_Obj * const *argv)
        }
 
        /* There is no architecture number that we could treat as invalid, so
-        * separate variable requried to ensure that arch num has been set. */
+        * separate variable required to ensure that arch num has been set. */
        bool arch_num_set = false;
        const char *type_name = "int"; /* Default type */
        int type_name_len = strlen(type_name);
        int e = ERROR_OK;
 
        /* At least we need to specify 4 parameters: name, number and gdb_feature,
-        * which means there should be 6 arguments. Also there can be additional paramters
+        * which means there should be 6 arguments. Also there can be additional parameters
         * "-type <type>", "-g" and  "-core" or "-bcr" which makes maximum 10 parameters. */
        if (goi.argc < 6 || goi.argc > 10) {
                free_reg_desc(reg);
                Jim_SetResultFormatted(goi.interp,
-                       "Should be at least 6 argnuments and not greater than 10: "
+                       "Should be at least 6 arguments and not greater than 10: "
                        " -name <name> -num <num> -feature <gdb_feature> "
                        " [-type <type_name>] [-core|-bcr] [-g].");
                return JIM_ERR;
@@ -1010,7 +1010,7 @@ static const struct command_registration arc_core_command_handlers[] = {
                .name = "add-reg-type-flags",
                .jim_handler = jim_arc_add_reg_type_flags,
                .mode = COMMAND_CONFIG,
-               .usage = "arc ardd-reg-type-flags -name <string> -flag <name> <position> "
+               .usage = "-name <string> -flag <name> <position> "
                        "[-flag <name> <position>]...",
                .help = "Add new 'flags' register data type. Only single bit flags "
                        "are supported. Type name is global. Bitsize of register is fixed "
@@ -1020,7 +1020,7 @@ static const struct command_registration arc_core_command_handlers[] = {
                .name = "add-reg-type-struct",
                .jim_handler = jim_arc_add_reg_type_struct,
                .mode = COMMAND_CONFIG,
-               .usage = "arc add-reg-type-struct -name <string> -bitfield <name> <start> <end> "
+               .usage = "-name <string> -bitfield <name> <start> <end> "
                        "[-bitfield <name> <start> <end>]...",
                .help = "Add new 'struct' register data type. Only bit-fields are "
                        "supported so far, which means that for each bitfield start and end "
@@ -1032,10 +1032,10 @@ static const struct command_registration arc_core_command_handlers[] = {
                .name = "add-reg",
                .jim_handler = jim_arc_add_reg,
                .mode = COMMAND_CONFIG,
-               .usage = "arc add-reg -name <string> -num <int> -feature <string> [-gdbnum <int>] "
+               .usage = "-name <string> -num <int> -feature <string> [-gdbnum <int>] "
                        "[-core|-bcr] [-type <type_name>] [-g]",
                .help = "Add new register. Name, architectural number and feature name "
-                       "are requried options. GDB regnum will default to previous register "
+                       "are required options. GDB regnum will default to previous register "
                        "(gdbnum + 1) and shouldn't be specified in most cases. Type "
                        "defaults to default GDB 'int'.",
        },
@@ -1043,7 +1043,7 @@ static const struct command_registration arc_core_command_handlers[] = {
                .name = "set-reg-exists",
                .handler = arc_set_reg_exists,
                .mode = COMMAND_ANY,
-               .usage = "arc set-reg-exists <register-name> [<register-name>]...",
+               .usage = "<register-name> [<register-name>]...",
                .help = "Set that register exists. Accepts multiple register names as "
                        "arguments.",
        },
@@ -1051,7 +1051,7 @@ static const struct command_registration arc_core_command_handlers[] = {
                .name = "get-reg-field",
                .jim_handler = jim_arc_get_reg_field,
                .mode = COMMAND_ANY,
-               .usage = "arc get-reg-field <regname> <field_name>",
+               .usage = "<regname> <field_name>",
                .help = "Returns value of field in a register with 'struct' type.",
        },
        {
@@ -1083,7 +1083,7 @@ const struct command_registration arc_monitor_command_handlers[] = {
                .name = "arc",
                .mode = COMMAND_ANY,
                .help = "ARC monitor command group",
-               .usage = "Help info ...",
+               .usage = "",
                .chain = arc_core_command_handlers,
        },
        COMMAND_REGISTRATION_DONE

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)