projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81926c3
)
Break out of the command word parsing loop if we hit
author
Jason Molenda
<jmolenda@apple.com>
Fri, 17 Oct 2014 02:10:33 +0000
(
02:10
+0000)
committer
Jason Molenda
<jmolenda@apple.com>
Fri, 17 Oct 2014 02:10:33 +0000
(
02:10
+0000)
an invalid combination of words; don't accidentally
continue trying to parse the command line.
clang static analysis fixit.
llvm-svn: 220026
lldb/source/Commands/CommandObjectSyntax.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Commands/CommandObjectSyntax.cpp
b/lldb/source/Commands/CommandObjectSyntax.cpp
index
d2021ea
..
5093c3b
100644
(file)
--- a/
lldb/source/Commands/CommandObjectSyntax.cpp
+++ b/
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;
+ }
}
}