Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 1 | //===-- SystemInitializerFull.cpp -------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 10 | #if !defined(LLDB_DISABLE_PYTHON) |
| 11 | #include "Plugins/ScriptInterpreter/Python/lldb-python.h" |
| 12 | #endif |
| 13 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 14 | #include "lldb/API/SystemInitializerFull.h" |
| 15 | |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 16 | #include "lldb/API/SBCommandInterpreter.h" |
| 17 | |
| 18 | #if !defined(LLDB_DISABLE_PYTHON) |
| 19 | #include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" |
| 20 | #endif |
| 21 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 22 | #include "lldb/Core/Debugger.h" |
| 23 | #include "lldb/Core/Timer.h" |
| 24 | #include "lldb/Host/Host.h" |
| 25 | #include "lldb/Initialization/SystemInitializerCommon.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 26 | #include "lldb/Interpreter/CommandInterpreter.h" |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 27 | #include "lldb/Symbol/ClangASTContext.h" |
| 28 | #include "lldb/Symbol/GoASTContext.h" |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 29 | #include "lldb/Symbol/JavaASTContext.h" |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 30 | #include "lldb/Symbol/OCamlASTContext.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 31 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 32 | #include "Plugins/ABI/MacOSX-arm/ABIMacOSX_arm.h" |
| 33 | #include "Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 34 | #include "Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.h" |
Omair Javaid | 52f825b | 2015-04-29 10:49:45 +0000 | [diff] [blame] | 35 | #include "Plugins/ABI/SysV-arm/ABISysV_arm.h" |
Omair Javaid | b78e05f | 2015-04-29 11:52:35 +0000 | [diff] [blame] | 36 | #include "Plugins/ABI/SysV-arm64/ABISysV_arm64.h" |
Ted Woodward | bff0a21 | 2015-12-10 17:53:07 +0000 | [diff] [blame] | 37 | #include "Plugins/ABI/SysV-hexagon/ABISysV_hexagon.h" |
Greg Clayton | b289cba | 2015-06-25 17:50:15 +0000 | [diff] [blame] | 38 | #include "Plugins/ABI/SysV-i386/ABISysV_i386.h" |
Bhushan D. Attarde | a8219f2 | 2015-06-18 07:02:10 +0000 | [diff] [blame] | 39 | #include "Plugins/ABI/SysV-mips/ABISysV_mips.h" |
Bhushan D. Attarde | 13f5425 | 2015-06-19 04:25:07 +0000 | [diff] [blame] | 40 | #include "Plugins/ABI/SysV-mips64/ABISysV_mips64.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 41 | #include "Plugins/ABI/SysV-ppc/ABISysV_ppc.h" |
| 42 | #include "Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h" |
Ulrich Weigand | bb00d0b | 2016-04-14 14:28:34 +0000 | [diff] [blame] | 43 | #include "Plugins/ABI/SysV-s390x/ABISysV_s390x.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 44 | #include "Plugins/ABI/SysV-x86_64/ABISysV_x86_64.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 45 | #include "Plugins/Disassembler/llvm/DisassemblerLLVMC.h" |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 46 | #include "Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h" |
Jason Molenda | 9ab5dc2 | 2016-07-21 08:30:55 +0000 | [diff] [blame] | 47 | #include "Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h" |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 48 | #include "Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 49 | #include "Plugins/DynamicLoader/Static/DynamicLoaderStatic.h" |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 50 | #include "Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 51 | #include "Plugins/Instruction/ARM64/EmulateInstructionARM64.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 52 | #include "Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.h" |
Kuba Brecka | 6a83143 | 2016-03-23 15:36:22 +0000 | [diff] [blame] | 53 | #include "Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 54 | #include "Plugins/JITLoader/GDB/JITLoaderGDB.h" |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 55 | #include "Plugins/Language/CPlusPlus/CPlusPlusLanguage.h" |
Ryan Brown | 2dd8488 | 2015-11-05 00:24:36 +0000 | [diff] [blame] | 56 | #include "Plugins/Language/Go/GoLanguage.h" |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 57 | #include "Plugins/Language/Java/JavaLanguage.h" |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 58 | #include "Plugins/Language/ObjC/ObjCLanguage.h" |
| 59 | #include "Plugins/Language/ObjCPlusPlus/ObjCPlusPlusLanguage.h" |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 60 | #include "Plugins/Language/OCaml/OCamlLanguage.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 61 | #include "Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h" |
Ryan Brown | 07a1c45 | 2015-10-06 20:29:31 +0000 | [diff] [blame] | 62 | #include "Plugins/LanguageRuntime/Go/GoLanguageRuntime.h" |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 63 | #include "Plugins/LanguageRuntime/Java/JavaLanguageRuntime.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 64 | #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h" |
| 65 | #include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h" |
Colin Riley | 5ec532a | 2015-04-09 16:49:25 +0000 | [diff] [blame] | 66 | #include "Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 67 | #include "Plugins/MemoryHistory/asan/MemoryHistoryASan.h" |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 68 | #include "Plugins/OperatingSystem/Go/OperatingSystemGo.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 69 | #include "Plugins/OperatingSystem/Python/OperatingSystemPython.h" |
| 70 | #include "Plugins/Platform/Android/PlatformAndroid.h" |
| 71 | #include "Plugins/Platform/FreeBSD/PlatformFreeBSD.h" |
| 72 | #include "Plugins/Platform/Kalimba/PlatformKalimba.h" |
| 73 | #include "Plugins/Platform/Linux/PlatformLinux.h" |
| 74 | #include "Plugins/Platform/MacOSX/PlatformMacOSX.h" |
| 75 | #include "Plugins/Platform/MacOSX/PlatformRemoteiOS.h" |
| 76 | #include "Plugins/Platform/NetBSD/PlatformNetBSD.h" |
| 77 | #include "Plugins/Platform/Windows/PlatformWindows.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 78 | #include "Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h" |
| 79 | #include "Plugins/Process/elf-core/ProcessElfCore.h" |
| 80 | #include "Plugins/Process/gdb-remote/ProcessGDBRemote.h" |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 81 | #include "Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 82 | #include "Plugins/SymbolFile/DWARF/SymbolFileDWARF.h" |
| 83 | #include "Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 84 | #include "Plugins/SymbolFile/PDB/SymbolFilePDB.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 85 | #include "Plugins/SymbolFile/Symtab/SymbolFileSymtab.h" |
| 86 | #include "Plugins/SymbolVendor/ELF/SymbolVendorELF.h" |
| 87 | #include "Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 88 | #include "Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.h" |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 89 | #include "Plugins/UnwindAssembly/x86/UnwindAssembly-x86.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 90 | |
| 91 | #if defined(__APPLE__) |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 92 | #include "Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h" |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 93 | #include "Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h" |
| 94 | #include "Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 95 | #include "Plugins/Platform/MacOSX/PlatformDarwinKernel.h" |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 96 | #include "Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h" |
| 97 | #include "Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h" |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 98 | #include "Plugins/Platform/MacOSX/PlatformiOSSimulator.h" |
| 99 | #include "Plugins/Process/MacOSX-Kernel/ProcessKDP.h" |
| 100 | #include "Plugins/Process/mach-core/ProcessMachCore.h" |
| 101 | #include "Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 102 | #endif |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame^] | 103 | #include "Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 104 | |
| 105 | #if defined(__FreeBSD__) |
| 106 | #include "Plugins/Process/FreeBSD/ProcessFreeBSD.h" |
| 107 | #endif |
| 108 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 109 | #if defined(_MSC_VER) |
| 110 | #include "lldb/Host/windows/windows.h" |
Adrian McCarthy | 18a9135d | 2015-10-28 18:21:45 +0000 | [diff] [blame] | 111 | #include "Plugins/Process/Windows/Live/ProcessWindowsLive.h" |
Adrian McCarthy | 27785dd | 2015-08-24 16:00:51 +0000 | [diff] [blame] | 112 | #include "Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.h" |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 113 | #endif |
| 114 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 115 | #include "llvm/Support/TargetSelect.h" |
| 116 | |
| 117 | #include <string> |
| 118 | |
| 119 | using namespace lldb_private; |
| 120 | |
| 121 | #ifndef LLDB_DISABLE_PYTHON |
| 122 | |
| 123 | // Defined in the SWIG source file |
Zachary Turner | c5b41d6 | 2015-10-16 17:52:03 +0000 | [diff] [blame] | 124 | #if PY_MAJOR_VERSION >= 3 |
| 125 | extern "C" PyObject* |
| 126 | PyInit__lldb(void); |
| 127 | |
| 128 | #define LLDBSwigPyInit PyInit__lldb |
| 129 | |
| 130 | #else |
Ed Maste | 81b4c5f | 2016-01-04 01:43:47 +0000 | [diff] [blame] | 131 | extern "C" void |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 132 | init_lldb(void); |
| 133 | |
Zachary Turner | c5b41d6 | 2015-10-16 17:52:03 +0000 | [diff] [blame] | 134 | #define LLDBSwigPyInit init_lldb |
| 135 | #endif |
| 136 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 137 | // these are the Pythonic implementations of the required callbacks |
| 138 | // these are scripting-language specific, which is why they belong here |
| 139 | // we still need to use function pointers to them instead of relying |
| 140 | // on linkage-time resolution because the SWIG stuff and this file |
| 141 | // get built at different times |
| 142 | extern "C" bool |
| 143 | LLDBSwigPythonBreakpointCallbackFunction (const char *python_function_name, |
| 144 | const char *session_dictionary_name, |
| 145 | const lldb::StackFrameSP& sb_frame, |
| 146 | const lldb::BreakpointLocationSP& sb_bp_loc); |
| 147 | |
| 148 | extern "C" bool |
| 149 | LLDBSwigPythonWatchpointCallbackFunction (const char *python_function_name, |
| 150 | const char *session_dictionary_name, |
| 151 | const lldb::StackFrameSP& sb_frame, |
| 152 | const lldb::WatchpointSP& sb_wp); |
| 153 | |
| 154 | extern "C" bool |
| 155 | LLDBSwigPythonCallTypeScript (const char *python_function_name, |
| 156 | void *session_dictionary, |
| 157 | const lldb::ValueObjectSP& valobj_sp, |
| 158 | void** pyfunct_wrapper, |
| 159 | const lldb::TypeSummaryOptionsSP& options_sp, |
| 160 | std::string& retval); |
| 161 | |
| 162 | extern "C" void* |
| 163 | LLDBSwigPythonCreateSyntheticProvider (const char *python_class_name, |
| 164 | const char *session_dictionary_name, |
| 165 | const lldb::ValueObjectSP& valobj_sp); |
| 166 | |
| 167 | extern "C" void* |
| 168 | LLDBSwigPythonCreateCommandObject (const char *python_class_name, |
| 169 | const char *session_dictionary_name, |
| 170 | const lldb::DebuggerSP debugger_sp); |
| 171 | |
| 172 | extern "C" void* |
| 173 | LLDBSwigPythonCreateScriptedThreadPlan (const char *python_class_name, |
| 174 | const char *session_dictionary_name, |
| 175 | const lldb::ThreadPlanSP& thread_plan_sp); |
| 176 | |
| 177 | extern "C" bool |
| 178 | LLDBSWIGPythonCallThreadPlan (void *implementor, |
| 179 | const char *method_name, |
| 180 | Event *event_sp, |
| 181 | bool &got_error); |
| 182 | |
| 183 | extern "C" size_t |
Siva Chandra | 9ac7a6c | 2015-10-21 19:28:08 +0000 | [diff] [blame] | 184 | LLDBSwigPython_CalculateNumChildren (void *implementor, uint32_t max); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 185 | |
| 186 | extern "C" void * |
| 187 | LLDBSwigPython_GetChildAtIndex (void *implementor, uint32_t idx); |
| 188 | |
| 189 | extern "C" int |
| 190 | LLDBSwigPython_GetIndexOfChildWithName (void *implementor, const char* child_name); |
| 191 | |
| 192 | extern "C" void * |
| 193 | LLDBSWIGPython_CastPyObjectToSBValue (void* data); |
| 194 | |
| 195 | extern lldb::ValueObjectSP |
| 196 | LLDBSWIGPython_GetValueObjectSPFromSBValue (void* data); |
| 197 | |
| 198 | extern "C" bool |
| 199 | LLDBSwigPython_UpdateSynthProviderInstance (void* implementor); |
| 200 | |
| 201 | extern "C" bool |
| 202 | LLDBSwigPython_MightHaveChildrenSynthProviderInstance (void* implementor); |
| 203 | |
| 204 | extern "C" void * |
| 205 | LLDBSwigPython_GetValueSynthProviderInstance (void* implementor); |
| 206 | |
| 207 | extern "C" bool |
| 208 | LLDBSwigPythonCallCommand (const char *python_function_name, |
| 209 | const char *session_dictionary_name, |
| 210 | lldb::DebuggerSP& debugger, |
| 211 | const char* args, |
| 212 | lldb_private::CommandReturnObject &cmd_retobj, |
| 213 | lldb::ExecutionContextRefSP exe_ctx_ref_sp); |
| 214 | |
| 215 | extern "C" bool |
| 216 | LLDBSwigPythonCallCommandObject (void *implementor, |
| 217 | lldb::DebuggerSP& debugger, |
| 218 | const char* args, |
| 219 | lldb_private::CommandReturnObject& cmd_retobj, |
| 220 | lldb::ExecutionContextRefSP exe_ctx_ref_sp); |
| 221 | |
| 222 | extern "C" bool |
| 223 | LLDBSwigPythonCallModuleInit (const char *python_module_name, |
| 224 | const char *session_dictionary_name, |
| 225 | lldb::DebuggerSP& debugger); |
| 226 | |
| 227 | extern "C" void* |
| 228 | LLDBSWIGPythonCreateOSPlugin (const char *python_class_name, |
| 229 | const char *session_dictionary_name, |
| 230 | const lldb::ProcessSP& process_sp); |
| 231 | |
| 232 | extern "C" bool |
| 233 | LLDBSWIGPythonRunScriptKeywordProcess (const char* python_function_name, |
| 234 | const char* session_dictionary_name, |
| 235 | lldb::ProcessSP& process, |
| 236 | std::string& output); |
| 237 | |
| 238 | extern "C" bool |
| 239 | LLDBSWIGPythonRunScriptKeywordThread (const char* python_function_name, |
| 240 | const char* session_dictionary_name, |
| 241 | lldb::ThreadSP& thread, |
| 242 | std::string& output); |
| 243 | |
| 244 | extern "C" bool |
| 245 | LLDBSWIGPythonRunScriptKeywordTarget (const char* python_function_name, |
| 246 | const char* session_dictionary_name, |
| 247 | lldb::TargetSP& target, |
| 248 | std::string& output); |
| 249 | |
| 250 | extern "C" bool |
| 251 | LLDBSWIGPythonRunScriptKeywordFrame (const char* python_function_name, |
| 252 | const char* session_dictionary_name, |
| 253 | lldb::StackFrameSP& frame, |
| 254 | std::string& output); |
| 255 | |
| 256 | extern "C" bool |
| 257 | LLDBSWIGPythonRunScriptKeywordValue (const char* python_function_name, |
| 258 | const char* session_dictionary_name, |
| 259 | lldb::ValueObjectSP& value, |
| 260 | std::string& output); |
| 261 | |
| 262 | extern "C" void* |
| 263 | LLDBSWIGPython_GetDynamicSetting (void* module, |
| 264 | const char* setting, |
| 265 | const lldb::TargetSP& target_sp); |
| 266 | |
| 267 | |
| 268 | #endif |
| 269 | |
| 270 | SystemInitializerFull::SystemInitializerFull() |
| 271 | { |
| 272 | } |
| 273 | |
| 274 | SystemInitializerFull::~SystemInitializerFull() |
| 275 | { |
| 276 | } |
| 277 | |
| 278 | void |
| 279 | SystemInitializerFull::Initialize() |
| 280 | { |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 281 | SystemInitializerCommon::Initialize(); |
Keno Fischer | 6e77677 | 2015-08-23 09:05:29 +0000 | [diff] [blame] | 282 | ScriptInterpreterNone::Initialize(); |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 283 | |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 284 | #ifndef LLDB_DISABLE_PYTHON |
| 285 | OperatingSystemPython::Initialize(); |
| 286 | #endif |
| 287 | OperatingSystemGo::Initialize(); |
| 288 | |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 289 | #if !defined(LLDB_DISABLE_PYTHON) |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 290 | InitializeSWIG(); |
| 291 | |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 292 | // ScriptInterpreterPython::Initialize() depends on things like HostInfo being initialized |
| 293 | // so it can compute the python directory etc, so we need to do this after |
| 294 | // SystemInitializerCommon::Initialize(). |
Zachary Turner | 2c1f46d | 2015-07-30 20:28:07 +0000 | [diff] [blame] | 295 | ScriptInterpreterPython::Initialize(); |
| 296 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 297 | |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 298 | platform_freebsd::PlatformFreeBSD::Initialize(); |
| 299 | platform_linux::PlatformLinux::Initialize(); |
| 300 | platform_netbsd::PlatformNetBSD::Initialize(); |
| 301 | PlatformWindows::Initialize(); |
| 302 | PlatformKalimba::Initialize(); |
| 303 | platform_android::PlatformAndroid::Initialize(); |
| 304 | PlatformRemoteiOS::Initialize(); |
| 305 | PlatformMacOSX::Initialize(); |
| 306 | #if defined(__APPLE__) |
| 307 | PlatformiOSSimulator::Initialize(); |
| 308 | PlatformDarwinKernel::Initialize(); |
| 309 | #endif |
| 310 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 311 | // Initialize LLVM and Clang |
| 312 | llvm::InitializeAllTargets(); |
| 313 | llvm::InitializeAllAsmPrinters(); |
| 314 | llvm::InitializeAllTargetMCs(); |
| 315 | llvm::InitializeAllDisassemblers(); |
| 316 | |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 317 | ClangASTContext::Initialize(); |
| 318 | GoASTContext::Initialize(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 319 | JavaASTContext::Initialize(); |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 320 | OCamlASTContext::Initialize(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 321 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 322 | ABIMacOSX_i386::Initialize(); |
| 323 | ABIMacOSX_arm::Initialize(); |
| 324 | ABIMacOSX_arm64::Initialize(); |
Omair Javaid | 52f825b | 2015-04-29 10:49:45 +0000 | [diff] [blame] | 325 | ABISysV_arm::Initialize(); |
Omair Javaid | b78e05f | 2015-04-29 11:52:35 +0000 | [diff] [blame] | 326 | ABISysV_arm64::Initialize(); |
Ted Woodward | bff0a21 | 2015-12-10 17:53:07 +0000 | [diff] [blame] | 327 | ABISysV_hexagon::Initialize(); |
Greg Clayton | b289cba | 2015-06-25 17:50:15 +0000 | [diff] [blame] | 328 | ABISysV_i386::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 329 | ABISysV_x86_64::Initialize(); |
| 330 | ABISysV_ppc::Initialize(); |
| 331 | ABISysV_ppc64::Initialize(); |
Bhushan D. Attarde | a8219f2 | 2015-06-18 07:02:10 +0000 | [diff] [blame] | 332 | ABISysV_mips::Initialize(); |
Bhushan D. Attarde | 13f5425 | 2015-06-19 04:25:07 +0000 | [diff] [blame] | 333 | ABISysV_mips64::Initialize(); |
Ulrich Weigand | bb00d0b | 2016-04-14 14:28:34 +0000 | [diff] [blame] | 334 | ABISysV_s390x::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 335 | DisassemblerLLVMC::Initialize(); |
| 336 | |
| 337 | JITLoaderGDB::Initialize(); |
| 338 | ProcessElfCore::Initialize(); |
Adrian McCarthy | c96516f | 2015-08-03 23:01:51 +0000 | [diff] [blame] | 339 | #if defined(_MSC_VER) |
| 340 | ProcessWinMiniDump::Initialize(); |
| 341 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 342 | MemoryHistoryASan::Initialize(); |
| 343 | AddressSanitizerRuntime::Initialize(); |
Kuba Brecka | 6a83143 | 2016-03-23 15:36:22 +0000 | [diff] [blame] | 344 | ThreadSanitizerRuntime::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 345 | |
| 346 | SymbolVendorELF::Initialize(); |
| 347 | SymbolFileDWARF::Initialize(); |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 348 | SymbolFilePDB::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 349 | SymbolFileSymtab::Initialize(); |
| 350 | UnwindAssemblyInstEmulation::Initialize(); |
| 351 | UnwindAssembly_x86::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 352 | EmulateInstructionARM64::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 353 | SymbolFileDWARFDebugMap::Initialize(); |
| 354 | ItaniumABILanguageRuntime::Initialize(); |
| 355 | AppleObjCRuntimeV2::Initialize(); |
| 356 | AppleObjCRuntimeV1::Initialize(); |
| 357 | SystemRuntimeMacOSX::Initialize(); |
Colin Riley | 5ec532a | 2015-04-09 16:49:25 +0000 | [diff] [blame] | 358 | RenderScriptRuntime::Initialize(); |
Ryan Brown | 07a1c45 | 2015-10-06 20:29:31 +0000 | [diff] [blame] | 359 | GoLanguageRuntime::Initialize(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 360 | JavaLanguageRuntime::Initialize(); |
Ed Maste | 81b4c5f | 2016-01-04 01:43:47 +0000 | [diff] [blame] | 361 | |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 362 | CPlusPlusLanguage::Initialize(); |
Ryan Brown | 2dd8488 | 2015-11-05 00:24:36 +0000 | [diff] [blame] | 363 | GoLanguage::Initialize(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 364 | JavaLanguage::Initialize(); |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 365 | ObjCLanguage::Initialize(); |
| 366 | ObjCPlusPlusLanguage::Initialize(); |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 367 | OCamlLanguage::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 368 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 369 | #if defined(_MSC_VER) |
Adrian McCarthy | 18a9135d | 2015-10-28 18:21:45 +0000 | [diff] [blame] | 370 | ProcessWindowsLive::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 371 | #endif |
| 372 | #if defined(__FreeBSD__) |
| 373 | ProcessFreeBSD::Initialize(); |
| 374 | #endif |
| 375 | #if defined(__APPLE__) |
| 376 | SymbolVendorMacOSX::Initialize(); |
| 377 | ProcessKDP::Initialize(); |
| 378 | ProcessMachCore::Initialize(); |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 379 | PlatformAppleTVSimulator::Initialize(); |
| 380 | PlatformAppleWatchSimulator::Initialize(); |
| 381 | PlatformRemoteAppleTV::Initialize(); |
| 382 | PlatformRemoteAppleWatch::Initialize(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 383 | DynamicLoaderDarwinKernel::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 384 | #endif |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame^] | 385 | |
| 386 | // This plugin is valid on any host that talks to a Darwin remote. |
| 387 | // It shouldn't be limited to __APPLE__. |
| 388 | StructuredDataDarwinLog::Initialize(); |
| 389 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 390 | //---------------------------------------------------------------------- |
| 391 | // Platform agnostic plugins |
| 392 | //---------------------------------------------------------------------- |
| 393 | platform_gdb_server::PlatformRemoteGDBServer::Initialize(); |
| 394 | |
| 395 | process_gdb_remote::ProcessGDBRemote::Initialize(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 396 | DynamicLoaderMacOSXDYLD::Initialize(); |
Jason Molenda | 9ab5dc2 | 2016-07-21 08:30:55 +0000 | [diff] [blame] | 397 | DynamicLoaderMacOS::Initialize(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 398 | DynamicLoaderPOSIXDYLD::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 399 | DynamicLoaderStatic::Initialize(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 400 | DynamicLoaderWindowsDYLD::Initialize(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 401 | |
| 402 | // Scan for any system or user LLDB plug-ins |
| 403 | PluginManager::Initialize(); |
| 404 | |
| 405 | // The process settings need to know about installed plug-ins, so the Settings must be initialized |
| 406 | // AFTER PluginManager::Initialize is called. |
| 407 | |
| 408 | Debugger::SettingsInitialize(); |
| 409 | } |
| 410 | |
| 411 | void SystemInitializerFull::InitializeSWIG() |
| 412 | { |
| 413 | #if !defined(LLDB_DISABLE_PYTHON) |
| 414 | ScriptInterpreterPython::InitializeInterpreter( |
Zachary Turner | c5b41d6 | 2015-10-16 17:52:03 +0000 | [diff] [blame] | 415 | LLDBSwigPyInit, |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 416 | LLDBSwigPythonBreakpointCallbackFunction, |
| 417 | LLDBSwigPythonWatchpointCallbackFunction, |
| 418 | LLDBSwigPythonCallTypeScript, |
| 419 | LLDBSwigPythonCreateSyntheticProvider, |
| 420 | LLDBSwigPythonCreateCommandObject, |
| 421 | LLDBSwigPython_CalculateNumChildren, |
| 422 | LLDBSwigPython_GetChildAtIndex, |
| 423 | LLDBSwigPython_GetIndexOfChildWithName, |
| 424 | LLDBSWIGPython_CastPyObjectToSBValue, |
| 425 | LLDBSWIGPython_GetValueObjectSPFromSBValue, |
| 426 | LLDBSwigPython_UpdateSynthProviderInstance, |
| 427 | LLDBSwigPython_MightHaveChildrenSynthProviderInstance, |
| 428 | LLDBSwigPython_GetValueSynthProviderInstance, |
| 429 | LLDBSwigPythonCallCommand, |
| 430 | LLDBSwigPythonCallCommandObject, |
| 431 | LLDBSwigPythonCallModuleInit, |
| 432 | LLDBSWIGPythonCreateOSPlugin, |
| 433 | LLDBSWIGPythonRunScriptKeywordProcess, |
| 434 | LLDBSWIGPythonRunScriptKeywordThread, |
| 435 | LLDBSWIGPythonRunScriptKeywordTarget, |
| 436 | LLDBSWIGPythonRunScriptKeywordFrame, |
| 437 | LLDBSWIGPythonRunScriptKeywordValue, |
| 438 | LLDBSWIGPython_GetDynamicSetting, |
| 439 | LLDBSwigPythonCreateScriptedThreadPlan, |
| 440 | LLDBSWIGPythonCallThreadPlan); |
| 441 | #endif |
| 442 | } |
| 443 | |
| 444 | void |
| 445 | SystemInitializerFull::Terminate() |
| 446 | { |
Zachary Turner | f343968f | 2016-08-09 23:06:08 +0000 | [diff] [blame] | 447 | Timer scoped_timer(LLVM_PRETTY_FUNCTION, LLVM_PRETTY_FUNCTION); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 448 | |
| 449 | Debugger::SettingsTerminate(); |
| 450 | |
| 451 | // Terminate and unload and loaded system or user LLDB plug-ins |
| 452 | PluginManager::Terminate(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 453 | |
| 454 | ClangASTContext::Terminate(); |
| 455 | GoASTContext::Terminate(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 456 | JavaASTContext::Terminate(); |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 457 | OCamlASTContext::Terminate(); |
Greg Clayton | 56939cb | 2015-09-17 22:23:34 +0000 | [diff] [blame] | 458 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 459 | ABIMacOSX_i386::Terminate(); |
| 460 | ABIMacOSX_arm::Terminate(); |
| 461 | ABIMacOSX_arm64::Terminate(); |
Omair Javaid | 52f825b | 2015-04-29 10:49:45 +0000 | [diff] [blame] | 462 | ABISysV_arm::Terminate(); |
Omair Javaid | b78e05f | 2015-04-29 11:52:35 +0000 | [diff] [blame] | 463 | ABISysV_arm64::Terminate(); |
Ted Woodward | bff0a21 | 2015-12-10 17:53:07 +0000 | [diff] [blame] | 464 | ABISysV_hexagon::Terminate(); |
Greg Clayton | b289cba | 2015-06-25 17:50:15 +0000 | [diff] [blame] | 465 | ABISysV_i386::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 466 | ABISysV_x86_64::Terminate(); |
| 467 | ABISysV_ppc::Terminate(); |
| 468 | ABISysV_ppc64::Terminate(); |
Bhushan D. Attarde | a8219f2 | 2015-06-18 07:02:10 +0000 | [diff] [blame] | 469 | ABISysV_mips::Terminate(); |
Bhushan D. Attarde | 13f5425 | 2015-06-19 04:25:07 +0000 | [diff] [blame] | 470 | ABISysV_mips64::Terminate(); |
Ulrich Weigand | bb00d0b | 2016-04-14 14:28:34 +0000 | [diff] [blame] | 471 | ABISysV_s390x::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 472 | DisassemblerLLVMC::Terminate(); |
| 473 | |
| 474 | JITLoaderGDB::Terminate(); |
| 475 | ProcessElfCore::Terminate(); |
Adrian McCarthy | c96516f | 2015-08-03 23:01:51 +0000 | [diff] [blame] | 476 | #if defined(_MSC_VER) |
| 477 | ProcessWinMiniDump::Terminate(); |
| 478 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 479 | MemoryHistoryASan::Terminate(); |
| 480 | AddressSanitizerRuntime::Terminate(); |
Kuba Brecka | 6a83143 | 2016-03-23 15:36:22 +0000 | [diff] [blame] | 481 | ThreadSanitizerRuntime::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 482 | SymbolVendorELF::Terminate(); |
| 483 | SymbolFileDWARF::Terminate(); |
Zachary Turner | 74e08ca | 2016-03-02 22:05:52 +0000 | [diff] [blame] | 484 | SymbolFilePDB::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 485 | SymbolFileSymtab::Terminate(); |
| 486 | UnwindAssembly_x86::Terminate(); |
| 487 | UnwindAssemblyInstEmulation::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 488 | EmulateInstructionARM64::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 489 | SymbolFileDWARFDebugMap::Terminate(); |
| 490 | ItaniumABILanguageRuntime::Terminate(); |
| 491 | AppleObjCRuntimeV2::Terminate(); |
| 492 | AppleObjCRuntimeV1::Terminate(); |
| 493 | SystemRuntimeMacOSX::Terminate(); |
Colin Riley | 5ec532a | 2015-04-09 16:49:25 +0000 | [diff] [blame] | 494 | RenderScriptRuntime::Terminate(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 495 | JavaLanguageRuntime::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 496 | |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 497 | CPlusPlusLanguage::Terminate(); |
Ryan Brown | 2dd8488 | 2015-11-05 00:24:36 +0000 | [diff] [blame] | 498 | GoLanguage::Terminate(); |
Tamas Berghammer | 87a9769 | 2016-02-26 14:21:23 +0000 | [diff] [blame] | 499 | JavaLanguage::Terminate(); |
Enrico Granata | 980c048 | 2015-09-01 18:22:39 +0000 | [diff] [blame] | 500 | ObjCLanguage::Terminate(); |
| 501 | ObjCPlusPlusLanguage::Terminate(); |
Tamas Berghammer | 00adc41 | 2016-08-02 11:15:55 +0000 | [diff] [blame] | 502 | OCamlLanguage::Terminate(); |
Ed Maste | 81b4c5f | 2016-01-04 01:43:47 +0000 | [diff] [blame] | 503 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 504 | #if defined(__APPLE__) |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 505 | DynamicLoaderDarwinKernel::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 506 | ProcessMachCore::Terminate(); |
| 507 | ProcessKDP::Terminate(); |
| 508 | SymbolVendorMacOSX::Terminate(); |
Jason Molenda | 5e88be9 | 2015-11-06 00:22:53 +0000 | [diff] [blame] | 509 | PlatformAppleTVSimulator::Terminate(); |
| 510 | PlatformAppleWatchSimulator::Terminate(); |
| 511 | PlatformRemoteAppleTV::Terminate(); |
| 512 | PlatformRemoteAppleWatch::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 513 | #endif |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 514 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 515 | #if defined(__FreeBSD__) |
| 516 | ProcessFreeBSD::Terminate(); |
| 517 | #endif |
| 518 | Debugger::SettingsTerminate(); |
| 519 | |
| 520 | platform_gdb_server::PlatformRemoteGDBServer::Terminate(); |
| 521 | process_gdb_remote::ProcessGDBRemote::Terminate(); |
Todd Fiala | 7593001 | 2016-08-19 04:21:48 +0000 | [diff] [blame^] | 522 | StructuredDataDarwinLog::Terminate(); |
| 523 | |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 524 | DynamicLoaderMacOSXDYLD::Terminate(); |
Jason Molenda | 9ab5dc2 | 2016-07-21 08:30:55 +0000 | [diff] [blame] | 525 | DynamicLoaderMacOS::Terminate(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 526 | DynamicLoaderPOSIXDYLD::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 527 | DynamicLoaderStatic::Terminate(); |
Pavel Labath | 773c3b0 | 2016-03-29 15:00:26 +0000 | [diff] [blame] | 528 | DynamicLoaderWindowsDYLD::Terminate(); |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 529 | |
Pavel Labath | a7760cb | 2016-03-16 08:48:56 +0000 | [diff] [blame] | 530 | #ifndef LLDB_DISABLE_PYTHON |
| 531 | OperatingSystemPython::Terminate(); |
| 532 | #endif |
| 533 | OperatingSystemGo::Terminate(); |
| 534 | |
Pavel Labath | f176353 | 2016-06-29 13:58:27 +0000 | [diff] [blame] | 535 | platform_freebsd::PlatformFreeBSD::Terminate(); |
| 536 | platform_linux::PlatformLinux::Terminate(); |
| 537 | platform_netbsd::PlatformNetBSD::Terminate(); |
| 538 | PlatformWindows::Terminate(); |
| 539 | PlatformKalimba::Terminate(); |
| 540 | platform_android::PlatformAndroid::Terminate(); |
| 541 | PlatformMacOSX::Terminate(); |
| 542 | PlatformRemoteiOS::Terminate(); |
| 543 | #if defined(__APPLE__) |
| 544 | PlatformiOSSimulator::Terminate(); |
| 545 | PlatformDarwinKernel::Terminate(); |
| 546 | #endif |
| 547 | |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame] | 548 | // Now shutdown the common parts, in reverse order. |
| 549 | SystemInitializerCommon::Terminate(); |
| 550 | } |