Lines Matching refs:cu

78 		aranges[naranges].cu = NULL;  in addrarange()
136 struct dwfl_cu *cu = arg; in nofree() local
137 if (cu == (void *) -1l) in nofree()
140 assert (cu->mod->lazycu == 0); in nofree()
156 cudie_offset (const struct dwfl_cu *cu) in cudie_offset() argument
158 return __libdw_first_die_off_from_cu (cu->die.cu); in cudie_offset()
197 key.die.cu = die->cu; in intern_cu()
208 struct dwfl_cu *cu = malloc (sizeof *cu); in intern_cu() local
209 if (unlikely (cu == NULL)) in intern_cu()
212 cu->mod = mod; in intern_cu()
213 cu->next = NULL; in intern_cu()
214 cu->lines = NULL; in intern_cu()
215 cu->die = cudie; in intern_cu()
217 struct dwfl_cu **newvec = realloc (mod->cu, ((mod->ncu + 1) in intern_cu()
218 * sizeof (mod->cu[0]))); in intern_cu()
221 free (cu); in intern_cu()
224 mod->cu = newvec; in intern_cu()
226 mod->cu[mod->ncu++] = cu; in intern_cu()
227 if (cu->die.cu->start == 0) in intern_cu()
228 mod->first_cu = cu; in intern_cu()
230 *found = cu; in intern_cu()
243 struct dwfl_cu **cu) in __libdwfl_nextcu() argument
257 cuoff = lastcu->die.cu->end; in __libdwfl_nextcu()
271 *cu = NULL; in __libdwfl_nextcu()
284 *cu = *nextp == (void *) -1l ? NULL : *nextp; in __libdwfl_nextcu()
292 arangecu (Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu) in arangecu() argument
294 if (arange->cu == NULL) in arangecu()
297 Dwfl_Error result = intern_cu (mod, dwarange->offset, &arange->cu); in arangecu()
300 assert (arange->cu != NULL && arange->cu != (void *) -1l); in arangecu()
304 *cu = arange->cu; in arangecu()
310 __libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_cu **cu) in __libdwfl_addrcu() argument
313 return addrarange (mod, addr, &arange) ?: arangecu (mod, arange, cu); in __libdwfl_addrcu()