Lookup an address to resolve a symbol.
- Parameters
-
- Returns
- the demangled symbol or NULL if the address is unresolved
- Note
- If demangling failed upon symbol table loading/parsing the decorated symbol is returned
Definition at line 266 of file process.cpp.
References cache_add(), cache_lookup(), likely, m_modules, csdbg::symbol::name(), and unlikely.
Referenced by csdbg::__cyg_profile_func_enter(), and csdbg::__cyg_profile_func_exit().
269 if (
likely(sym != NULL) )
chain< symtab > * m_modules
Symbol table list.
char i8
8-bit signed integer
virtual process & cache_add(mem_addr_t, const i8 *)
Add a symbol to the lookup cache.
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
unsigned int u32
32-bit unsigned integer
virtual const symbol * cache_lookup(mem_addr_t) const
Perform a cache lookup.
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.