LLDB mainline
JITLoaderList.h
Go to the documentation of this file.
1//===-- JITLoaderList.h -----------------------------------------*- C++ -*-===//
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
9#ifndef LLDB_TARGET_JITLOADERLIST_H
10#define LLDB_TARGET_JITLOADERLIST_H
11
12#include <mutex>
13#include <vector>
14
15#include "lldb/lldb-forward.h"
16
17namespace lldb_private {
18
19/// \class JITLoaderList JITLoaderList.h "lldb/Target/JITLoaderList.h"
20///
21/// Class used by the Process to hold a list of its JITLoaders.
23public:
26
27 void Append(const lldb::JITLoaderSP &jit_loader_sp);
28
29 void Remove(const lldb::JITLoaderSP &jit_loader_sp);
30
31 size_t GetSize() const;
32
34
35 void DidLaunch();
36
37 void DidAttach();
38
39 void ModulesDidLoad(ModuleList &module_list);
40
41private:
42 std::vector<lldb::JITLoaderSP> m_jit_loaders_vec;
43 std::recursive_mutex m_jit_loaders_mutex;
44};
45
46} // namespace lldb_private
47
48#endif // LLDB_TARGET_JITLOADERLIST_H
Class used by the Process to hold a list of its JITLoaders.
Definition: JITLoaderList.h:22
std::vector< lldb::JITLoaderSP > m_jit_loaders_vec
Definition: JITLoaderList.h:42
void ModulesDidLoad(ModuleList &module_list)
void Remove(const lldb::JITLoaderSP &jit_loader_sp)
void Append(const lldb::JITLoaderSP &jit_loader_sp)
std::recursive_mutex m_jit_loaders_mutex
Definition: JITLoaderList.h:43
lldb::JITLoaderSP GetLoaderAtIndex(size_t idx)
A collection class for Module objects.
Definition: ModuleList.h:103
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::JITLoader > JITLoaderSP
Definition: lldb-forward.h:362