Lines Matching refs:mod
44 dwfl_offline_section_address (Dwfl_Module *mod,
53 assert (mod->e_type == ET_REL);
58 if (mod->debug.elf == NULL)
66 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx);
69 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn)
81 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
135 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf,
138 if (mod != NULL)
146 if ((dwfl->offline_next_address >= mod->low_addr
147 || mod->low_addr - dwfl->offline_next_address < OFFLINE_REDZONE)
148 && dwfl->offline_next_address < mod->high_addr + OFFLINE_REDZONE)
149 dwfl->offline_next_address = mod->high_addr + OFFLINE_REDZONE;
152 if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0)
156 mod->elfdir = __libdw_debugdir (mod->main.fd);
157 close (mod->main.fd);
158 mod->main.fd = -1;
162 return mod;
170 int fd, Elf *member, Dwfl_Module **mod)
178 *mod = NULL;
198 *mod = NULL;
230 /* We let __libdwfl_report_elf cache the fd in mod->main.fd,
233 *mod = process_file (dwfl, name, member_name, fd, member, predicate);
237 if (*mod == NULL)
254 Dwfl_Module *mod = NULL;
264 fd, member, &mod) != ELF_C_NULL)
271 if (mod != NULL /* If no modules, caller will clean up. */
275 return mod;
292 Dwfl_Module *mod = process_file (dwfl, name, file_name, fd, elf, predicate);
293 if (mod == NULL)
299 return mod;
342 Dwfl_Module *mod = process_file (dwfl, name, file_name, -1, elf, NULL);
343 if (mod == NULL)
345 return mod;