LLVM  13.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/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 std::pair< const char *, uint64_t > readDebugObjectInfo (uint8_t *ArgData, uint64_t ArgSize)
 
orc::tpctypes::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper (uint8_t *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 19 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 27 of file JITLoaderGDB.cpp.

Function Documentation

◆ __jit_debug_register_code()

LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code ( )

Definition at line 57 of file JITLoaderGDB.cpp.

Referenced by llvm_orc_registerJITLoaderGDBWrapper().

◆ llvm_orc_registerJITLoaderGDBWrapper()

orc::tpctypes::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper ( uint8_t *  Data,
uint64_t  Size 
)

◆ readDebugObjectInfo()

static std::pair<const char *, uint64_t> readDebugObjectInfo ( uint8_t *  ArgData,
uint64_t  ArgSize 
)
static

Variable Documentation

◆ __jit_debug_descriptor

struct jit_descriptor __jit_debug_descriptor
Initial value:
nullptr, nullptr}

Definition at line 52 of file JITLoaderGDB.cpp.

Referenced by llvm_orc_registerJITLoaderGDBWrapper().

◆ JITDebugLock

ManagedStatic<std::mutex> JITDebugLock

Definition at line 69 of file JITLoaderGDB.cpp.

Referenced by llvm_orc_registerJITLoaderGDBWrapper().

◆ JitDescriptorVersion

constexpr uint32_t JitDescriptorVersion = 1
staticconstexpr

Definition at line 22 of file JITLoaderGDB.cpp.

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