Lines Matching refs:cu
400 #define ISV4TU(cu) ((cu)->version == 4 && (cu)->sec_idx == IDX_debug_types)
465 __libdw_first_die_off_from_cu (struct Dwarf_CU *cu)
467 return __libdw_first_die_from_cu_start (cu->start,
468 cu->offset_size,
469 cu->version,
470 cu->unit_type);
476 .cu = (fromcu), \
484 .cu = (fromcu), \
664 extern struct Dwarf_CU *__libdw_find_split_unit (Dwarf_CU *cu)
668 extern Dwarf_Abbrev *__libdw_findabbrev (struct Dwarf_CU *cu,
673 extern Dwarf_Abbrev *__libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu,
690 if (unlikely (die->cu == NULL
691 || addr >= (const unsigned char *) die->cu->endp))
693 get_uleb128 (code, addr, die->cu->endp);
699 die->abbrev = __libdw_findabbrev (die->cu, code);
705 extern size_t __libdw_form_val_compute_len (struct Dwarf_CU *cu,
713 __libdw_form_val_len (struct Dwarf_CU *cu, unsigned int form,
747 const unsigned char *endp = cu->endp;
759 return __libdw_form_val_compute_len (cu, form, valp);
954 cu_sec_idx (struct Dwarf_CU *cu)
956 return cu->sec_idx;
962 return cudie->cu != NULL && CUDIE (cudie->cu).addr == cudie->addr;
970 int __libdw_read_begin_end_pair_inc (Dwarf_CU *cu, int sec_index,
1004 Dwarf_Addr __libdw_cu_base_address (Dwarf_CU *cu);
1008 __libdw_cu_addr_base (Dwarf_CU *cu)
1010 if (cu->addr_base == (Dwarf_Off) -1)
1012 Dwarf_Die cu_die = CUDIE(cu);
1022 cu->addr_base = offset;
1025 return cu->addr_base;
1031 str_offsets_base_off (Dwarf *dbg, Dwarf_CU *cu)
1036 a cu and str_offsets_base attribute, just use that. Otherwise
1041 if (cu == NULL && dbg != NULL)
1046 cu = first_cu;
1049 if (cu != NULL)
1051 if (cu->str_off_base == (Dwarf_Off) -1)
1053 Dwarf_Die cu_die = CUDIE(cu);
1060 cu->str_off_base = off;
1061 return cu->str_off_base;
1065 if (cu->version < 5)
1067 cu->str_off_base = 0;
1068 return cu->str_off_base;
1072 dbg = cu->dbg;
1075 return cu->str_off_base;
1125 if (cu != NULL)
1126 cu->str_off_base = off;
1133 static inline Dwarf_Off __libdw_cu_str_off_base (Dwarf_CU *cu)
1135 return str_offsets_base_off (NULL, cu);
1142 __libdw_cu_ranges_base (Dwarf_CU *cu)
1144 if (cu->ranges_base == (Dwarf_Off) -1)
1147 Dwarf_Die cu_die = CUDIE(cu);
1149 if (cu->version < 5)
1170 Elf_Data *data = cu->dbg->sectiondata[IDX_debug_rnglists];
1173 Dwarf *dbg = cu->dbg;
1222 cu->ranges_base = offset;
1225 return cu->ranges_base;
1231 __libdw_cu_locs_base (Dwarf_CU *cu)
1233 if (cu->locs_base == (Dwarf_Off) -1)
1236 Dwarf_Die cu_die = CUDIE(cu);
1248 Elf_Data *data = cu->dbg->sectiondata[IDX_debug_loclists];
1251 Dwarf *dbg = cu->dbg;
1300 cu->locs_base = offset;
1303 return cu->locs_base;
1317 We also need it for the fake addr cu.
1334 int __libdw_addrx (Dwarf_CU *cu, Dwarf_Word idx, Dwarf_Addr *addr);