Lines Matching refs:mod
60 dwfl_offline_section_address (Dwfl_Module *mod,
69 assert (mod->e_type == ET_REL);
73 if (mod->debug.elf == NULL)
81 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx);
84 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn)
96 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
150 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf,
152 if (mod != NULL)
160 if ((dwfl->offline_next_address >= mod->low_addr
161 || mod->low_addr - dwfl->offline_next_address < OFFLINE_REDZONE)
162 && dwfl->offline_next_address < mod->high_addr + OFFLINE_REDZONE)
163 dwfl->offline_next_address = mod->high_addr + OFFLINE_REDZONE;
166 if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0)
168 close (mod->main.fd);
169 mod->main.fd = -1;
173 return mod;
177 For errors returns ELF_C_NULL with *MOD set to null. */
181 int fd, Elf *member, Dwfl_Module **mod)
189 *mod = NULL;
208 *mod = NULL;
240 /* We let __libdwfl_report_elf cache the fd in mod->main.fd,
243 *mod = process_file (dwfl, name, member_name, fd, member, predicate);
247 if (*mod == NULL) /* process_file called elf_end. */
261 Dwfl_Module *mod = NULL;
270 fd, member, &mod) != ELF_C_NULL)
277 if (mod != NULL /* If no modules, caller will clean up. */
281 return mod;
292 Dwfl_Module *mod = process_file (dwfl, name, file_name, fd, elf, predicate);
293 if (mod == NULL)
299 return mod;