aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SystemInitializerFull.cpp
diff options
context:
space:
mode:
authorWalter Erquinigo <wallace@fb.com>2020-10-14 10:25:39 -0700
committerWalter Erquinigo <wallace@fb.com>2020-10-19 15:15:02 -0700
commit8a203bb22d161d23c6b1195f85ae025e87f03bae (patch)
tree5060c1831fa3bbd6295251d277a3ba1a5a11aa1c /lldb/source/API/SystemInitializerFull.cpp
parent8a377f1e3cf4c26f609b1204f9ce1a340f7fb8d4 (diff)
downloadllvm-8a203bb22d161d23c6b1195f85ae025e87f03bae.zip
llvm-8a203bb22d161d23c6b1195f85ae025e87f03bae.tar.gz
llvm-8a203bb22d161d23c6b1195f85ae025e87f03bae.tar.bz2
[trace] rename ThreadIntelPT into TraceTrace
Renamed ThreadIntelPT to TreaceThread, making it a top-level class. I noticed that this class can and shuld work for any trace plugin and there's nothing intel-pt specific in it. With that TraceThread change, I was able to move most of the json file parsing logic to the base class TraceSessionFileParser, which makes adding new plug-ins easier. This originally was part of https://reviews.llvm.org/D89283 Differential Revision: https://reviews.llvm.org/D89408
Diffstat (limited to 'lldb/source/API/SystemInitializerFull.cpp')
-rw-r--r--lldb/source/API/SystemInitializerFull.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp
index 7f95e7a..a9723f7 100644
--- a/lldb/source/API/SystemInitializerFull.cpp
+++ b/lldb/source/API/SystemInitializerFull.cpp
@@ -14,6 +14,7 @@
#include "lldb/Host/Host.h"
#include "lldb/Initialization/SystemInitializerCommon.h"
#include "lldb/Interpreter/CommandInterpreter.h"
+#include "lldb/Target/ProcessTrace.h"
#include "lldb/Utility/Timer.h"
#include "llvm/Support/TargetSelect.h"
@@ -45,6 +46,9 @@ llvm::Error SystemInitializerFull::Initialize() {
#define LLDB_PLUGIN(p) LLDB_PLUGIN_INITIALIZE(p);
#include "Plugins/Plugins.def"
+ // Initialize plug-ins in core LLDB
+ ProcessTrace::Initialize();
+
// Scan for any system or user LLDB plug-ins
PluginManager::Initialize();
@@ -61,6 +65,9 @@ void SystemInitializerFull::Terminate() {
Debugger::SettingsTerminate();
+ // Terminate plug-ins in core LLDB
+ ProcessTrace::Terminate();
+
// Terminate and unload and loaded system or user LLDB plug-ins
PluginManager::Terminate();