[Lldb-commits] [lldb] aa2ae6a - [lldb/Plugins] Add missing initialize/terminate calls
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 17 21:28:55 PST 2020
Author: Jonas Devlieghere
Date: 2020-02-17T21:28:16-08:00
New Revision: aa2ae6af81d73773d27d94d120056ef02ce4af6b
URL: https://github.com/llvm/llvm-project/commit/aa2ae6af81d73773d27d94d120056ef02ce4af6b
DIFF: https://github.com/llvm/llvm-project/commit/aa2ae6af81d73773d27d94d120056ef02ce4af6b.diff
LOG: [lldb/Plugins] Add missing initialize/terminate calls
Add missing initialize and terminate calls for DynamicLoaderHexagonDYLD
and ObjectFileJIT.
Added:
Modified:
lldb/source/API/SystemInitializerFull.cpp
lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
lldb/tools/lldb-test/SystemInitializerTest.cpp
Removed:
################################################################################
diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp
index 9a067c1de9ad..894df077836a 100644
--- a/lldb/source/API/SystemInitializerFull.cpp
+++ b/lldb/source/API/SystemInitializerFull.cpp
@@ -34,6 +34,7 @@ LLDB_PLUGIN_DECLARE(ABISystemZ)
LLDB_PLUGIN_DECLARE(ABIX86)
LLDB_PLUGIN_DECLARE(ObjectFileBreakpad)
LLDB_PLUGIN_DECLARE(ObjectFileELF)
+LLDB_PLUGIN_DECLARE(ObjectFileJIT)
LLDB_PLUGIN_DECLARE(ObjectFileMachO)
LLDB_PLUGIN_DECLARE(ObjectFilePECOFF)
LLDB_PLUGIN_DECLARE(ObjectFileWasm)
@@ -102,6 +103,7 @@ LLDB_PLUGIN_DECLARE(DynamicLoaderDarwinKernel)
LLDB_PLUGIN_DECLARE(StructuredDataDarwinLog)
LLDB_PLUGIN_DECLARE(PlatformGDB)
LLDB_PLUGIN_DECLARE(ProcessGDBRemote)
+LLDB_PLUGIN_DECLARE(DynamicLoaderHexagonDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderMacOSXDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderPosixDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderStatic)
@@ -140,6 +142,7 @@ llvm::Error SystemInitializerFull::Initialize() {
LLDB_PLUGIN_INITIALIZE(ObjectFileBreakpad);
LLDB_PLUGIN_INITIALIZE(ObjectFileELF);
+ LLDB_PLUGIN_INITIALIZE(ObjectFileJIT);
LLDB_PLUGIN_INITIALIZE(ObjectFileMachO);
LLDB_PLUGIN_INITIALIZE(ObjectFilePECOFF);
LLDB_PLUGIN_INITIALIZE(ObjectFileWasm);
@@ -239,6 +242,7 @@ llvm::Error SystemInitializerFull::Initialize() {
LLDB_PLUGIN_INITIALIZE(PlatformGDB);
LLDB_PLUGIN_INITIALIZE(ProcessGDBRemote);
+ LLDB_PLUGIN_INITIALIZE(DynamicLoaderHexagonDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderMacOSXDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderPosixDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderWasmDYLD); // Before DynamicLoaderStatic.
@@ -327,6 +331,7 @@ void SystemInitializerFull::Terminate() {
LLDB_PLUGIN_TERMINATE(ProcessGDBRemote);
LLDB_PLUGIN_TERMINATE(StructuredDataDarwinLog);
+ LLDB_PLUGIN_TERMINATE(DynamicLoaderHexagonDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderMacOSXDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderPosixDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderWasmDYLD);
@@ -343,6 +348,7 @@ void SystemInitializerFull::Terminate() {
LLDB_PLUGIN_TERMINATE(ObjectFileBreakpad);
LLDB_PLUGIN_TERMINATE(ObjectFileELF);
+ LLDB_PLUGIN_TERMINATE(ObjectFileJIT);
LLDB_PLUGIN_TERMINATE(ObjectFileMachO);
LLDB_PLUGIN_TERMINATE(ObjectFilePECOFF);
LLDB_PLUGIN_TERMINATE(ObjectFileWasm);
diff --git a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
index 4e227abbafc2..fe86b2929073 100644
--- a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
@@ -25,6 +25,8 @@
using namespace lldb;
using namespace lldb_private;
+LLDB_PLUGIN_DEFINE(DynamicLoaderHexagonDYLD)
+
// Aidan 21/05/2014
//
// Notes about hexagon dynamic loading:
diff --git a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
index 2d505bcd409b..371bbb5ff84d 100644
--- a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
+++ b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
@@ -39,6 +39,8 @@
using namespace lldb;
using namespace lldb_private;
+LLDB_PLUGIN_DEFINE(ObjectFileJIT)
+
char ObjectFileJIT::ID;
void ObjectFileJIT::Initialize() {
diff --git a/lldb/tools/lldb-test/SystemInitializerTest.cpp b/lldb/tools/lldb-test/SystemInitializerTest.cpp
index 6112dd234fb2..bc5d119a30a1 100644
--- a/lldb/tools/lldb-test/SystemInitializerTest.cpp
+++ b/lldb/tools/lldb-test/SystemInitializerTest.cpp
@@ -27,6 +27,7 @@ LLDB_PLUGIN_DECLARE(ABISystemZ)
LLDB_PLUGIN_DECLARE(ABIX86)
LLDB_PLUGIN_DECLARE(ObjectFileBreakpad)
LLDB_PLUGIN_DECLARE(ObjectFileELF)
+LLDB_PLUGIN_DECLARE(ObjectFileJIT)
LLDB_PLUGIN_DECLARE(ObjectFileMachO)
LLDB_PLUGIN_DECLARE(ObjectFilePECOFF)
LLDB_PLUGIN_DECLARE(ObjectFileWasm)
@@ -88,6 +89,7 @@ LLDB_PLUGIN_DECLARE(DynamicLoaderDarwinKernel)
LLDB_PLUGIN_DECLARE(StructuredDataDarwinLog)
LLDB_PLUGIN_DECLARE(PlatformGDB)
LLDB_PLUGIN_DECLARE(ProcessGDBRemote)
+LLDB_PLUGIN_DECLARE(DynamicLoaderHexagonDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderMacOSXDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderPosixDYLD)
LLDB_PLUGIN_DECLARE(DynamicLoaderStatic)
@@ -126,6 +128,7 @@ llvm::Error SystemInitializerTest::Initialize() {
LLDB_PLUGIN_INITIALIZE(ObjectFileBreakpad);
LLDB_PLUGIN_INITIALIZE(ObjectFileELF);
+ LLDB_PLUGIN_INITIALIZE(ObjectFileJIT);
LLDB_PLUGIN_INITIALIZE(ObjectFileMachO);
LLDB_PLUGIN_INITIALIZE(ObjectFilePECOFF);
LLDB_PLUGIN_INITIALIZE(ObjectFileWasm);
@@ -214,6 +217,7 @@ llvm::Error SystemInitializerTest::Initialize() {
LLDB_PLUGIN_INITIALIZE(PlatformGDB);
LLDB_PLUGIN_INITIALIZE(ProcessGDBRemote);
+ LLDB_PLUGIN_INITIALIZE(DynamicLoaderHexagonDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderMacOSXDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderPosixDYLD);
LLDB_PLUGIN_INITIALIZE(DynamicLoaderWasmDYLD); // Before DynamicLoaderStatic.
@@ -302,6 +306,7 @@ void SystemInitializerTest::Terminate() {
LLDB_PLUGIN_TERMINATE(ProcessGDBRemote);
LLDB_PLUGIN_TERMINATE(StructuredDataDarwinLog);
+ LLDB_PLUGIN_TERMINATE(DynamicLoaderHexagonDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderMacOSXDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderPosixDYLD);
LLDB_PLUGIN_TERMINATE(DynamicLoaderWasmDYLD);
@@ -318,6 +323,7 @@ void SystemInitializerTest::Terminate() {
LLDB_PLUGIN_TERMINATE(ObjectFileBreakpad);
LLDB_PLUGIN_TERMINATE(ObjectFileELF);
+ LLDB_PLUGIN_TERMINATE(ObjectFileJIT);
LLDB_PLUGIN_TERMINATE(ObjectFileMachO);
LLDB_PLUGIN_TERMINATE(ObjectFilePECOFF);
LLDB_PLUGIN_TERMINATE(ObjectFileWasm);
More information about the lldb-commits
mailing list