summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-03-23 21:55:48 +0000
committerDavide Italiano <davide@freebsd.org>2018-03-23 21:55:48 +0000
commit10166c74683ccc4680c5db8437cb43bc2b8bb065 (patch)
tree4bf5355cb67ab8f47b9924555b97085ff0477949 /lldb/source/Interpreter/CommandInterpreter.cpp
parent6660fd0f959e2e07db47729fb6112b7a823a67c2 (diff)
downloadbcm5719-llvm-10166c74683ccc4680c5db8437cb43bc2b8bb065.tar.gz
bcm5719-llvm-10166c74683ccc4680c5db8437cb43bc2b8bb065.zip
[Commands] Add a (currently empty) `stats` command.
This one will be used to print statistics about lldb sessions (including, e.g. number of expression evaluation succeeded or failed). I decided to commit the skeleton first so that we have a clean reference on how a command should be implemented. My future commits are going to populate this command and test it. <rdar://problem/36555975> llvm-svn: 328378
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index cb793f75bdd..8900badd71d 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -33,6 +33,7 @@
#include "../Commands/CommandObjectRegister.h"
#include "../Commands/CommandObjectSettings.h"
#include "../Commands/CommandObjectSource.h"
+#include "../Commands/CommandObjectStats.h"
#include "../Commands/CommandObjectTarget.h"
#include "../Commands/CommandObjectThread.h"
#include "../Commands/CommandObjectType.h"
@@ -424,6 +425,7 @@ void CommandInterpreter::LoadCommandDictionary() {
CommandObjectSP(new CommandObjectMultiwordSettings(*this));
m_command_dict["source"] =
CommandObjectSP(new CommandObjectMultiwordSource(*this));
+ m_command_dict["stats"] = CommandObjectSP(new CommandObjectStats(*this));
m_command_dict["target"] =
CommandObjectSP(new CommandObjectMultiwordTarget(*this));
m_command_dict["thread"] =
OpenPOWER on IntegriCloud