• Home
  • Raw
  • Download

Lines Matching refs:mod

79 __libdwfl_module_free (Dwfl_Module *mod)  in __libdwfl_module_free()  argument
81 if (mod->lazy_cu_root != NULL) in __libdwfl_module_free()
82 tdestroy (mod->lazy_cu_root, nofree); in __libdwfl_module_free()
84 if (mod->aranges != NULL) in __libdwfl_module_free()
85 free (mod->aranges); in __libdwfl_module_free()
87 if (mod->cu != NULL) in __libdwfl_module_free()
89 for (size_t i = 0; i < mod->ncu; ++i) in __libdwfl_module_free()
90 free_cu (mod->cu[i]); in __libdwfl_module_free()
91 free (mod->cu); in __libdwfl_module_free()
94 if (mod->dw != NULL) in __libdwfl_module_free()
95 INTUSE(dwarf_end) (mod->dw); in __libdwfl_module_free()
97 if (mod->ebl != NULL) in __libdwfl_module_free()
98 ebl_closebackend (mod->ebl); in __libdwfl_module_free()
100 if (mod->debug.elf != mod->main.elf) in __libdwfl_module_free()
101 free_file (&mod->debug); in __libdwfl_module_free()
102 free_file (&mod->main); in __libdwfl_module_free()
104 if (mod->build_id_bits != NULL) in __libdwfl_module_free()
105 free (mod->build_id_bits); in __libdwfl_module_free()
107 free (mod->name); in __libdwfl_module_free()
108 free (mod); in __libdwfl_module_free()
141 inline Dwfl_Module *use (Dwfl_Module *mod) in INTDEF()
143 mod->next = *tailp; in INTDEF()
144 *tailp = mod; in INTDEF()
152 return mod; in INTDEF()
171 Dwfl_Module *mod = calloc (1, sizeof *mod); in INTDEF() local
172 if (mod == NULL) in INTDEF()
175 mod->name = strdup (name); in INTDEF()
176 if (mod->name == NULL) in INTDEF()
178 free (mod); in INTDEF()
184 mod->low_addr = start; in INTDEF()
185 mod->high_addr = end; in INTDEF()
186 mod->dwfl = dwfl; in INTDEF()
188 return use (mod); in INTDEF()