From 10166c74683ccc4680c5db8437cb43bc2b8bb065 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 23 Mar 2018 21:55:48 +0000 Subject: [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. llvm-svn: 328378 --- lldb/source/Interpreter/CommandInterpreter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp') 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"] = -- cgit v1.2.3