23 std::optional<uint64_t> byte_size =
m_frozen_sp->GetByteSize();
24 if (byte_size && *byte_size) {
25 if (
m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) {
29 return const_cast<uint8_t *
>(
56 LLDB_LOGF(log,
"Registering JITted Functions:\n");
59 execution_unit_sp->GetJittedFunctions()) {
60 if (jitted_function.m_external &&
61 jitted_function.m_name != execution_unit_sp->GetFunctionName() &&
64 jitted_function.m_remote_addr;
65 LLDB_LOGF(log,
" Function: %s at 0x%" PRIx64
".",
66 jitted_function.m_name.GetCString(),
67 jitted_function.m_remote_addr);
71 LLDB_LOGF(log,
"Registering JIIted Symbols:\n");
74 execution_unit_sp->GetJittedGlobalVariables()) {
79 Mangled mangler(global_var.m_name);
81 m_symbol_map[global_var.m_name.GetCString()] = global_var.m_remote_addr;
82 LLDB_LOGF(log,
" Symbol: %s at 0x%" PRIx64
".",
83 global_var.m_name.GetCString(), global_var.m_remote_addr);
#define LLDB_LOGF(log,...)
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
uint8_t * GetValueBytes()
lldb::ValueObjectSP m_frozen_sp
static char ID
LLVM RTTI support.
A class that handles mangled names.
ConstString GetDemangledName() const
Demangled name get accessor.
void RegisterExecutionUnit(lldb::IRExecutionUnitSP &execution_unit_sp)
static char ID
LLVM RTTI support.
ExecutionUnitSet m_execution_units
The execution units that contain valuable symbols.
virtual ~PersistentExpressionState()
SymbolMap m_symbol_map
The addresses of the symbols in m_execution_units.
PersistentExpressionState()
virtual lldb::addr_t LookupSymbol(ConstString name)
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
std::shared_ptr< lldb_private::IRExecutionUnit > IRExecutionUnitSP
"lldb/Expression/IRExecutionUnit.h" Encapsulates a single function that has been generated by the JIT...