Lines Matching refs:cu
78 aranges[naranges].cu = NULL;
139 struct dwfl_cu *cu = arg;
140 if (cu == (void *) -1l)
143 assert (cu->mod->lazycu == 0);
159 cudie_offset (const struct dwfl_cu *cu)
161 return __libdw_first_die_off_from_cu (cu->die.cu);
200 key.die.cu = die->cu;
211 struct dwfl_cu *cu = malloc (sizeof *cu);
212 if (unlikely (cu == NULL))
215 cu->mod = mod;
216 cu->next = NULL;
217 cu->lines = NULL;
218 cu->die = cudie;
220 struct dwfl_cu **newvec = realloc (mod->cu, ((mod->ncu + 1)
221 * sizeof (mod->cu[0])));
224 free (cu);
227 mod->cu = newvec;
229 mod->cu[mod->ncu++] = cu;
230 if (cu->die.cu->start == 0)
231 mod->first_cu = cu;
233 *found = cu;
246 struct dwfl_cu **cu)
260 cuoff = lastcu->die.cu->end;
274 *cu = NULL;
287 *cu = *nextp == (void *) -1l ? NULL : *nextp;
295 arangecu (Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu)
297 if (arange->cu == NULL)
300 Dwfl_Error result = intern_cu (mod, dwarange->offset, &arange->cu);
303 assert (arange->cu != NULL && arange->cu != (void *) -1l);
304 less_lazy (mod); /* Each arange with null ->cu counts once. */
307 *cu = arange->cu;
313 __libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_cu **cu)
316 return addrarange (mod, addr, &arange) ?: arangecu (mod, arange, cu);