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 281 of file symtab.cpp.
References csdbg::symbol::addr(), likely, m_table, csdbg::symbol::name(), and unlikely.
Referenced by exists().
284 const symbol *sym =
m_table->at(i);
285 if (
unlikely(sym->addr() == addr) )
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
unsigned int u32
32-bit unsigned integer
chain< symbol > * m_table
Function symbol table.
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.