aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-10-12 17:45:19 +0000
committerCaroline Tice <ctice@apple.com>2010-10-12 17:45:19 +0000
commit636d6ed0c168366725bf7069d3e4d6957896acd4 (patch)
treef8b3900b8fad2678b91facdda7338368b751ed71 /lldb/source/Commands/CommandObjectCommands.cpp
parent897f96a5d3c68ef299dbf016c159554b5d1f1f34 (diff)
downloadllvm-636d6ed0c168366725bf7069d3e4d6957896acd4.zip
llvm-636d6ed0c168366725bf7069d3e4d6957896acd4.tar.gz
llvm-636d6ed0c168366725bf7069d3e4d6957896acd4.tar.bz2
Fix bug where alias command options were being duplicated as command arguments as well.
llvm-svn: 116316
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index 514d6a4..88f3aeb 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -346,8 +346,9 @@ public:
argc = args.GetArgumentCount();
for (size_t i = 0; i < argc; ++i)
- option_arg_vector->push_back (OptionArgPair ("<argument>",
- std::string (args.GetArgumentAtIndex (i))));
+ if (strcmp (args.GetArgumentAtIndex (i), "") != 0)
+ option_arg_vector->push_back (OptionArgPair ("<argument>",
+ std::string (args.GetArgumentAtIndex (i))));
}
// Create the alias.