13static std::string_view
BaseName(std::string_view path)
15 const size_t slash = path.rfind(
'/');
16 return slash == std::string_view::npos ? path : path.substr(
slash + 1);
39 for (
int i = 0;
i <
info->dlpi_phnum; ++
i)
65 if (
scan.Ranges.empty())
70 module = std::move(scan.Module);
bool FindModuleAndRanges(std::string_view fileName, Image &module, std::vector< ScanRange > &ranges)
static std::string ReadFile(const std::filesystem::path &path)
static std::string_view BaseName(std::string_view path)
static int DlIterateCallback(struct dl_phdr_info *info, size_t, void *data)
std::vector< ScanRange > Ranges