• Home
  • Raw
  • Download

Lines Matching refs:mod

63 __libdwfl_module_free (Dwfl_Module *mod)  in __libdwfl_module_free()  argument
65 if (mod->lazy_cu_root != NULL) in __libdwfl_module_free()
66 tdestroy (mod->lazy_cu_root, nofree); in __libdwfl_module_free()
68 if (mod->aranges != NULL) in __libdwfl_module_free()
69 free (mod->aranges); in __libdwfl_module_free()
71 if (mod->cu != NULL) in __libdwfl_module_free()
73 for (size_t i = 0; i < mod->ncu; ++i) in __libdwfl_module_free()
74 free_cu (mod->cu[i]); in __libdwfl_module_free()
75 free (mod->cu); in __libdwfl_module_free()
80 if (mod->eh_cfi != NULL) in __libdwfl_module_free()
82 if (mod->eh_cfi->ebl != NULL && mod->eh_cfi->ebl == mod->ebl) in __libdwfl_module_free()
83 mod->eh_cfi->ebl = NULL; in __libdwfl_module_free()
84 dwarf_cfi_end (mod->eh_cfi); in __libdwfl_module_free()
87 if (mod->dwarf_cfi != NULL) in __libdwfl_module_free()
89 if (mod->dwarf_cfi->ebl != NULL && mod->dwarf_cfi->ebl == mod->ebl) in __libdwfl_module_free()
90 mod->dwarf_cfi->ebl = NULL; in __libdwfl_module_free()
95 if (mod->dw != NULL) in __libdwfl_module_free()
97 INTUSE(dwarf_end) (mod->dw); in __libdwfl_module_free()
98 if (mod->alt != NULL) in __libdwfl_module_free()
100 INTUSE(dwarf_end) (mod->alt); in __libdwfl_module_free()
101 if (mod->alt_elf != NULL) in __libdwfl_module_free()
102 elf_end (mod->alt_elf); in __libdwfl_module_free()
103 if (mod->alt_fd != -1) in __libdwfl_module_free()
104 close (mod->alt_fd); in __libdwfl_module_free()
108 if (mod->ebl != NULL) in __libdwfl_module_free()
109 ebl_closebackend (mod->ebl); in __libdwfl_module_free()
111 if (mod->debug.elf != mod->main.elf) in __libdwfl_module_free()
112 free_file (&mod->debug); in __libdwfl_module_free()
113 free_file (&mod->main); in __libdwfl_module_free()
114 free_file (&mod->aux_sym); in __libdwfl_module_free()
116 if (mod->build_id_bits != NULL) in __libdwfl_module_free()
117 free (mod->build_id_bits); in __libdwfl_module_free()
119 if (mod->reloc_info != NULL) in __libdwfl_module_free()
120 free (mod->reloc_info); in __libdwfl_module_free()
122 free (mod->name); in __libdwfl_module_free()
123 free (mod->elfdir); in __libdwfl_module_free()
124 free (mod); in __libdwfl_module_free()
149 use (Dwfl_Module *mod, Dwfl_Module **tailp, Dwfl *dwfl) in INTDEF()
151 mod->next = *tailp; in INTDEF()
152 *tailp = mod; in INTDEF()
160 return mod; in INTDEF()
188 Dwfl_Module *mod = calloc (1, sizeof *mod); in dwfl_report_module() local
189 if (mod == NULL) in dwfl_report_module()
192 mod->name = strdup (name); in dwfl_report_module()
193 if (mod->name == NULL) in dwfl_report_module()
195 free (mod); in dwfl_report_module()
201 mod->low_addr = start; in dwfl_report_module()
202 mod->high_addr = end; in dwfl_report_module()
203 mod->dwfl = dwfl; in dwfl_report_module()
205 return use (mod, tailp, dwfl); in dwfl_report_module()