Path: blob/main/contrib/llvm-project/lldb/source/Target/SystemRuntime.cpp
39587 views
//===-- SystemRuntime.cpp -------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Target/SystemRuntime.h"9#include "lldb/Core/PluginManager.h"10#include "lldb/Target/Process.h"11#include "lldb/lldb-private.h"1213using namespace lldb;14using namespace lldb_private;1516SystemRuntime *SystemRuntime::FindPlugin(Process *process) {17SystemRuntimeCreateInstance create_callback = nullptr;18for (uint32_t idx = 0;19(create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(20idx)) != nullptr;21++idx) {22std::unique_ptr<SystemRuntime> instance_up(create_callback(process));23if (instance_up)24return instance_up.release();25}26return nullptr;27}2829SystemRuntime::SystemRuntime(Process *process) : Runtime(process), m_types() {}3031SystemRuntime::~SystemRuntime() = default;3233void SystemRuntime::DidAttach() {}3435void SystemRuntime::DidLaunch() {}3637void SystemRuntime::Detach() {}3839void SystemRuntime::ModulesDidLoad(const ModuleList &module_list) {}4041const std::vector<ConstString> &SystemRuntime::GetExtendedBacktraceTypes() {42return m_types;43}4445ThreadSP SystemRuntime::GetExtendedBacktraceThread(ThreadSP thread,46ConstString type) {47return ThreadSP();48}495051