SystemRuntime.cpp revision 257752
14922SN/A//===-- SystemRuntime.cpp ---------------------------------------*- C++ -*-===//
24922SN/A//
34922SN/A//                     The LLVM Compiler Infrastructure
44922SN/A//
54922SN/A// This file is distributed under the University of Illinois Open Source
64922SN/A// License. See LICENSE.TXT for details.
74922SN/A//
84922SN/A//===----------------------------------------------------------------------===//
94922SN/A
104922SN/A#include "lldb/lldb-private.h"
114922SN/A#include "lldb/Target/SystemRuntime.h"
124922SN/A#include "lldb/Target/Process.h"
134922SN/A#include "lldb/Core/PluginManager.h"
144922SN/A
154922SN/Ausing namespace lldb;
164922SN/Ausing namespace lldb_private;
174922SN/A
184922SN/ASystemRuntime*
194922SN/ASystemRuntime::FindPlugin (Process *process)
204922SN/A{
214922SN/A    SystemRuntimeCreateInstance create_callback = NULL;
224922SN/A    for (uint32_t idx = 0; (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(idx)) != NULL; ++idx)
234922SN/A    {
244922SN/A        std::unique_ptr<SystemRuntime> instance_ap(create_callback(process));
254922SN/A        if (instance_ap.get())
264922SN/A            return instance_ap.release();
274922SN/A    }
284922SN/A    return NULL;
294922SN/A}
304922SN/A
314922SN/A
324922SN/A//----------------------------------------------------------------------
334922SN/A// SystemRuntime constructor
344922SN/A//----------------------------------------------------------------------
354922SN/ASystemRuntime::SystemRuntime(Process *process) :
364922SN/A    m_process (process)
374922SN/A{
384922SN/A}
394922SN/A
404922SN/A//----------------------------------------------------------------------
414922SN/A// Destructor
424922SN/A//----------------------------------------------------------------------
434922SN/ASystemRuntime::~SystemRuntime()
44{
45}
46
47void
48SystemRuntime::DidAttach ()
49{
50}
51
52void
53SystemRuntime::DidLaunch()
54{
55}
56
57void
58SystemRuntime::ModulesDidLoad (ModuleList &module_list)
59{
60}
61
62std::vector<ConstString>
63SystemRuntime::GetExtendedBacktraceTypes ()
64{
65    std::vector<ConstString> types;
66    return types;
67}
68
69ThreadSP
70SystemRuntime::GetExtendedBacktrace (ThreadSP thread, ConstString type)
71{
72    return ThreadSP();
73}
74