Debugger: Fix nargs-style argument passing

This commit is contained in:
Vicki Pfau 2019-03-07 18:53:41 -08:00
parent e0b1caf48c
commit 348c1fd741
1 changed files with 2 additions and 1 deletions

View File

@ -746,10 +746,11 @@ static int _tryCommands(struct CLIDebugger* debugger, struct CLIDebuggerCommandS
if (commands[i].format[arg] == '+') {
dvNext = _parseArg(debugger, args, adjusted, lastArg);
--args;
--arg;
} else {
nextArgMandatory = isupper(commands[i].format[arg]) || (commands[i].format[arg] == '*');
dvNext = _parseArg(debugger, args, adjusted, commands[i].format[arg]);
lastArg = commands[i].format[arg];
}
args += adjusted;