| 1542 | EScanElfFilter filter) |
| 1543 | #else |
| 1544 | std::vector<std::pair<uintptr_t, ElfScanner>> ElfScannerMgr::findSymbolAll(const std::string &symbolName) |
| 1545 | #endif |
| 1546 | { |
| 1547 | std::vector<std::pair<uintptr_t, ElfScanner>> ret{}; |
| 1548 | |
| 1549 | #ifdef __ANDROID__ |
| 1550 | auto elfs = getAllELFs(type, filter); |
| 1551 | #else |
| 1552 | auto elfs = getAllELFs(); |
| 1553 | #endif |
| 1554 | for (auto &it : elfs) |
| 1555 | { |
| 1556 | uintptr_t sym = it.findSymbol(symbolName); |
| 1557 | if (sym != 0) |
| 1558 | { |
| 1559 | ret.emplace_back(sym, it); |
| 1560 | } |
| 1561 | } |
| 1562 | |
| 1563 | return ret; |
| 1564 | } |
| 1565 | |
| 1566 | uintptr_t ElfScannerMgr::findRemoteSymbol(const std::string &local_sym_name, uintptr_t local_sym_addr) |
| 1567 | { |
| 1568 | if (!_pMem || local_sym_name.empty() || !local_sym_addr) |
| 1569 | return 0; |
| 1570 |
no test coverage detected