class SymbolContext
Defined at line 19 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
Addresses in symbols are interpreted in terms of relative offsets from the beginning of the
module. When a module is loaded into memory, it has a physical address, and all symbol addresses
need to be offset to convert back and forth between physical and symbolic addresses.
This class holds the load information for converting between these two address types.
Public Methods
AddressRange RelativeToAbsolute (const AddressRange & relative)
AddressRange conversion.
Defined at line 9 of file ../../src/developer/debug/zxdb/symbols/symbol_context.cc
AddressRange AbsoluteToRelative (const AddressRange & absolute)
Defined at line 13 of file ../../src/developer/debug/zxdb/symbols/symbol_context.cc
AddressRanges RelativeToAbsolute (const AddressRanges & relative)
AddressRanges conversion.
Defined at line 17 of file ../../src/developer/debug/zxdb/symbols/symbol_context.cc
SymbolContext ForRelativeAddresses ()
Creates a symbol context has no offset. Using it will return addresses relative to the module.
This can be useful for testing and for resolving which symbols might be available even when no
program is running.
Defined at line 24 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
void SymbolContext (uint64_t load_address)
Defined at line 26 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
AddressRanges AbsoluteToRelative (const AddressRanges & absolute)
Defined at line 27 of file ../../src/developer/debug/zxdb/symbols/symbol_context.cc
bool is_relative ()
Returns true if this is a relative symbol context. Relative contexts do not have a real
loaded module associated with them and addresses will be unchanged between relative and
absolute.
Defined at line 31 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
uint64_t load_address ()
Defined at line 33 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
bool operator== (const SymbolContext & other)
Defined at line 35 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
bool operator!= (const SymbolContext & other)
Defined at line 36 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
uint64_t RelativeToAbsolute (uint64_t relative)
Address conversion.
Defined at line 39 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h
uint64_t AbsoluteToRelative (uint64_t absolute)
Defined at line 40 of file ../../src/developer/debug/zxdb/symbols/symbol_context.h