Lines Matching full:cu
37 Dwarf_CU cu; in dwarf_child() local
51 cu = die->die_cu; in dwarf_child()
52 ds = cu->cu_is_info ? dbg->dbg_info_sec : dbg->dbg_types_sec; in dwarf_child()
53 ret = _dwarf_die_parse(die->die_dbg, ds, cu, cu->cu_dwarf_size, in dwarf_child()
54 die->die_next_off, cu->cu_next_offset, ret_die, 0, error); in dwarf_child()
69 Dwarf_CU cu; in dwarf_siblingof_b() local
81 cu = is_info ? dbg->dbg_cu_current : dbg->dbg_tu_current; in dwarf_siblingof_b()
83 if (cu == NULL) { in dwarf_siblingof_b()
88 /* Application requests the first DIE in this CU. */ in dwarf_siblingof_b()
90 return (dwarf_offdie_b(dbg, cu->cu_1st_offset, is_info, in dwarf_siblingof_b()
116 offset = at->u[0].u64 + cu->cu_offset; in dwarf_siblingof_b()
125 ret = _dwarf_die_parse(die->die_dbg, ds, cu, cu->cu_dwarf_size, offset, in dwarf_siblingof_b()
126 cu->cu_next_offset, ret_die, search_sibling, error); in dwarf_siblingof_b()
147 _dwarf_search_die_within_cu(Dwarf_Debug dbg, Dwarf_Section *s, Dwarf_CU cu, in _dwarf_search_die_within_cu() argument
151 assert(dbg != NULL && cu != NULL && ret_die != NULL); in _dwarf_search_die_within_cu()
153 return (_dwarf_die_parse(dbg, s, cu, cu->cu_dwarf_size, in _dwarf_search_die_within_cu()
154 offset, cu->cu_next_offset, ret_die, 0, error)); in _dwarf_search_die_within_cu()
162 Dwarf_CU cu; in dwarf_offdie_b() local
171 cu = is_info ? dbg->dbg_cu_current : dbg->dbg_tu_current; in dwarf_offdie_b()
173 /* First search the current CU. */ in dwarf_offdie_b()
174 if (cu != NULL) { in dwarf_offdie_b()
175 if (offset > cu->cu_offset && offset < cu->cu_next_offset) { in dwarf_offdie_b()
176 ret = _dwarf_search_die_within_cu(dbg, ds, cu, offset, in dwarf_offdie_b()
193 STAILQ_FOREACH(cu, &dbg->dbg_cu, cu_next) { in dwarf_offdie_b()
194 if (offset < cu->cu_offset || in dwarf_offdie_b()
195 offset > cu->cu_next_offset) in dwarf_offdie_b()
197 ret = _dwarf_search_die_within_cu(dbg, ds, cu, offset, in dwarf_offdie_b()
207 STAILQ_FOREACH(cu, &dbg->dbg_tu, cu_next) { in dwarf_offdie_b()
208 if (offset < cu->cu_offset || in dwarf_offdie_b()
209 offset > cu->cu_next_offset) in dwarf_offdie_b()
211 ret = _dwarf_search_die_within_cu(dbg, ds, cu, offset, in dwarf_offdie_b()
274 Dwarf_CU cu; in dwarf_die_CU_offset() local
283 cu = die->die_cu; in dwarf_die_CU_offset()
284 assert(cu != NULL); in dwarf_die_CU_offset()
286 *ret_offset = die->die_offset - cu->cu_offset; in dwarf_die_CU_offset()
296 Dwarf_CU cu; in dwarf_die_CU_offset_range() local
305 cu = die->die_cu; in dwarf_die_CU_offset_range()
306 assert(cu != NULL); in dwarf_die_CU_offset_range()
308 *cu_offset = cu->cu_offset; in dwarf_die_CU_offset_range()
309 *cu_length = cu->cu_length + cu->cu_length_size; in dwarf_die_CU_offset_range()
350 Dwarf_CU cu; in dwarf_get_cu_die_offset_given_cu_header_offset_b() local
358 STAILQ_FOREACH(cu, &dbg->dbg_cu, cu_next) { in dwarf_get_cu_die_offset_given_cu_header_offset_b()
359 if (cu->cu_offset == in_cu_header_offset) { in dwarf_get_cu_die_offset_given_cu_header_offset_b()
360 *out_cu_die_offset = cu->cu_1st_offset; in dwarf_get_cu_die_offset_given_cu_header_offset_b()
365 STAILQ_FOREACH(cu, &dbg->dbg_tu, cu_next) { in dwarf_get_cu_die_offset_given_cu_header_offset_b()
366 if (cu->cu_offset == in_cu_header_offset) { in dwarf_get_cu_die_offset_given_cu_header_offset_b()
367 *out_cu_die_offset = cu->cu_1st_offset; in dwarf_get_cu_die_offset_given_cu_header_offset_b()
373 if (cu == NULL) { in dwarf_get_cu_die_offset_given_cu_header_offset_b()