45 typedef std::multimap<Addr, std::string>
ATable;
46 typedef std::map<std::string, Addr>
STable;
73 bool load(
const std::string &file);
86 ATable::const_iterator
i =
addrTable.find(address);
103 address = (*i).second;
117 Addr &nextaddr)
const
119 ATable::const_iterator
i;
135 ATable::const_iterator
i;
149 ATable::const_iterator
i;
162 ATable::const_iterator
i;
178 #endif // __SYMTAB_HH__
bool findNearestSymbol(Addr addr, std::string &symbol, Addr &symaddr) const
Overload for findNearestSymbol() for callers who don't care about nextaddr.
const STable & getSymbolTable() const
bool findNearestAddr(Addr addr, Addr &symaddr) const
bool findAddress(const std::string &symbol, Addr &address) const
bool load(const std::string &file)
void serialize(const std::string &base, CheckpointOut &cp) const
bool upperBound(Addr addr, ATable::const_iterator &iter) const
const ATable & getAddrTable() const
std::map< std::string, Addr > STable
bool insert(Addr address, std::string symbol)
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::multimap< Addr, std::string > ATable
std::ostream CheckpointOut
SymbolTable * debugSymbolTable
Global unified debugging symbol table (for target).
bool findSymbol(Addr address, std::string &symbol) const
void unserialize(const std::string &base, CheckpointIn &cp)
bool findNearestSymbol(Addr addr, std::string &symbol, Addr &symaddr, Addr &nextaddr) const
Find the nearest symbol equal to or less than the supplied address (e.g., the label for the enclosing...
bool findNearestAddr(Addr addr, Addr &symaddr, Addr &nextaddr) const
SymbolTable(const std::string &file)