LLDB mainline
JITLoader.cpp
Go to the documentation of this file.
1//===-- JITLoader.cpp -----------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
12#include "lldb/Target/Process.h"
13#include "lldb/lldb-private.h"
14
15using namespace lldb;
16using namespace lldb_private;
17
19 for (auto create_callback : PluginManager::GetJITLoaderCreateCallbacks()) {
20 JITLoaderSP instance_sp(create_callback(process, false));
21 if (instance_sp)
22 list.Append(std::move(instance_sp));
23 }
24}
25
26JITLoader::JITLoader(Process *process) : m_process(process) {}
27
28JITLoader::~JITLoader() = default;
Class used by the Process to hold a list of its JITLoaders.
void Append(const lldb::JITLoaderSP &jit_loader_sp)
JITLoader(Process *process)
Construct with a process.
Definition JITLoader.cpp:26
static void LoadPlugins(Process *process, lldb_private::JITLoaderList &list)
Find a JIT loader plugin for a given process.
Definition JITLoader.cpp:18
static llvm::SmallVector< JITLoaderCreateInstance > GetJITLoaderCreateCallbacks()
A plug-in interface definition class for debugging a process.
Definition Process.h:354
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::JITLoader > JITLoaderSP