blob: 3fdf6daa6afa472922da92146b870833950587ca [file] [log] [blame]
Jason Molendaeef51062013-11-05 03:57:191//===-- SystemRuntime.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
Eugene Zelenkod70a6e72016-02-18 18:52:4710// C Includes
11// C++ Includes
12// Other libraries and framework includes
13// Project includes
Jason Molendaeef51062013-11-05 03:57:1914#include "lldb/Target/SystemRuntime.h"
Jason Molendaeef51062013-11-05 03:57:1915#include "lldb/Core/PluginManager.h"
Kate Stoneb9c1b512016-09-06 20:57:5016#include "lldb/Target/Process.h"
17#include "lldb/lldb-private.h"
Jason Molendaeef51062013-11-05 03:57:1918
19using namespace lldb;
20using namespace lldb_private;
21
Kate Stoneb9c1b512016-09-06 20:57:5022SystemRuntime *SystemRuntime::FindPlugin(Process *process) {
23 SystemRuntimeCreateInstance create_callback = nullptr;
24 for (uint32_t idx = 0;
25 (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(
26 idx)) != nullptr;
27 ++idx) {
28 std::unique_ptr<SystemRuntime> instance_ap(create_callback(process));
29 if (instance_ap)
30 return instance_ap.release();
31 }
32 return nullptr;
Jason Molendaeef51062013-11-05 03:57:1933}
34
Jason Molendaeef51062013-11-05 03:57:1935//----------------------------------------------------------------------
36// SystemRuntime constructor
37//----------------------------------------------------------------------
Kate Stoneb9c1b512016-09-06 20:57:5038SystemRuntime::SystemRuntime(Process *process)
39 : m_process(process), m_types() {}
Jason Molendaeef51062013-11-05 03:57:1940
Eugene Zelenkod70a6e72016-02-18 18:52:4741SystemRuntime::~SystemRuntime() = default;
Jason Molendaeef51062013-11-05 03:57:1942
Kate Stoneb9c1b512016-09-06 20:57:5043void SystemRuntime::DidAttach() {}
44
45void SystemRuntime::DidLaunch() {}
46
47void SystemRuntime::Detach() {}
48
49void SystemRuntime::ModulesDidLoad(ModuleList &module_list) {}
50
51const std::vector<ConstString> &SystemRuntime::GetExtendedBacktraceTypes() {
52 return m_types;
Jason Molendaeef51062013-11-05 03:57:1953}
54
Kate Stoneb9c1b512016-09-06 20:57:5055ThreadSP SystemRuntime::GetExtendedBacktraceThread(ThreadSP thread,
56 ConstString type) {
57 return ThreadSP();
Jason Molenda5dd49162013-11-06 00:04:4458}