diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-12-23 20:21:44 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-12-23 20:21:44 +0000 |
commit | 31c39dac6db4423546e3018ad75b409870f07ea8 (patch) | |
tree | 145bdb17abb4b5bc8dced567ace78d6de75c13d9 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | d99bd55a5e092774214ba31fc5a871bfc31e711c (diff) | |
download | bcm5719-llvm-31c39dac6db4423546e3018ad75b409870f07ea8.tar.gz bcm5719-llvm-31c39dac6db4423546e3018ad75b409870f07ea8.zip |
Add a simple command: 'version' to the command interpreter, and an accompanying
test case test_help_version().
llvm-svn: 122515
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 4a0fe997767..b65cb1988a4 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -36,6 +36,7 @@ #include "../Commands/CommandObjectSyntax.h" #include "../Commands/CommandObjectTarget.h" #include "../Commands/CommandObjectThread.h" +#include "../Commands/CommandObjectVersion.h" #include "lldb/Interpreter/Args.h" #include "lldb/Core/Debugger.h" @@ -168,6 +169,7 @@ CommandInterpreter::LoadCommandDictionary () m_command_dict["source"] = CommandObjectSP (new CommandObjectMultiwordSource (*this)); m_command_dict["target"] = CommandObjectSP (new CommandObjectMultiwordTarget (*this)); m_command_dict["thread"] = CommandObjectSP (new CommandObjectMultiwordThread (*this)); + m_command_dict["version"] = CommandObjectSP (new CommandObjectVersion (*this)); std::auto_ptr<CommandObjectRegexCommand> break_regex_cmd_ap(new CommandObjectRegexCommand (*this, |