diff options
author | Jim Ingham <jingham@apple.com> | 2012-06-08 21:56:10 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-06-08 21:56:10 +0000 |
commit | 5a988416736b906931cf6076d38f5b960110ed81 (patch) | |
tree | bbd923b8bcc49eb2e456290706df5452f4bcd250 /lldb/source/Commands/CommandObjectArgs.cpp | |
parent | c5adccab1ae914f439593f8588a6a95669783bad (diff) | |
download | llvm-5a988416736b906931cf6076d38f5b960110ed81.zip llvm-5a988416736b906931cf6076d38f5b960110ed81.tar.gz llvm-5a988416736b906931cf6076d38f5b960110ed81.tar.bz2 |
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/CommandObjectArgs.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectArgs.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lldb/source/Commands/CommandObjectArgs.cpp b/lldb/source/Commands/CommandObjectArgs.cpp index f9544e3..f9d6d02 100644 --- a/lldb/source/Commands/CommandObjectArgs.cpp +++ b/lldb/source/Commands/CommandObjectArgs.cpp @@ -77,10 +77,10 @@ CommandObjectArgs::CommandOptions::GetDefinitions () } CommandObjectArgs::CommandObjectArgs (CommandInterpreter &interpreter) : - CommandObject (interpreter, - "args", - "When stopped at the start of a function, reads function arguments of type (u?)int(8|16|32|64)_t, (void|char)*", - "args"), + CommandObjectParsed (interpreter, + "args", + "When stopped at the start of a function, reads function arguments of type (u?)int(8|16|32|64)_t, (void|char)*", + "args"), m_options (interpreter) { } @@ -96,11 +96,7 @@ CommandObjectArgs::GetOptions () } bool -CommandObjectArgs::Execute -( - Args& args, - CommandReturnObject &result -) +CommandObjectArgs::DoExecute (Args& args, CommandReturnObject &result) { ConstString target_triple; |