| 1567 | { |
| 1568 | if (!_pMem || local_sym_name.empty() || !local_sym_addr) |
| 1569 | return 0; |
| 1570 | |
| 1571 | ElfScanner r_lib{}; |
| 1572 | KittyMemoryEx::ProcMap l_lib{}; |
| 1573 | |
| 1574 | l_lib = KittyMemoryEx::getAddressMap(getpid(), local_sym_addr); |
| 1575 | if (l_lib.isValid()) |
| 1576 | r_lib = findElf(l_lib.pathname); |
| 1577 | |
| 1578 | if (!r_lib.isValid()) |
| 1579 | { |
| 1580 | KITTY_LOGD("KittyInjector: Failed to find %s, remote lib not found.", local_sym_name.c_str()); |
| 1581 | return 0; |
| 1582 | } |
| 1583 |