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 //===----------------------------------------------------------------------===//
10 #include "lldb/Target/SystemRuntime.h"
11 #include "lldb/Core/PluginManager.h"
12 #include "lldb/Target/Process.h"
13 #include "lldb/lldb-private.h"
16 using namespace lldb_private;
18 SystemRuntime *SystemRuntime::FindPlugin(Process *process) {
19 SystemRuntimeCreateInstance create_callback = nullptr;
20 for (uint32_t idx = 0;
21 (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(
24 std::unique_ptr<SystemRuntime> instance_ap(create_callback(process));
26 return instance_ap.release();
31 //----------------------------------------------------------------------
32 // SystemRuntime constructor
33 //----------------------------------------------------------------------
34 SystemRuntime::SystemRuntime(Process *process)
35 : m_process(process), m_types() {}
37 SystemRuntime::~SystemRuntime() = default;
39 void SystemRuntime::DidAttach() {}
41 void SystemRuntime::DidLaunch() {}
43 void SystemRuntime::Detach() {}
45 void SystemRuntime::ModulesDidLoad(ModuleList &module_list) {}
47 const std::vector<ConstString> &SystemRuntime::GetExtendedBacktraceTypes() {
51 ThreadSP SystemRuntime::GetExtendedBacktraceThread(ThreadSP thread,