• Home
  • Raw
  • Download

Lines Matching refs:mod

62 __libdwfl_module_free (Dwfl_Module *mod)  in __libdwfl_module_free()  argument
64 if (mod->lazy_cu_root != NULL) in __libdwfl_module_free()
65 tdestroy (mod->lazy_cu_root, nofree); in __libdwfl_module_free()
67 if (mod->aranges != NULL) in __libdwfl_module_free()
68 free (mod->aranges); in __libdwfl_module_free()
70 if (mod->cu != NULL) in __libdwfl_module_free()
72 for (size_t i = 0; i < mod->ncu; ++i) in __libdwfl_module_free()
73 free_cu (mod->cu[i]); in __libdwfl_module_free()
74 free (mod->cu); in __libdwfl_module_free()
79 if (mod->eh_cfi != NULL) in __libdwfl_module_free()
81 if (mod->eh_cfi->ebl != NULL && mod->eh_cfi->ebl == mod->ebl) in __libdwfl_module_free()
82 mod->eh_cfi->ebl = NULL; in __libdwfl_module_free()
83 dwarf_cfi_end (mod->eh_cfi); in __libdwfl_module_free()
86 if (mod->dwarf_cfi != NULL) in __libdwfl_module_free()
88 if (mod->dwarf_cfi->ebl != NULL && mod->dwarf_cfi->ebl == mod->ebl) in __libdwfl_module_free()
89 mod->dwarf_cfi->ebl = NULL; in __libdwfl_module_free()
94 if (mod->dw != NULL) in __libdwfl_module_free()
96 INTUSE(dwarf_end) (mod->dw); in __libdwfl_module_free()
97 if (mod->alt != NULL) in __libdwfl_module_free()
99 INTUSE(dwarf_end) (mod->alt); in __libdwfl_module_free()
100 if (mod->alt_elf != NULL) in __libdwfl_module_free()
101 elf_end (mod->alt_elf); in __libdwfl_module_free()
102 if (mod->alt_fd != -1) in __libdwfl_module_free()
103 close (mod->alt_fd); in __libdwfl_module_free()
107 if (mod->ebl != NULL) in __libdwfl_module_free()
108 ebl_closebackend (mod->ebl); in __libdwfl_module_free()
110 if (mod->debug.elf != mod->main.elf) in __libdwfl_module_free()
111 free_file (&mod->debug); in __libdwfl_module_free()
112 free_file (&mod->main); in __libdwfl_module_free()
113 free_file (&mod->aux_sym); in __libdwfl_module_free()
115 if (mod->build_id_bits != NULL) in __libdwfl_module_free()
116 free (mod->build_id_bits); in __libdwfl_module_free()
118 if (mod->reloc_info != NULL) in __libdwfl_module_free()
119 free (mod->reloc_info); in __libdwfl_module_free()
121 free (mod->name); in __libdwfl_module_free()
122 free (mod->elfdir); in __libdwfl_module_free()
123 free (mod); in __libdwfl_module_free()
148 use (Dwfl_Module *mod, Dwfl_Module **tailp, Dwfl *dwfl) in INTDEF()
150 mod->next = *tailp; in INTDEF()
151 *tailp = mod; in INTDEF()
159 return mod; in INTDEF()
187 Dwfl_Module *mod = calloc (1, sizeof *mod); in dwfl_report_module() local
188 if (mod == NULL) in dwfl_report_module()
191 mod->name = strdup (name); in dwfl_report_module()
192 if (mod->name == NULL) in dwfl_report_module()
194 free (mod); in dwfl_report_module()
200 mod->low_addr = start; in dwfl_report_module()
201 mod->high_addr = end; in dwfl_report_module()
202 mod->dwfl = dwfl; in dwfl_report_module()
204 return use (mod, tailp, dwfl); in dwfl_report_module()