summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp b/contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp
index d2021ea..5093c3b 100644
--- a/contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp
+++ b/contrib/llvm/tools/lldb/source/Commands/CommandObjectSyntax.cpp
@@ -69,12 +69,18 @@ CommandObjectSyntax::DoExecute (Args& command, CommandReturnObject &result)
{
std::string sub_command = command.GetArgumentAtIndex (i);
if (!cmd_obj->IsMultiwordObject())
+ {
all_okay = false;
+ break;
+ }
else
{
cmd_obj = cmd_obj->GetSubcommandObject(sub_command.c_str());
if (!cmd_obj)
+ {
all_okay = false;
+ break;
+ }
}
}
OpenPOWER on IntegriCloud