| 2533 | } |
| 2534 | |
| 2535 | bool ElfMemImage::LookupSymbol(const char* name, const char* version, int type, SymbolInfo* info_out) const { |
| 2536 | for (const SymbolInfo& info : *this) { |
| 2537 | if (strcmp(info.name, name) == 0 && strcmp(info.version, version) == 0 && ElfType(info.symbol) == type) { |
| 2538 | if (info_out) { |
| 2539 | *info_out = info; |
| 2540 | } |
| 2541 | return true; |
| 2542 | } |
| 2543 | } |
| 2544 | return false; |
| 2545 | } |
| 2546 | |
| 2547 | bool ElfMemImage::LookupSymbolByAddress(const void* address, SymbolInfo* info_out) const { |
| 2548 | for (const SymbolInfo& info : *this) { |