Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:53

0001 //===-- JITLoaderList.h -----------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_TARGET_JITLOADERLIST_H
0010 #define LLDB_TARGET_JITLOADERLIST_H
0011 
0012 #include <mutex>
0013 #include <vector>
0014 
0015 #include "lldb/lldb-forward.h"
0016 
0017 namespace lldb_private {
0018 
0019 /// \class JITLoaderList JITLoaderList.h "lldb/Target/JITLoaderList.h"
0020 ///
0021 /// Class used by the Process to hold a list of its JITLoaders.
0022 class JITLoaderList {
0023 public:
0024   JITLoaderList();
0025   ~JITLoaderList();
0026 
0027   void Append(const lldb::JITLoaderSP &jit_loader_sp);
0028 
0029   void Remove(const lldb::JITLoaderSP &jit_loader_sp);
0030 
0031   size_t GetSize() const;
0032 
0033   lldb::JITLoaderSP GetLoaderAtIndex(size_t idx);
0034 
0035   void DidLaunch();
0036 
0037   void DidAttach();
0038 
0039   void ModulesDidLoad(ModuleList &module_list);
0040 
0041 private:
0042   std::vector<lldb::JITLoaderSP> m_jit_loaders_vec;
0043   std::recursive_mutex m_jit_loaders_mutex;
0044 };
0045 
0046 } // namespace lldb_private
0047 
0048 #endif // LLDB_TARGET_JITLOADERLIST_H