Lines Matching refs:mod
86 validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc) in validate() argument
89 if (mod->dw != NULL) in validate()
94 ssize_t build_id_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw, in validate()
102 Dwfl_Error error = __libdw_open_file (&fd, &mod->alt_elf, in validate()
109 ssize_t alt_len = INTUSE(dwelf_elf_gnu_build_id) (mod->alt_elf, in validate()
117 elf_end (mod->alt_elf); in validate()
118 mod->alt_elf = NULL; in validate()
128 if (mod->build_id_len > 0) in validate()
134 mod->debug.valid = false; in validate()
135 Dwfl_Error error = __libdw_open_file (&fd, &mod->debug.elf, false, false); in validate()
138 else if (likely (__libdwfl_find_build_id (mod, false, in validate()
139 mod->debug.elf) == 2)) in validate()
141 mod->debug.valid = true; in validate()
145 elf_end (mod->debug.elf); in validate()
146 mod->debug.elf = NULL; in validate()
151 return mod->debug.valid; in validate()
158 find_debuginfo_in_path (Dwfl_Module *mod, const char *file_name, in find_debuginfo_in_path() argument
170 if (file_basename == NULL || mod->dw != NULL) in find_debuginfo_in_path()
189 const Dwfl_Callbacks *const cb = mod->dwfl->callbacks; in find_debuginfo_in_path()
209 if (unlikely ((mod->main.fd != -1 ? fstat (mod->main.fd, &main_stat) in find_debuginfo_in_path()
249 if (mod->dw == NULL in find_debuginfo_in_path()
253 if (mod->dw == NULL) in find_debuginfo_in_path()
290 if (mod->dw != NULL && (p[0] == '\0' || p[0] == '/')) in find_debuginfo_in_path()
304 if (mod->dw == NULL && subdir) in find_debuginfo_in_path()
310 if (validate (mod, fd, check, debuglink_crc)) in find_debuginfo_in_path()
332 dwfl_standard_find_debuginfo (Dwfl_Module *mod, in dwfl_standard_find_debuginfo() argument
345 if (INTUSE(dwfl_module_build_id) (mod, &bits, &vaddr) > 0) in dwfl_standard_find_debuginfo()
351 int fd = INTUSE(dwfl_build_id_find_debuginfo) (mod, in dwfl_standard_find_debuginfo()
359 || (mod->dw == NULL && mod->debug.elf != NULL) in dwfl_standard_find_debuginfo()
360 || (mod->dw != NULL && mod->alt_elf != NULL) in dwfl_standard_find_debuginfo()
366 int fd = find_debuginfo_in_path (mod, file_name, in dwfl_standard_find_debuginfo()
377 fd = find_debuginfo_in_path (mod, canon, in dwfl_standard_find_debuginfo()