summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-01-09 19:08:20 +0000
committerGreg Clayton <gclayton@apple.com>2015-01-09 19:08:20 +0000
commitb547278cae31a73e78cdc35205a6fb5b953db5bd (patch)
tree0bfa2c6213b8f76f4b1b144454d83644af067bed /lldb/source/Interpreter/CommandObjectRegexCommand.cpp
parent1e923ec1225be4d1c48db75ef8c84866abef75ba (diff)
downloadbcm5719-llvm-b547278cae31a73e78cdc35205a6fb5b953db5bd.tar.gz
bcm5719-llvm-b547278cae31a73e78cdc35205a6fb5b953db5bd.zip
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
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index d27320dd1f3..efc7c33fa8f 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -31,12 +31,14 @@ CommandObjectRegexCommand::CommandObjectRegexCommand
const char *help,
const char *syntax,
uint32_t max_matches,
- uint32_t completion_type_mask
+ uint32_t completion_type_mask,
+ bool is_removable
) :
CommandObjectRaw (interpreter, name, help, syntax),
m_max_matches (max_matches),
m_completion_type_mask (completion_type_mask),
- m_entries ()
+ m_entries (),
+ m_is_removable (is_removable)
{
}
OpenPOWER on IntegriCloud