21 std::optional<uint64_t> byte_size =
m_frozen_sp->GetByteSize();
22 if (byte_size && *byte_size) {
23 if (
m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) {
27 return const_cast<uint8_t *
>(
45 lldb::IRExecutionUnitSP &execution_unit_sp) {
50 LLDB_LOGF(log,
"Registering JITted Functions:\n");
53 execution_unit_sp->GetJittedFunctions()) {
54 if (jitted_function.m_external &&
55 jitted_function.m_name != execution_unit_sp->GetFunctionName() &&
58 jitted_function.m_remote_addr;
59 LLDB_LOGF(log,
" Function: %s at 0x%" PRIx64
".",
60 jitted_function.m_name.GetCString(),
61 jitted_function.m_remote_addr);
65 LLDB_LOGF(log,
"Registering JIIted Symbols:\n");
68 execution_unit_sp->GetJittedGlobalVariables()) {
73 Mangled mangler(global_var.m_name);
74 mangler.GetDemangledName();
75 m_symbol_map[global_var.m_name.GetCString()] = global_var.m_remote_addr;
76 LLDB_LOGF(log,
" Symbol: %s at 0x%" PRIx64
".",
77 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.
virtual ~ExpressionVariable()
uint8_t * GetValueBytes()
lldb::ValueObjectSP m_frozen_sp
void RegisterExecutionUnit(lldb::IRExecutionUnitSP &execution_unit_sp)
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.
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.
"lldb/Expression/IRExecutionUnit.h" Encapsulates a single function that has been generated by the JIT...