Fixed an issue where you couldn't delete a user defined regex, python, or multi-word...
authorGreg Clayton <gclayton@apple.com>
Fri, 9 Jan 2015 19:08:20 +0000 (19:08 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 9 Jan 2015 19:08:20 +0000 (19:08 +0000)
commitb547278cae31a73e78cdc35205a6fb5b953db5bd
tree0bfa2c6213b8f76f4b1b144454d83644af067bed
parent1e923ec1225be4d1c48db75ef8c84866abef75ba
Fixed an issue where you couldn't delete a user defined regex, python, or multi-word command by adding a new "command delete" command.

This new command will delete user defined regular commands, but not aliases. We still have "command unalias" to remove aliases as they are currently in different buckets. Appropriate error messages are displayed to inform the user when "command unalias" is used on removable user defined commands that points users to the "command delete" command.

Added a test to verify we can remove user defined commands and also verify that "command unalias" fails when used on a user defined command.
<rdar://problem/18248300>

llvm-svn: 225535
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/include/lldb/Interpreter/CommandObject.h
lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/source/Interpreter/CommandObjectRegexCommand.cpp
lldb/test/functionalities/command_regex/TestCommandRegex.py