summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectHelp.h
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-06-08 21:56:10 +0000
committerJim Ingham <jingham@apple.com>2012-06-08 21:56:10 +0000
commit5a988416736b906931cf6076d38f5b960110ed81 (patch)
treebbd923b8bcc49eb2e456290706df5452f4bcd250 /lldb/source/Commands/CommandObjectHelp.h
parentc5adccab1ae914f439593f8588a6a95669783bad (diff)
downloadbcm5719-llvm-5a988416736b906931cf6076d38f5b960110ed81.tar.gz
bcm5719-llvm-5a988416736b906931cf6076d38f5b960110ed81.zip
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectHelp.h')
-rw-r--r--lldb/source/Commands/CommandObjectHelp.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.h b/lldb/source/Commands/CommandObjectHelp.h
index ff6bd55e8d7..b66d69f476f 100644
--- a/lldb/source/Commands/CommandObjectHelp.h
+++ b/lldb/source/Commands/CommandObjectHelp.h
@@ -23,7 +23,7 @@ namespace lldb_private {
// CommandObjectHelp
//-------------------------------------------------------------------------
-class CommandObjectHelp : public CommandObject
+class CommandObjectHelp : public CommandObjectParsed
{
public:
@@ -32,10 +32,6 @@ public:
virtual
~CommandObjectHelp ();
- virtual bool
- Execute (Args& command,
- CommandReturnObject &result);
-
virtual int
HandleCompletion (Args &input,
int &cursor_index,
@@ -102,14 +98,20 @@ public:
bool m_show_user_defined;
};
- CommandOptions m_options;
-
virtual Options *
GetOptions ()
{
return &m_options;
}
+
+protected:
+ virtual bool
+ DoExecute (Args& command,
+ CommandReturnObject &result);
+private:
+ CommandOptions m_options;
+
};
} // namespace lldb_private
OpenPOWER on IntegriCloud