From 5a988416736b906931cf6076d38f5b960110ed81 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 8 Jun 2012 21:56:10 +0000 Subject: Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an Execute which was never going to get run and another ExecuteRawCommandString. Took the knowledge of how to prepare raw & parsed commands out of CommandInterpreter and put it in CommandObject where it belongs. Also took all the cases where there were the subcommands of Multiword commands declared in the .h file for the overall command and moved them into the .cpp file. Made the CommandObject flags work for raw as well as parsed commands. Made "expr" use the flags so that it requires you to be paused to run "expr". llvm-svn: 158235 --- lldb/source/Interpreter/CommandObjectRegexCommand.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp') diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp index 871922c6222..de6faba4d87 100644 --- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp +++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp @@ -30,7 +30,7 @@ CommandObjectRegexCommand::CommandObjectRegexCommand const char *syntax, uint32_t max_matches ) : - CommandObject (interpreter, name, help, syntax), + CommandObjectRaw (interpreter, name, help, syntax), m_max_matches (max_matches), m_entries () { @@ -45,18 +45,7 @@ CommandObjectRegexCommand::~CommandObjectRegexCommand() bool -CommandObjectRegexCommand::Execute -( - Args& command, - CommandReturnObject &result -) -{ - return false; -} - - -bool -CommandObjectRegexCommand::ExecuteRawCommandString +CommandObjectRegexCommand::DoExecute ( const char *command, CommandReturnObject &result -- cgit v1.2.3