LLVM  15.0.0git
Classes | Macros | Enumerations | Functions | Variables
JITLoaderGDB.cpp File Reference
#include "llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h"
#include "llvm/ExecutionEngine/JITSymbol.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/ManagedStatic.h"
#include <cstdint>
#include <mutex>
#include <utility>
Include dependency graph for JITLoaderGDB.cpp:

Go to the source code of this file.

Classes

struct  jit_code_entry
 
struct  jit_descriptor
 

Macros

#define DEBUG_TYPE   "orc"
 

Enumerations

enum  jit_actions_t {
  JIT_NOACTION = 0, JIT_REGISTER_FN, JIT_UNREGISTER_FN, JIT_NOACTION = 0,
  JIT_REGISTER_FN, JIT_UNREGISTER_FN
}
 

Functions

LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code ()
 
static void registerJITLoaderGDBImpl (const char *ObjAddr, size_t Size)
 
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction (const char *Data, size_t Size)
 
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper (const char *Data, uint64_t Size)
 

Variables

static constexpr uint32_t JitDescriptorVersion = 1
 
struct jit_descriptor __jit_debug_descriptor
 
ManagedStatic< std::mutex > JITDebugLock
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "orc"

Definition at line 20 of file JITLoaderGDB.cpp.

Enumeration Type Documentation

◆ jit_actions_t

Enumerator
JIT_NOACTION 
JIT_REGISTER_FN 
JIT_UNREGISTER_FN 
JIT_NOACTION 
JIT_REGISTER_FN 
JIT_UNREGISTER_FN 

Definition at line 28 of file JITLoaderGDB.cpp.

Function Documentation

◆ __jit_debug_register_code()

LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code ( )

Definition at line 58 of file JITLoaderGDB.cpp.

Referenced by registerJITLoaderGDBImpl().

◆ llvm_orc_registerJITLoaderGDBAllocAction()

orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction ( const char *  Data,
size_t  Size 
)

◆ llvm_orc_registerJITLoaderGDBWrapper()

orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper ( const char *  Data,
uint64_t  Size 
)

◆ registerJITLoaderGDBImpl()

static void registerJITLoaderGDBImpl ( const char *  ObjAddr,
size_t  Size 
)
static

Variable Documentation

◆ __jit_debug_descriptor

struct jit_descriptor __jit_debug_descriptor
Initial value:
nullptr, nullptr}

Definition at line 53 of file JITLoaderGDB.cpp.

Referenced by registerJITLoaderGDBImpl().

◆ JITDebugLock

ManagedStatic<std::mutex> JITDebugLock

Definition at line 71 of file JITLoaderGDB.cpp.

Referenced by registerJITLoaderGDBImpl().

◆ JitDescriptorVersion

constexpr uint32_t JitDescriptorVersion = 1
staticconstexpr

Definition at line 23 of file JITLoaderGDB.cpp.

JitDescriptorVersion
static constexpr uint32_t JitDescriptorVersion
Definition: JITLoaderGDB.cpp:23