Please note that mips_ia_cpc_lcr is not getting called error is occurring
earlier. If sharing code would be easier, let me know
Kent
From: Kent Brinkley
Sent: Tuesday, February 16, 2016 4:28 PM
To: openocd-devel
Subject: [OpenOCD-devel] Command Parsing Error
Hi Guys,
I am running into a problem testing a new command and receiving the following
error:
mips_iA cpc_lcr 2
core option value ('2') is not valid
choices are 'enable' or 'disable'
c0v0 mips_iA cpc_lcr dump_cpc_lcr [core]
c0v1 mips_iA cpc_lcr dump_cpc_lcr [core]
c1v0 mips_iA cpc_lcr dump_cpc_lcr [core]
c1v1 mips_iA cpc_lcr dump_cpc_lcr [core]
mips_iA cpc_lcr dump_cpc_lcr [core]
Please note the core is optional, if specified then is used to get information
for the specified core. I have traced the error to command.c but not sure why
is enter this code path.
COMMAND_HELPER(handle_command_parse_bool, bool *out, const char *label)
{
switch (CMD_ARGC) {
case 1: {
const char *in = CMD_ARGV[0];
if (command_parse_bool_arg(in,
out) != ERROR_OK) {
LOG_ERROR("%s:
argument '%s' is not valid", CMD_NAME, in);
return
ERROR_COMMAND_SYNTAX_ERROR;
}
/* fall through */
}
case 0:
LOG_INFO("%s is %s", label,
*out ? "enabled" : "disabled");
break;
default:
return
ERROR_COMMAND_SYNTAX_ERROR;
}
return ERROR_OK;
}
Am I missing something
{
.name = "cpc_lcr",
.handler = mips_dump_cpc_lcr_command,
.mode = COMMAND_ANY,
.usage = "dump_cpc_lcr [core]",
.help = "Dump Cluster Power Controller
Local/Other Command Registers",
},
Thanks for your help,
Kent
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel