| 1293 | EScanElfFilter filter) |
| 1294 | #else |
| 1295 | std::vector<std::pair<uintptr_t, ElfScanner>> ElfScannerMgr::findSymbolAll(const std::string &symbolName) |
| 1296 | #endif |
| 1297 | { |
| 1298 | std::vector<std::pair<uintptr_t, ElfScanner>> ret{}; |
| 1299 | |
| 1300 | #ifdef __ANDROID__ |
| 1301 | auto elfs = getAllELFs(type, filter); |
| 1302 | #else |
| 1303 | auto elfs = getAllELFs(); |
| 1304 | #endif |
| 1305 | for (auto &it : elfs) |
| 1306 | { |
| 1307 | uintptr_t sym = it.findSymbol(symbolName); |
| 1308 | if (sym != 0) |
| 1309 | { |
| 1310 | ret.emplace_back(sym, it); |
| 1311 | } |
| 1312 | } |
| 1313 | |
| 1314 | return ret; |
| 1315 | } |
| 1316 | |
| 1317 | uintptr_t ElfScannerMgr::findRemoteSymbol(const std::string &local_sym_name, uintptr_t local_sym_addr) |
| 1318 | { |
no test coverage detected