public AbsoluteAddress getAddressForSymbol(String symbol) { for (ExecutableImage module : modules) { AbsoluteAddress a = module.getSymbolFinder().getAddressFor(symbol); if (a != null) return a; } logger.error("Could not find address for symbol \"" + symbol + "\""); return null; }
private SymbolFinder symbolFinder(AbsoluteAddress addr) { if (isStub(addr)) return stubLibrary.getSymbolFinder(); ExecutableImage module = getModule(addr); return (module == null) ? DummySymbolFinder.getInstance() : module.getSymbolFinder(); }