Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 1 | //===-- SystemInitializerFull.cpp -------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Alex Langford | d17cd90 | 2018-05-25 20:28:16 +0000 | [diff] [blame] | 9 | #include "SystemInitializerFull.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 10 | #include "lldb/API/SBCommandInterpreter.h" |
Jonas Devlieghere | 59998b7 | 2019-12-10 08:54:30 -0800 | [diff] [blame] | 11 | #include "lldb/Host/Config.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 12 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 10:37:33 -0800 | [diff] [blame] | 13 | #if LLDB_ENABLE_PYTHON |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 14 | #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" |
| 15 | #endif |
| 16 | |
Jonas Devlieghere | 67de8962 | 2019-12-07 15:49:35 -0800 | [diff] [blame] | 17 | #if LLDB_ENABLE_LUA |
| 18 | #include "Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h" |
| 19 | #endif |
| 20 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 21 | #include "lldb/Core/Debugger.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 22 | #include "lldb/Host/Host.h" |
| 23 | #include "lldb/Initialization/SystemInitializerCommon.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 24 | #include "lldb/Interpreter/CommandInterpreter.h" |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 25 | #include "lldb/Symbol/ClangASTContext.h" |
Pavel Labath | 38d0632 | 2017-06-29 14:32:17 +0000 | [diff] [blame] | 26 | #include "lldb/Utility/Timer.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 27 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 28 | #include "Plugins/ABI/MacOSX-arm/ABIMacOSX_arm.h" |
| 29 | #include "Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 30 | #include "Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.h" |
Tatyana Krasnukha | 92e498d | 2019-10-17 15:18:03 +0000 | [diff] [blame] | 31 | #include "Plugins/ABI/SysV-arc/ABISysV_arc.h" |
Omair Javaid | 52f825b | 2015-04-29 10:49:45 +0000 | [diff] [blame] | 32 | #include "Plugins/ABI/SysV-arm/ABISysV_arm.h" |
Omair Javaid | b78e05f | 2015-04-29 11:52:35 +0000 | [diff] [blame] | 33 | #include "Plugins/ABI/SysV-arm64/ABISysV_arm64.h" |
Ted Woodward | bff0a21 | 2015-12-10 17:53:07 +0000 | [diff] [blame] | 34 | #include "Plugins/ABI/SysV-hexagon/ABISysV_hexagon.h" |
Greg Clayton | b289cba | 2015-06-25 17:50:15 +0000 | [diff] [blame] | 35 | #include "Plugins/ABI/SysV-i386/ABISysV_i386.h" |
Bhushan D. Attarde | a8219f2 | 2015-06-18 07:02:10 +0000 | [diff] [blame] | 36 | #include "Plugins/ABI/SysV-mips/ABISysV_mips.h" |
Bhushan D. Attarde | 13f5425 | 2015-06-19 04:25:07 +0000 | [diff] [blame] | 37 | #include "Plugins/ABI/SysV-mips64/ABISysV_mips64.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 38 | #include "Plugins/ABI/SysV-ppc/ABISysV_ppc.h" |
| 39 | #include "Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h" |
Ulrich Weigand | bb00d0b | 2016-04-14 14:28:34 +0000 | [diff] [blame] | 40 | #include "Plugins/ABI/SysV-s390x/ABISysV_s390x.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 41 | #include "Plugins/ABI/SysV-x86_64/ABISysV_x86_64.h" |
Alex Langford | 09ede9d | 2019-06-24 18:21:05 +0000 | [diff] [blame] | 42 | #include "Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.h" |
Pavel Labath | 13e37d4 | 2017-10-25 21:05:31 +0000 | [diff] [blame] | 43 | #include "Plugins/Architecture/Arm/ArchitectureArm.h" |
Tatyana Krasnukha | 98fc548 | 2018-12-13 14:28:25 +0000 | [diff] [blame] | 44 | #include "Plugins/Architecture/Mips/ArchitectureMips.h" |
Jim Ingham | 0858126 | 2018-03-12 21:17:04 +0000 | [diff] [blame] | 45 | #include "Plugins/Architecture/PPC64/ArchitecturePPC64.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 46 | #include "Plugins/Disassembler/llvm/DisassemblerLLVMC.h" |
Jason Molenda | 9ab5dc2 | 2016-07-21 08:30:55 +0000 | [diff] [blame] | 47 | #include "Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 48 | #include "Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h" |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 49 | #include "Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 50 | #include "Plugins/DynamicLoader/Static/DynamicLoaderStatic.h" |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 51 | #include "Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.h" |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 52 | #include "Plugins/Instruction/ARM/EmulateInstructionARM.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 53 | #include "Plugins/Instruction/ARM64/EmulateInstructionARM64.h" |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 54 | #include "Plugins/Instruction/MIPS/EmulateInstructionMIPS.h" |
| 55 | #include "Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h" |
Pavel Labath | a535a7a | 2018-02-27 18:42:46 +0000 | [diff] [blame] | 56 | #include "Plugins/Instruction/PPC64/EmulateInstructionPPC64.h" |
Pavel Labath | 2a1c09f | 2017-06-26 08:13:22 +0000 | [diff] [blame] | 57 | #include "Plugins/InstrumentationRuntime/ASan/ASanRuntime.h" |
Pavel Labath | 13e37d4 | 2017-10-25 21:05:31 +0000 | [diff] [blame] | 58 | #include "Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.h" |
Pavel Labath | 2a1c09f | 2017-06-26 08:13:22 +0000 | [diff] [blame] | 59 | #include "Plugins/InstrumentationRuntime/TSan/TSanRuntime.h" |
| 60 | #include "Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 61 | #include "Plugins/JITLoader/GDB/JITLoaderGDB.h" |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 62 | #include "Plugins/Language/CPlusPlus/CPlusPlusLanguage.h" |
| 63 | #include "Plugins/Language/ObjC/ObjCLanguage.h" |
| 64 | #include "Plugins/Language/ObjCPlusPlus/ObjCPlusPlusLanguage.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 65 | #include "Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 66 | #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h" |
| 67 | #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h" |
Colin Riley | 5ec532a | 2015-04-09 16:49:25 +0000 | [diff] [blame] | 68 | #include "Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 69 | #include "Plugins/MemoryHistory/asan/MemoryHistoryASan.h" |
Saleem Abdulrasool | c7c3cf6 | 2019-05-02 18:11:44 +0000 | [diff] [blame] | 70 | #include "Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.h" |
| 71 | #include "Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.h" |
Pavel Labath | 1f6b247 | 2018-12-10 17:16:38 +0000 | [diff] [blame] | 72 | #include "Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.h" |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 73 | #include "Plugins/ObjectFile/ELF/ObjectFileELF.h" |
| 74 | #include "Plugins/ObjectFile/Mach-O/ObjectFileMachO.h" |
| 75 | #include "Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h" |
Paolo Severini | 4bafcec | 2020-01-15 15:29:24 -0800 | [diff] [blame] | 76 | #include "Plugins/ObjectFile/wasm/ObjectFileWasm.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 77 | #include "Plugins/OperatingSystem/Python/OperatingSystemPython.h" |
| 78 | #include "Plugins/Platform/Android/PlatformAndroid.h" |
| 79 | #include "Plugins/Platform/FreeBSD/PlatformFreeBSD.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 80 | #include "Plugins/Platform/Linux/PlatformLinux.h" |
| 81 | #include "Plugins/Platform/MacOSX/PlatformMacOSX.h" |
| 82 | #include "Plugins/Platform/MacOSX/PlatformRemoteiOS.h" |
| 83 | #include "Plugins/Platform/NetBSD/PlatformNetBSD.h" |
Kamil Rytarowski | 12801f1 | 2017-03-26 15:34:57 +0000 | [diff] [blame] | 84 | #include "Plugins/Platform/OpenBSD/PlatformOpenBSD.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 85 | #include "Plugins/Platform/Windows/PlatformWindows.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 86 | #include "Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h" |
| 87 | #include "Plugins/Process/elf-core/ProcessElfCore.h" |
| 88 | #include "Plugins/Process/gdb-remote/ProcessGDBRemote.h" |
Pavel Labath | 4c7763e | 2018-05-22 16:33:43 +0000 | [diff] [blame] | 89 | #include "Plugins/Process/mach-core/ProcessMachCore.h" |
Dimitar Vlahovski | 7b18dd4 | 2016-10-31 15:35:18 +0000 | [diff] [blame] | 90 | #include "Plugins/Process/minidump/ProcessMinidump.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 91 | #include "Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h" |
Pavel Labath | 1cf23e1 | 2019-01-11 11:17:51 +0000 | [diff] [blame] | 92 | #include "Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 93 | #include "Plugins/SymbolFile/DWARF/SymbolFileDWARF.h" |
| 94 | #include "Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 95 | #include "Plugins/SymbolFile/PDB/SymbolFilePDB.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 96 | #include "Plugins/SymbolFile/Symtab/SymbolFileSymtab.h" |
| 97 | #include "Plugins/SymbolVendor/ELF/SymbolVendorELF.h" |
Paolo Severini | 9b3254d | 2020-01-16 08:36:45 -0800 | [diff] [blame] | 98 | #include "Plugins/SymbolVendor/wasm/SymbolVendorWasm.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 99 | #include "Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 100 | #include "Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 101 | #include "Plugins/UnwindAssembly/x86/UnwindAssembly-x86.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 102 | |
| 103 | #if defined(__APPLE__) |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 104 | #include "Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h" |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 105 | #include "Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h" |
| 106 | #include "Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 107 | #include "Plugins/Platform/MacOSX/PlatformDarwinKernel.h" |
Jonas Devlieghere | c95c08b | 2019-04-24 21:23:08 +0000 | [diff] [blame] | 108 | #include "Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h" |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 109 | #include "Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h" |
| 110 | #include "Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 111 | #include "Plugins/Platform/MacOSX/PlatformiOSSimulator.h" |
| 112 | #include "Plugins/Process/MacOSX-Kernel/ProcessKDP.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 113 | #include "Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 114 | #endif |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame] | 115 | #include "Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 116 | |
| 117 | #if defined(__FreeBSD__) |
| 118 | #include "Plugins/Process/FreeBSD/ProcessFreeBSD.h" |
| 119 | #endif |
| 120 | |
Hafiz Abid Qadeer | f6ee79c | 2016-12-15 15:00:41 +0000 | [diff] [blame] | 121 | #if defined(_WIN32) |
Adrian McCarthy | 4ad5def | 2016-11-23 16:26:37 +0000 | [diff] [blame] | 122 | #include "Plugins/Process/Windows/Common/ProcessWindows.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 123 | #include "lldb/Host/windows/windows.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 124 | #endif |
| 125 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 126 | #include "llvm/Support/TargetSelect.h" |
| 127 | |
Saleem Abdulrasool | 5a36558 | 2019-05-03 23:19:27 +0000 | [diff] [blame] | 128 | #pragma clang diagnostic push |
| 129 | #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 130 | #include "llvm/ExecutionEngine/MCJIT.h" |
| 131 | #pragma clang diagnostic pop |
| 132 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 133 | #include <string> |
| 134 | |
| 135 | using namespace lldb_private; |
| 136 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 137 | SystemInitializerFull::SystemInitializerFull() {} |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 138 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 139 | SystemInitializerFull::~SystemInitializerFull() {} |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 140 | |
Pavel Labath | 8865ebb | 2019-09-26 09:47:32 +0000 | [diff] [blame] | 141 | #define LLDB_PROCESS_AArch64(op) \ |
| 142 | ABIMacOSX_arm64::op(); \ |
| 143 | ABISysV_arm64::op(); |
| 144 | #define LLDB_PROCESS_ARM(op) \ |
| 145 | ABIMacOSX_arm::op(); \ |
| 146 | ABISysV_arm::op(); |
Tatyana Krasnukha | 92e498d | 2019-10-17 15:18:03 +0000 | [diff] [blame] | 147 | #define LLDB_PROCESS_ARC(op) \ |
| 148 | ABISysV_arc::op(); |
Pavel Labath | 8865ebb | 2019-09-26 09:47:32 +0000 | [diff] [blame] | 149 | #define LLDB_PROCESS_Hexagon(op) ABISysV_hexagon::op(); |
| 150 | #define LLDB_PROCESS_Mips(op) \ |
| 151 | ABISysV_mips::op(); \ |
| 152 | ABISysV_mips64::op(); |
| 153 | #define LLDB_PROCESS_PowerPC(op) \ |
| 154 | ABISysV_ppc::op(); \ |
| 155 | ABISysV_ppc64::op(); |
| 156 | #define LLDB_PROCESS_SystemZ(op) ABISysV_s390x::op(); |
| 157 | #define LLDB_PROCESS_X86(op) \ |
| 158 | ABIMacOSX_i386::op(); \ |
| 159 | ABISysV_i386::op(); \ |
| 160 | ABISysV_x86_64::op(); \ |
| 161 | ABIWindows_x86_64::op(); |
| 162 | |
| 163 | #define LLDB_PROCESS_AMDGPU(op) |
Pavel Labath | e8f0613 | 2019-09-26 17:15:18 +0000 | [diff] [blame] | 164 | #define LLDB_PROCESS_AVR(op) |
Pavel Labath | 8865ebb | 2019-09-26 09:47:32 +0000 | [diff] [blame] | 165 | #define LLDB_PROCESS_BPF(op) |
| 166 | #define LLDB_PROCESS_Lanai(op) |
| 167 | #define LLDB_PROCESS_MSP430(op) |
| 168 | #define LLDB_PROCESS_NVPTX(op) |
| 169 | #define LLDB_PROCESS_RISCV(op) |
| 170 | #define LLDB_PROCESS_Sparc(op) |
| 171 | #define LLDB_PROCESS_WebAssembly(op) |
| 172 | #define LLDB_PROCESS_XCore(op) |
| 173 | |
Jonas Devlieghere | 936c624 | 2019-02-21 22:26:16 +0000 | [diff] [blame] | 174 | llvm::Error SystemInitializerFull::Initialize() { |
| 175 | if (auto e = SystemInitializerCommon::Initialize()) |
Jonas Devlieghere | 15eacd7 | 2018-12-03 17:28:29 +0000 | [diff] [blame] | 176 | return e; |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 177 | |
Pavel Labath | 1f6b247 | 2018-12-10 17:16:38 +0000 | [diff] [blame] | 178 | breakpad::ObjectFileBreakpad::Initialize(); |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 179 | ObjectFileELF::Initialize(); |
| 180 | ObjectFileMachO::Initialize(); |
| 181 | ObjectFilePECOFF::Initialize(); |
Paolo Severini | 4bafcec | 2020-01-15 15:29:24 -0800 | [diff] [blame] | 182 | wasm::ObjectFileWasm::Initialize(); |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 183 | |
Saleem Abdulrasool | c7c3cf6 | 2019-05-02 18:11:44 +0000 | [diff] [blame] | 184 | ObjectContainerBSDArchive::Initialize(); |
| 185 | ObjectContainerUniversalMachO::Initialize(); |
| 186 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 187 | ScriptInterpreterNone::Initialize(); |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 188 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 10:37:33 -0800 | [diff] [blame] | 189 | #if LLDB_ENABLE_PYTHON |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 190 | OperatingSystemPython::Initialize(); |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 191 | #endif |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 192 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 10:37:33 -0800 | [diff] [blame] | 193 | #if LLDB_ENABLE_PYTHON |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 194 | ScriptInterpreterPython::Initialize(); |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 195 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 196 | |
Jonas Devlieghere | 67de8962 | 2019-12-07 15:49:35 -0800 | [diff] [blame] | 197 | #if LLDB_ENABLE_LUA |
| 198 | ScriptInterpreterLua::Initialize(); |
| 199 | #endif |
| 200 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 201 | platform_freebsd::PlatformFreeBSD::Initialize(); |
| 202 | platform_linux::PlatformLinux::Initialize(); |
| 203 | platform_netbsd::PlatformNetBSD::Initialize(); |
Kamil Rytarowski | 12801f1 | 2017-03-26 15:34:57 +0000 | [diff] [blame] | 204 | platform_openbsd::PlatformOpenBSD::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 205 | PlatformWindows::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 206 | platform_android::PlatformAndroid::Initialize(); |
| 207 | PlatformRemoteiOS::Initialize(); |
| 208 | PlatformMacOSX::Initialize(); |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 209 | #if defined(__APPLE__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 210 | PlatformiOSSimulator::Initialize(); |
| 211 | PlatformDarwinKernel::Initialize(); |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 212 | #endif |
| 213 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 214 | // Initialize LLVM and Clang |
| 215 | llvm::InitializeAllTargets(); |
| 216 | llvm::InitializeAllAsmPrinters(); |
| 217 | llvm::InitializeAllTargetMCs(); |
| 218 | llvm::InitializeAllDisassemblers(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 219 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 220 | ClangASTContext::Initialize(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 221 | |
Pavel Labath | 8865ebb | 2019-09-26 09:47:32 +0000 | [diff] [blame] | 222 | #define LLVM_TARGET(t) LLDB_PROCESS_ ## t(Initialize) |
| 223 | #include "llvm/Config/Targets.def" |
Pavel Labath | 13e37d4 | 2017-10-25 21:05:31 +0000 | [diff] [blame] | 224 | |
| 225 | ArchitectureArm::Initialize(); |
Tatyana Krasnukha | 98fc548 | 2018-12-13 14:28:25 +0000 | [diff] [blame] | 226 | ArchitectureMips::Initialize(); |
Jim Ingham | 0858126 | 2018-03-12 21:17:04 +0000 | [diff] [blame] | 227 | ArchitecturePPC64::Initialize(); |
Pavel Labath | 13e37d4 | 2017-10-25 21:05:31 +0000 | [diff] [blame] | 228 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 229 | DisassemblerLLVMC::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 230 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 231 | JITLoaderGDB::Initialize(); |
| 232 | ProcessElfCore::Initialize(); |
Pavel Labath | 4c7763e | 2018-05-22 16:33:43 +0000 | [diff] [blame] | 233 | ProcessMachCore::Initialize(); |
Dimitar Vlahovski | 7b18dd4 | 2016-10-31 15:35:18 +0000 | [diff] [blame] | 234 | minidump::ProcessMinidump::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 235 | MemoryHistoryASan::Initialize(); |
| 236 | AddressSanitizerRuntime::Initialize(); |
| 237 | ThreadSanitizerRuntime::Initialize(); |
Kuba Mracek | ef45d8b | 2017-06-16 20:59:08 +0000 | [diff] [blame] | 238 | UndefinedBehaviorSanitizerRuntime::Initialize(); |
| 239 | MainThreadCheckerRuntime::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 240 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 241 | SymbolVendorELF::Initialize(); |
Pavel Labath | 1cf23e1 | 2019-01-11 11:17:51 +0000 | [diff] [blame] | 242 | breakpad::SymbolFileBreakpad::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 243 | SymbolFileDWARF::Initialize(); |
| 244 | SymbolFilePDB::Initialize(); |
| 245 | SymbolFileSymtab::Initialize(); |
Paolo Severini | 9b3254d | 2020-01-16 08:36:45 -0800 | [diff] [blame] | 246 | wasm::SymbolVendorWasm::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 247 | UnwindAssemblyInstEmulation::Initialize(); |
| 248 | UnwindAssembly_x86::Initialize(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 249 | |
| 250 | EmulateInstructionARM::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 251 | EmulateInstructionARM64::Initialize(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 252 | EmulateInstructionMIPS::Initialize(); |
| 253 | EmulateInstructionMIPS64::Initialize(); |
Pavel Labath | a535a7a | 2018-02-27 18:42:46 +0000 | [diff] [blame] | 254 | EmulateInstructionPPC64::Initialize(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 255 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 256 | SymbolFileDWARFDebugMap::Initialize(); |
| 257 | ItaniumABILanguageRuntime::Initialize(); |
| 258 | AppleObjCRuntimeV2::Initialize(); |
| 259 | AppleObjCRuntimeV1::Initialize(); |
| 260 | SystemRuntimeMacOSX::Initialize(); |
| 261 | RenderScriptRuntime::Initialize(); |
Ed Maste | 81b4c5f | 2016-01-04 01:43:47 +0000 | [diff] [blame] | 262 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 263 | CPlusPlusLanguage::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 264 | ObjCLanguage::Initialize(); |
| 265 | ObjCPlusPlusLanguage::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 266 | |
Hafiz Abid Qadeer | f6ee79c | 2016-12-15 15:00:41 +0000 | [diff] [blame] | 267 | #if defined(_WIN32) |
Adrian McCarthy | 4ad5def | 2016-11-23 16:26:37 +0000 | [diff] [blame] | 268 | ProcessWindows::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 269 | #endif |
| 270 | #if defined(__FreeBSD__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 271 | ProcessFreeBSD::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 272 | #endif |
| 273 | #if defined(__APPLE__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 274 | SymbolVendorMacOSX::Initialize(); |
| 275 | ProcessKDP::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 276 | PlatformAppleTVSimulator::Initialize(); |
| 277 | PlatformAppleWatchSimulator::Initialize(); |
| 278 | PlatformRemoteAppleTV::Initialize(); |
| 279 | PlatformRemoteAppleWatch::Initialize(); |
Jason Molenda | 32762fd | 2018-10-11 00:28:35 +0000 | [diff] [blame] | 280 | PlatformRemoteAppleBridge::Initialize(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 281 | DynamicLoaderDarwinKernel::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 282 | #endif |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame] | 283 | |
Adrian Prantl | 0509724 | 2018-04-30 16:49:04 +0000 | [diff] [blame] | 284 | // This plugin is valid on any host that talks to a Darwin remote. It |
| 285 | // shouldn't be limited to __APPLE__. |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 286 | StructuredDataDarwinLog::Initialize(); |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame] | 287 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 288 | // Platform agnostic plugins |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 289 | platform_gdb_server::PlatformRemoteGDBServer::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 290 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 291 | process_gdb_remote::ProcessGDBRemote::Initialize(); |
| 292 | DynamicLoaderMacOSXDYLD::Initialize(); |
| 293 | DynamicLoaderMacOS::Initialize(); |
| 294 | DynamicLoaderPOSIXDYLD::Initialize(); |
| 295 | DynamicLoaderStatic::Initialize(); |
| 296 | DynamicLoaderWindowsDYLD::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 297 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 298 | // Scan for any system or user LLDB plug-ins |
| 299 | PluginManager::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 300 | |
Adrian Prantl | 0509724 | 2018-04-30 16:49:04 +0000 | [diff] [blame] | 301 | // The process settings need to know about installed plug-ins, so the |
| 302 | // Settings must be initialized |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 303 | // AFTER PluginManager::Initialize is called. |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 304 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 305 | Debugger::SettingsInitialize(); |
Jonas Devlieghere | 15eacd7 | 2018-12-03 17:28:29 +0000 | [diff] [blame] | 306 | |
| 307 | return llvm::Error::success(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 308 | } |
| 309 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 310 | void SystemInitializerFull::Terminate() { |
Pavel Labath | f9d1647 | 2017-05-15 13:02:37 +0000 | [diff] [blame] | 311 | static Timer::Category func_cat(LLVM_PRETTY_FUNCTION); |
| 312 | Timer scoped_timer(func_cat, LLVM_PRETTY_FUNCTION); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 313 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 314 | Debugger::SettingsTerminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 315 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 316 | // Terminate and unload and loaded system or user LLDB plug-ins |
| 317 | PluginManager::Terminate(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 318 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 319 | ClangASTContext::Terminate(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 320 | |
Tatyana Krasnukha | 98fc548 | 2018-12-13 14:28:25 +0000 | [diff] [blame] | 321 | ArchitectureArm::Terminate(); |
| 322 | ArchitectureMips::Terminate(); |
| 323 | ArchitecturePPC64::Terminate(); |
| 324 | |
Pavel Labath | 8865ebb | 2019-09-26 09:47:32 +0000 | [diff] [blame] | 325 | #define LLVM_TARGET(t) LLDB_PROCESS_ ## t(Terminate) |
| 326 | #include "llvm/Config/Targets.def" |
Pavel Labath | d0b44db | 2019-09-25 13:03:04 +0000 | [diff] [blame] | 327 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 328 | DisassemblerLLVMC::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 329 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 330 | JITLoaderGDB::Terminate(); |
| 331 | ProcessElfCore::Terminate(); |
Pavel Labath | 4c7763e | 2018-05-22 16:33:43 +0000 | [diff] [blame] | 332 | ProcessMachCore::Terminate(); |
Dimitar Vlahovski | 7b18dd4 | 2016-10-31 15:35:18 +0000 | [diff] [blame] | 333 | minidump::ProcessMinidump::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 334 | MemoryHistoryASan::Terminate(); |
| 335 | AddressSanitizerRuntime::Terminate(); |
| 336 | ThreadSanitizerRuntime::Terminate(); |
Kuba Mracek | ef45d8b | 2017-06-16 20:59:08 +0000 | [diff] [blame] | 337 | UndefinedBehaviorSanitizerRuntime::Terminate(); |
| 338 | MainThreadCheckerRuntime::Terminate(); |
Paolo Severini | 9b3254d | 2020-01-16 08:36:45 -0800 | [diff] [blame] | 339 | wasm::SymbolVendorWasm::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 340 | SymbolVendorELF::Terminate(); |
Pavel Labath | 1cf23e1 | 2019-01-11 11:17:51 +0000 | [diff] [blame] | 341 | breakpad::SymbolFileBreakpad::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 342 | SymbolFileDWARF::Terminate(); |
| 343 | SymbolFilePDB::Terminate(); |
| 344 | SymbolFileSymtab::Terminate(); |
| 345 | UnwindAssembly_x86::Terminate(); |
| 346 | UnwindAssemblyInstEmulation::Terminate(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 347 | |
| 348 | EmulateInstructionARM::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 349 | EmulateInstructionARM64::Terminate(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 350 | EmulateInstructionMIPS::Terminate(); |
| 351 | EmulateInstructionMIPS64::Terminate(); |
Pavel Labath | a535a7a | 2018-02-27 18:42:46 +0000 | [diff] [blame] | 352 | EmulateInstructionPPC64::Terminate(); |
Saleem Abdulrasool | e24d8c5 | 2019-05-06 19:38:24 +0000 | [diff] [blame] | 353 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 354 | SymbolFileDWARFDebugMap::Terminate(); |
| 355 | ItaniumABILanguageRuntime::Terminate(); |
| 356 | AppleObjCRuntimeV2::Terminate(); |
| 357 | AppleObjCRuntimeV1::Terminate(); |
| 358 | SystemRuntimeMacOSX::Terminate(); |
| 359 | RenderScriptRuntime::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 360 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 361 | CPlusPlusLanguage::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 362 | ObjCLanguage::Terminate(); |
| 363 | ObjCPlusPlusLanguage::Terminate(); |
Ed Maste | 81b4c5f | 2016-01-04 01:43:47 +0000 | [diff] [blame] | 364 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 365 | #if defined(__APPLE__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 366 | DynamicLoaderDarwinKernel::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 367 | ProcessKDP::Terminate(); |
| 368 | SymbolVendorMacOSX::Terminate(); |
| 369 | PlatformAppleTVSimulator::Terminate(); |
| 370 | PlatformAppleWatchSimulator::Terminate(); |
| 371 | PlatformRemoteAppleTV::Terminate(); |
| 372 | PlatformRemoteAppleWatch::Terminate(); |
Jason Molenda | 32762fd | 2018-10-11 00:28:35 +0000 | [diff] [blame] | 373 | PlatformRemoteAppleBridge::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 374 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 375 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 376 | #if defined(__FreeBSD__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 377 | ProcessFreeBSD::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 378 | #endif |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 379 | Debugger::SettingsTerminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 380 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 381 | platform_gdb_server::PlatformRemoteGDBServer::Terminate(); |
| 382 | process_gdb_remote::ProcessGDBRemote::Terminate(); |
| 383 | StructuredDataDarwinLog::Terminate(); |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame] | 384 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 385 | DynamicLoaderMacOSXDYLD::Terminate(); |
| 386 | DynamicLoaderMacOS::Terminate(); |
| 387 | DynamicLoaderPOSIXDYLD::Terminate(); |
| 388 | DynamicLoaderStatic::Terminate(); |
| 389 | DynamicLoaderWindowsDYLD::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 390 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 10:37:33 -0800 | [diff] [blame] | 391 | #if LLDB_ENABLE_PYTHON |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 392 | OperatingSystemPython::Terminate(); |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 393 | #endif |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 394 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 395 | platform_freebsd::PlatformFreeBSD::Terminate(); |
| 396 | platform_linux::PlatformLinux::Terminate(); |
| 397 | platform_netbsd::PlatformNetBSD::Terminate(); |
Kamil Rytarowski | 12801f1 | 2017-03-26 15:34:57 +0000 | [diff] [blame] | 398 | platform_openbsd::PlatformOpenBSD::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 399 | PlatformWindows::Terminate(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 400 | platform_android::PlatformAndroid::Terminate(); |
| 401 | PlatformMacOSX::Terminate(); |
| 402 | PlatformRemoteiOS::Terminate(); |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 403 | #if defined(__APPLE__) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 404 | PlatformiOSSimulator::Terminate(); |
| 405 | PlatformDarwinKernel::Terminate(); |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 406 | #endif |
| 407 | |
Pavel Labath | 1f6b247 | 2018-12-10 17:16:38 +0000 | [diff] [blame] | 408 | breakpad::ObjectFileBreakpad::Terminate(); |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 409 | ObjectFileELF::Terminate(); |
| 410 | ObjectFileMachO::Terminate(); |
| 411 | ObjectFilePECOFF::Terminate(); |
Paolo Severini | 4bafcec | 2020-01-15 15:29:24 -0800 | [diff] [blame] | 412 | wasm::ObjectFileWasm::Terminate(); |
Pavel Labath | fa3fa5b | 2018-05-24 12:44:18 +0000 | [diff] [blame] | 413 | |
Saleem Abdulrasool | c7c3cf6 | 2019-05-02 18:11:44 +0000 | [diff] [blame] | 414 | ObjectContainerBSDArchive::Terminate(); |
| 415 | ObjectContainerUniversalMachO::Terminate(); |
| 416 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 417 | // Now shutdown the common parts, in reverse order. |
| 418 | SystemInitializerCommon::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 419 | } |