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
This commit is contained in:
Jim Ingham
2012-06-08 21:56:10 +00:00
parent c5adccab1a
commit 5a98841673
47 changed files with 6026 additions and 6907 deletions

View File

@@ -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