1 //===-- SystemRuntime.cpp ---------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // Other libraries and framework includes
14 #include "lldb/Target/SystemRuntime.h"
15 #include "lldb/Core/PluginManager.h"
16 #include "lldb/Target/Process.h"
17 #include "lldb/lldb-private.h"
20 using namespace lldb_private;
22 SystemRuntime *SystemRuntime::FindPlugin(Process *process) {
23 SystemRuntimeCreateInstance create_callback = nullptr;
24 for (uint32_t idx = 0;
25 (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(
28 std::unique_ptr<SystemRuntime> instance_ap(create_callback(process));
30 return instance_ap.release();
35 //----------------------------------------------------------------------
36 // SystemRuntime constructor
37 //----------------------------------------------------------------------
38 SystemRuntime::SystemRuntime(Process *process)
39 : m_process(process), m_types() {}
41 SystemRuntime::~SystemRuntime() = default;
43 void SystemRuntime::DidAttach() {}
45 void SystemRuntime::DidLaunch() {}
47 void SystemRuntime::Detach() {}
49 void SystemRuntime::ModulesDidLoad(ModuleList &module_list) {}
51 const std::vector<ConstString> &SystemRuntime::GetExtendedBacktraceTypes() {
55 ThreadSP SystemRuntime::GetExtendedBacktraceThread(ThreadSP thread,