diff options
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdInvoker.cpp')
-rw-r--r-- | lldb/tools/lldb-mi/MICmdInvoker.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lldb/tools/lldb-mi/MICmdInvoker.cpp b/lldb/tools/lldb-mi/MICmdInvoker.cpp index a74fbcee4ca..124a82d162e 100644 --- a/lldb/tools/lldb-mi/MICmdInvoker.cpp +++ b/lldb/tools/lldb-mi/MICmdInvoker.cpp @@ -189,16 +189,20 @@ CMICmdInvoker::CmdExecute(CMICmdBase &vCmd) { bool bOk = CmdAdd(vCmd); - if (bOk && !vCmd.ParseArgs()) + if (bOk) { - // Report command execution failed - const SMICmdData cmdData(vCmd.GetCmdData()); - CmdStdout(cmdData); - CmdCauseAppExit(vCmd); - CmdDelete(cmdData.id); - - // Proceed to wait or execute next command - return MIstatus::success; + vCmd.AddCommonArgs(); + if (!vCmd.ParseArgs()) + { + // Report command execution failed + const SMICmdData cmdData(vCmd.GetCmdData()); + CmdStdout(cmdData); + CmdCauseAppExit(vCmd); + CmdDelete(cmdData.id); + + // Proceed to wait or execute next command + return MIstatus::success; + } } if (bOk && !vCmd.Execute()) |