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 JITLoaderCreateInstance create_callback = nullptr;
20 for (uint32_t idx = 0;
21 (create_callback =
23 ++idx) {
24 JITLoaderSP instance_sp(create_callback(process, false));
25 if (instance_sp)
26 list.Append(std::move(instance_sp));
27 }
28}
29
30JITLoader::JITLoader(Process *process) : m_process(process) {}
31
32JITLoader::~JITLoader() = default;
Class used by the Process to hold a list of its JITLoaders.
Definition: JITLoaderList.h:22
void Append(const lldb::JITLoaderSP &jit_loader_sp)
JITLoader(Process *process)
Construct with a process.
Definition: JITLoader.cpp:30
static void LoadPlugins(Process *process, lldb_private::JITLoaderList &list)
Find a JIT loader plugin for a given process.
Definition: JITLoader.cpp:18
static JITLoaderCreateInstance GetJITLoaderCreateCallbackAtIndex(uint32_t idx)
A plug-in interface definition class for debugging a process.
Definition: Process.h:341
A class that represents a running process on the host machine.
lldb::JITLoaderSP(* JITLoaderCreateInstance)(Process *process, bool force)
Definition: SBAddress.h:15
std::shared_ptr< lldb_private::JITLoader > JITLoaderSP
Definition: lldb-forward.h:362