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".
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@158235 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectExpression.h b/source/Commands/CommandObjectExpression.h
index 1868a64..7c15aa1 100644
--- a/source/Commands/CommandObjectExpression.h
+++ b/source/Commands/CommandObjectExpression.h
@@ -20,7 +20,7 @@
namespace lldb_private {
-class CommandObjectExpression : public CommandObject
+class CommandObjectExpression : public CommandObjectRaw
{
public:
@@ -66,19 +66,10 @@
Options *
GetOptions ();
-
- virtual bool
- Execute (Args& command,
- CommandReturnObject &result);
-
- virtual bool
- WantsRawCommandString() { return true; }
-
- virtual bool
- ExecuteRawCommandString (const char *command,
- CommandReturnObject &result);
-
protected:
+ virtual bool
+ DoExecute (const char *command,
+ CommandReturnObject &result);
static size_t
MultiLineExpressionCallback (void *baton,