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/Commands/CommandObjectHelp.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'lldb/source/Commands/CommandObjectHelp.h') 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 -- cgit v1.2.3