CMD_NAME is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

CMD_NAME macro

Use this macro to access the name of the command being handled, rather than accessing the variable directly. It may be moved.

Syntax

#define CMD_NAME (cmd->name)

References

LocationText
command.h:166
#define CMD_NAME (cmd->name)
aarch64.c:3068
if (!strcmp(CMD_NAME, "mcr")) {
adapter.c:413
if (strcmp(CMD_NAME, "list") == 0 && CMD_ARGC > 0)
adapter.c:782
value = (strcmp(CMD_NAME, "assert") == 0) ? VALUE_ASSERT : VALUE_DEASSERT;
adapter.c:1033
CMD_NAME, gpio_map[gpio_idx].name, CMD_ARGV[i]);
adi_v5_dapdirect.c:33
LOG_DEBUG("dapdirect_jtag_empty_command(\"%s\")", CMD_NAME);
arm920t.c:1459
"\"%s\" command", CMD_NAME);
arm946e.c:577
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
arm946e.c:627
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
arm946e.c:631
bool icache = (strcmp(CMD_NAME, "icache") == 0);
arm966e.c:177
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
armv4_5.c:837
CMD_NAME);
armv4_5.c:997
if (!strcmp(CMD_NAME, "mcr")) {
armv4_5.c:1101
if (!strcmp(CMD_NAME, "mcrr")) {
command.c:832
bool full = strcmp(CMD_NAME, "help") == 0;
command.c:1078
const char *help = !strcmp(CMD_NAME, "add_help_text") ? CMD_ARGV[1] : NULL;
command.c:1079
const char *usage = !strcmp(CMD_NAME, "add_usage_text") ? CMD_ARGV[1] : NULL;
command.c:1081
LOG_ERROR("command name '%s' is unknown", CMD_NAME);
command.c:1390
LOG_ERROR("%s: argument '%s' is not valid", CMD_NAME, in);
cortex_m.c:3215
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
dsp563xx.c:2008
switch (CMD_NAME[2]) {
dsp563xx.c:2099
switch (CMD_NAME[1]) {
dsp563xx.c:2110
switch (CMD_NAME[3]) {
hello.c:28
LOG_INFO("%s: address=0x%8.8" PRIx32 " enabled=%s", CMD_NAME, address, msg);
mips32.c:1657
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
mips32.c:1914
command_print(CMD, "target must be stopped for \"%s\" command", CMD_NAME);
mips32.c:2209
command_print(CMD, "target must be stopped for \"%s\" command", CMD_NAME);
mips_m4k.c:1349
command_print(CMD, "target must be stopped for \"%s\" command", CMD_NAME);
target.c:3426
switch (CMD_NAME[2]) {
target.c:3573
switch (CMD_NAME[2]) {
tcl.c:537
switch (CMD_NAME[4]) {
tcl.c:685
switch (CMD_NAME[2]) {
tcl.c:307
bool is_configure = !strcmp(CMD_NAME, "configure");
tcl.c:641
if (strcmp(CMD_NAME, "tapisenabled") == 0) {
tcl.c:643
} else if (strcmp(CMD_NAME, "tapenable") == 0) {
tcl.c:648
} else if (strcmp(CMD_NAME, "tapdisable") == 0) {
tcl.c:654
command_print(CMD, "command '%s' unknown", CMD_NAME);
tcl_server.c:304
LOG_ERROR("%s: can only be called from the tcl server", CMD_NAME);
tcl_server.c:321
LOG_ERROR("%s: can only be called from the tcl server", CMD_NAME);
usb_blaster.c:934
LOG_ERROR("%s takes exactly one or two arguments", CMD_NAME);
usb_blaster.c:944
CMD_NAME);
usb_blaster.c:949
LOG_INFO("%s: %s is set as %s\n", CMD_NAME, pin_name,
x86_32_common.c:1403
switch (CMD_NAME[2]) {
x86_32_common.c:1462
switch (CMD_NAME[2]) {
xscale.c:3152
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
xscale.c:3182
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
xscale.c:3187
if (strcmp(CMD_NAME, "icache") == 0)
xscale.c:3211
command_print(CMD, "%s %s", CMD_NAME, msg);
xscale.c:3350
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
xscale.c:3454
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);
xscale.c:3517
command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME);