Lines Matching refs:cu

74 		aranges[naranges].cu = NULL;  in addrarange()
132 struct dwfl_cu *cu = arg; in nofree() local
133 if (cu == (void *) -1l) in nofree()
136 assert (cu->mod->lazycu == 0); in nofree()
152 cudie_offset (const struct dwfl_cu *cu) in cudie_offset() argument
158 return DIE_OFFSET_FROM_CU_OFFSET (cu->die.cu->start, cu->die.cu->offset_size, in cudie_offset()
199 key.die.cu = &dwkey; in intern_cu()
212 struct dwfl_cu *cu = malloc (sizeof *cu); in intern_cu() local
213 if (unlikely (cu == NULL)) in intern_cu()
216 cu->mod = mod; in intern_cu()
217 cu->next = NULL; in intern_cu()
218 cu->lines = NULL; in intern_cu()
219 cu->die = cudie; in intern_cu()
221 struct dwfl_cu **newvec = realloc (mod->cu, ((mod->ncu + 1) in intern_cu()
222 * sizeof (mod->cu[0]))); in intern_cu()
225 free (cu); in intern_cu()
228 mod->cu = newvec; in intern_cu()
230 mod->cu[mod->ncu++] = cu; in intern_cu()
231 if (cu->die.cu->start == 0) in intern_cu()
232 mod->first_cu = cu; in intern_cu()
234 *found = cu; in intern_cu()
247 struct dwfl_cu **cu) in __libdwfl_nextcu() argument
261 cuoff = lastcu->die.cu->end; in __libdwfl_nextcu()
275 *cu = NULL; in __libdwfl_nextcu()
288 *cu = *nextp == (void *) -1l ? NULL : *nextp; in __libdwfl_nextcu()
296 arangecu (Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu) in arangecu() argument
298 if (arange->cu == NULL) in arangecu()
301 Dwfl_Error result = intern_cu (mod, dwarange->offset, &arange->cu); in arangecu()
304 assert (arange->cu != NULL && arange->cu != (void *) -1l); in arangecu()
308 *cu = arange->cu; in arangecu()
314 __libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_cu **cu) in __libdwfl_addrcu() argument
317 return addrarange (mod, addr, &arange) ?: arangecu (mod, arange, cu); in __libdwfl_addrcu()