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