Symbol
Looking up addresses for function names / symbols, and vice-versa.
DOMAIN_MAPPING = {Domain.ANY: gdb.SYMBOL_VAR_DOMAIN, Domain.VARIABLE: gdb.SYMBOL_VAR_DOMAIN, Domain.FUNCTION: gdb.SYMBOL_FUNCTION_DOMAIN}
module-attribute
¶
order_prefs = {True: (_global_static_symbol_to_address, _global_exported_symbol_to_address), False: (_global_exported_symbol_to_address, _global_static_symbol_to_address)}
module-attribute
¶
skipped_exceptions = ('No frame selected', 'Cannot find thread-local')
module-attribute
¶
Domain
¶
lookup_frame_symbol(name, *, domain=Domain.ANY)
¶
Get the address for local symbol
from frame, in most time you don't need it
lookup_symbol(name, *, prefer_static=False, domain=Domain.ANY, objfile_endswith=None)
¶
Get the address for symbol
resolve_addr(address)
¶
Retrieve the name for the symbol located at address
Empty string if no symbol