| 521 | } |
| 522 | |
| 523 | uintptr_t |
| 524 | getLoadPointOfModule(const dwfl_unique_ptr& dwfl, const std::string& mod) |
| 525 | { |
| 526 | LOG(DEBUG) << "Finding load point of binary " << mod; |
| 527 | auto args = std::pair<uintptr_t, const std::string&>(0, mod); |
| 528 | if (dwfl_getmodules(dwfl.get(), module_callback, &args, 0) == -1) { |
| 529 | LOG(ERROR) << "Failed to obtain load point of binary " << mod; |
| 530 | return 0; |
| 531 | } |
| 532 | LOG(DEBUG) << "Load point of module found at " << std::hex << std::showbase << args.first; |
| 533 | return args.first; |
| 534 | } |
| 535 | |
| 536 | std::string |
| 537 | buildIdPtrToString(const uint8_t* id, ssize_t size) |
no test coverage detected