diff options
Diffstat (limited to 'base/loader/symtab.cc')
-rw-r--r-- | base/loader/symtab.cc | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/base/loader/symtab.cc b/base/loader/symtab.cc index 98dad01c1..e4590ac62 100644 --- a/base/loader/symtab.cc +++ b/base/loader/symtab.cc @@ -95,44 +95,3 @@ SymbolTable::load(const string &filename) return true; } - -bool -SymbolTable::findNearestSymbol(Addr address, string &symbol, - Addr &sym_address, Addr &next_sym_address) const -{ - // find first key *larger* than desired address - ATable::const_iterator i = addrTable.upper_bound(address); - - // if very first key is larger, we're out of luck - if (i == addrTable.begin()) - return false; - - next_sym_address = i->first; - --i; - sym_address = i->first; - symbol = i->second; - - return true; -} - -bool -SymbolTable::findSymbol(Addr address, string &symbol) const -{ - ATable::const_iterator i = addrTable.find(address); - if (i == addrTable.end()) - return false; - - symbol = (*i).second; - return true; -} - -bool -SymbolTable::findAddress(const string &symbol, Addr &address) const -{ - STable::const_iterator i = symbolTable.find(symbol); - if (i == symbolTable.end()) - return false; - - address = (*i).second; - return true; -} |