Debugger: Fix nargs-style argument passing
Vicki Pfau vi@endrift.com
Thu, 07 Mar 2019 18:53:41 -0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -746,10 +746,11 @@ bool nextArgMandatory = false;
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;