/external/elfutils/libdw/ |
D | dwarf_formref_die.c | 44 struct Dwarf_CU *cu = attr->cu; in dwarf_formref_die() local 51 uint8_t ref_size = (cu->version == 2 && attr->form == DW_FORM_ref_addr in dwarf_formref_die() 52 ? cu->address_size in dwarf_formref_die() 53 : cu->offset_size); in dwarf_formref_die() 56 ? cu->dbg->alt_dwarf : cu->dbg); in dwarf_formref_die() 64 if (__libdw_read_offset (cu->dbg, dbg_ret, IDX_debug_info, attr->valp, in dwarf_formref_die() 78 uint64_t sig = read_8ubyte_unaligned (cu->dbg, attr->valp); in dwarf_formref_die() 79 cu = Dwarf_Sig8_Hash_find (&cu->dbg->sig8_hash, sig, NULL); in dwarf_formref_die() 80 if (cu == NULL) in dwarf_formref_die() 84 cu = __libdw_intern_next_unit (attr->cu->dbg, true); in dwarf_formref_die() [all …]
|
D | dwarf_decl_file.c | 58 struct Dwarf_CU *cu = die->cu; in dwarf_decl_file() local 59 if (cu->lines == NULL) in dwarf_decl_file() 66 (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines); in dwarf_decl_file() 67 assert (cu->lines != NULL); in dwarf_decl_file() 70 if (cu->lines == (void *) -1l) in dwarf_decl_file() 78 assert (cu->files != NULL && cu->files != (void *) -1l); in dwarf_decl_file() 80 if (idx >= cu->files->nfiles) in dwarf_decl_file() 86 return cu->files->info[idx].name; in dwarf_decl_file()
|
D | dwarf_formudata.c | 45 const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index]; in __libdw_formptr() 55 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg, in __libdw_formptr() 56 cu_sec_idx (attr->cu), attr->valp, in __libdw_formptr() 57 attr->cu->offset_size, &offset, sec_index, 0)) in __libdw_formptr() 60 else if (attr->cu->version > 3) in __libdw_formptr() 67 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg, in __libdw_formptr() 68 cu_sec_idx (attr->cu), in __libdw_formptr() 103 const unsigned char *endp = attr->cu->endp; in dwarf_formudata() 120 *return_uval = read_2ubyte_unaligned (attr->cu->dbg, attr->valp); in dwarf_formudata() 131 || (attr->cu->version < 4 && attr->code != DW_AT_start_scope)) in dwarf_formudata() [all …]
|
D | dwarf_cu_die.c | 38 dwarf_cu_die (Dwarf_CU *cu, Dwarf_Die *result, Dwarf_Half *versionp, in dwarf_cu_die() argument 43 if (cu == NULL) in dwarf_cu_die() 46 *result = CUDIE (cu); in dwarf_cu_die() 49 *versionp = cu->version; in dwarf_cu_die() 51 *abbrev_offsetp = cu->orig_abbrev_offset; in dwarf_cu_die() 53 *address_sizep = cu->address_size; in dwarf_cu_die() 55 *offset_sizep = cu->offset_size; in dwarf_cu_die() 57 *type_signaturep = cu->type_sig8; in dwarf_cu_die() 59 *type_offsetp = cu->type_offset; in dwarf_cu_die()
|
D | dwarf_getsrcfiles.c | 53 struct Dwarf_CU *const cu = cudie->cu; in dwarf_getsrcfiles() local 54 if (cu->lines == NULL) in dwarf_getsrcfiles() 63 else if (cu->files != (void *) -1l) in dwarf_getsrcfiles() 69 assert (cu->files != NULL && cu->files != (void *) -1l); in dwarf_getsrcfiles() 70 *files = cu->files; in dwarf_getsrcfiles() 72 *nfiles = cu->files->nfiles; in dwarf_getsrcfiles()
|
D | libdw_form.c | 42 __libdw_form_val_compute_len (struct Dwarf_CU *cu, unsigned int form, in __libdw_form_val_compute_len() argument 46 const unsigned char *endp = cu->endp; in __libdw_form_val_compute_len() 55 result = cu->address_size; in __libdw_form_val_compute_len() 59 result = cu->version == 2 ? cu->address_size : cu->offset_size; in __libdw_form_val_compute_len() 66 result = cu->offset_size; in __libdw_form_val_compute_len() 78 result = read_2ubyte_unaligned (cu->dbg, valp) + 2; in __libdw_form_val_compute_len() 84 result = read_4ubyte_unaligned (cu->dbg, valp) + 4; in __libdw_form_val_compute_len() 113 result = __libdw_form_val_len (cu, u128, valp); in __libdw_form_val_compute_len()
|
D | dwarf_tag.c | 39 __libdw_findabbrev (struct Dwarf_CU *cu, unsigned int code) in __libdw_findabbrev() argument 48 abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code, NULL); in __libdw_findabbrev() 50 while (cu->last_abbrev_offset != (size_t) -1l) in __libdw_findabbrev() 56 abb = __libdw_getabbrev (cu->dbg, cu, cu->last_abbrev_offset, &length, in __libdw_findabbrev() 61 cu->last_abbrev_offset = (size_t) -1l; in __libdw_findabbrev() 65 cu->last_abbrev_offset += length; in __libdw_findabbrev()
|
D | dwarf_siblingof.c | 58 sibattr.cu = this_die.cu; in dwarf_siblingof() 62 unsigned char *endp = sibattr.cu->endp; in dwarf_siblingof() 81 size_t size = sibattr.cu->endp - sibattr.cu->startp; in dwarf_siblingof() 82 size_t die_off = this_die.addr - this_die.cu->startp; in dwarf_siblingof() 90 addr = sibattr.cu->startp + offset; in dwarf_siblingof() 139 result->cu = sibattr.cu; in dwarf_siblingof()
|
D | dwarf_getlocation.c | 123 struct loc_block_s **found = tfind (&fake, &attr->cu->locs, loc_compare); in dwarf_getlocation_implicit_value() 161 struct loc_s **found = tfind (&fake, &attr->cu->locs, loc_compare); in check_constant_offset() 169 Dwarf_Op *result = libdw_alloc (attr->cu->dbg, in check_constant_offset() 178 struct loc_s *newp = libdw_alloc (attr->cu->dbg, in check_constant_offset() 185 found = tsearch (newp, &attr->cu->locs, loc_compare); in check_constant_offset() 589 getlocation (struct Dwarf_CU *cu, const Dwarf_Block *block, in getlocation() argument 600 return __libdw_intern_expression (cu->dbg, cu->dbg->other_byte_order, in getlocation() 601 cu->address_size, (cu->version == 2 in getlocation() 602 ? cu->address_size in getlocation() 603 : cu->offset_size), in getlocation() [all …]
|
D | dwarf_getabbrev.c | 40 __libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu, Dwarf_Off offset, in __libdw_getabbrev() argument 85 if (cu == NULL in __libdw_getabbrev() 86 || (abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code, NULL)) == NULL) in __libdw_getabbrev() 144 if (cu != NULL && ! foundit) in __libdw_getabbrev() 145 (void) Dwarf_Abbrev_Hash_insert (&cu->abbrev_hash, abb->code, abb); in __libdw_getabbrev() 155 return __libdw_getabbrev (die->cu->dbg, die->cu, in dwarf_getabbrev() 156 die->cu->orig_abbrev_offset + offset, lengthp, in dwarf_getabbrev()
|
/external/elfutils/libdwfl/ |
D | cu.c | 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() [all …]
|
D | lines.c | 34 __libdwfl_cu_getsrclines (struct dwfl_cu *cu) in __libdwfl_cu_getsrclines() argument 36 if (cu->lines == NULL) in __libdwfl_cu_getsrclines() 40 if (INTUSE(dwarf_getsrclines) (&cu->die, &lines, &nlines) != 0) in __libdwfl_cu_getsrclines() 43 cu->lines = malloc (offsetof (struct Dwfl_Lines, idx[nlines])); in __libdwfl_cu_getsrclines() 44 if (cu->lines == NULL) in __libdwfl_cu_getsrclines() 46 cu->lines->cu = cu; in __libdwfl_cu_getsrclines() 48 cu->lines->idx[i].idx = i; in __libdwfl_cu_getsrclines()
|
D | dwfl_module_getsrc_file.c | 42 return &dwfl_linecu (line)->die.cu->lines->info[line->idx]; in dwfl_line() 73 struct dwfl_cu *cu = NULL; in dwfl_module_getsrc_file() local 75 while ((error = __libdwfl_nextcu (mod, cu, &cu)) == DWFL_E_NOERROR in dwfl_module_getsrc_file() 76 && cu != NULL in dwfl_module_getsrc_file() 77 && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR) in dwfl_module_getsrc_file() 84 for (size_t cnt = 0; cnt < cu->die.cu->lines->nlines; ++cnt) in dwfl_module_getsrc_file() 86 Dwarf_Line *line = &cu->die.cu->lines->info[cnt]; in dwfl_module_getsrc_file() 133 match[inner] = &cu->lines->idx[cnt]; in dwfl_module_getsrc_file() 155 match[cur_match++] = &cu->lines->idx[cnt]; in dwfl_module_getsrc_file()
|
D | dwfl_nextcu.c | 37 struct dwfl_cu *cu = (struct dwfl_cu *) lastcu; in dwfl_nextcu() local 40 if (cu == NULL) in dwfl_nextcu() 46 mod = cu->mod; in dwfl_nextcu() 51 error = __libdwfl_nextcu (mod, cu, &cu); in dwfl_nextcu() 55 if (cu != NULL) in dwfl_nextcu() 58 return &cu->die; in dwfl_nextcu()
|
D | dwfl_onesrcline.c | 34 struct dwfl_cu *cu = (struct dwfl_cu *) cudie; in dwfl_onesrcline() local 39 if (cu->lines == NULL) in dwfl_onesrcline() 41 Dwfl_Error error = __libdwfl_cu_getsrclines (cu); in dwfl_onesrcline() 49 if (idx >= cu->die.cu->lines->nlines) in dwfl_onesrcline() 55 return &cu->lines->idx[idx]; in dwfl_onesrcline()
|
/external/lldb/source/Plugins/SymbolFile/DWARF/ |
D | DWARFDebugInfoEntry.cpp | 64 DWARFDebugInfoEntry::Attributes::Append(const DWARFCompileUnit *cu, dw_offset_t attr_die_offset, dw… in Append() argument 66 Info info = { cu, attr_die_offset, attr, form }; in Append() 120 const DWARFCompileUnit* cu, in FastExtract() argument 139 …const DWARFAbbreviationDeclaration *abbrevDecl = cu->GetAbbreviations()->GetAbbreviationDeclaratio… in FastExtract() 143 …cu->GetSymbolFileDWARF()->GetObjectFile()->GetModule()->ReportError ("{0x%8.8x}: invalid abbreviat… in FastExtract() 187 form_size = cu->GetAddressByteSize(); in FastExtract() 190 if (cu->GetVersion() <= 2) in FastExtract() 191 form_size = cu->GetAddressByteSize(); in FastExtract() 241 if (cu->GetAddressByteSize () == 4) in FastExtract() 280 const DWARFCompileUnit* cu, in Extract() argument [all …]
|
D | DWARFDebugInfoEntry.h | 66 …void Append(const DWARFCompileUnit *cu, dw_offset_t attr_die_offset, dw_attr_t attr, dw_form_t for… 67 const DWARFCompileUnit * CompileUnitAtIndex(uint32_t i) const { return m_infos[i].cu; } in CompileUnitAtIndex() 83 …const DWARFCompileUnit *cu; // Keep the compile unit with each attribute in case we have DW_FORM_r… member 136 const DWARFCompileUnit* cu, 141 const DWARFCompileUnit* cu, 146 const DWARFCompileUnit* cu, 152 const DWARFCompileUnit* cu, 158 const DWARFCompileUnit* cu, 164 const DWARFCompileUnit* cu, 171 const DWARFCompileUnit* cu, [all …]
|
D | DWARFDebugInfo.cpp | 78 DWARFCompileUnit* cu = GetCompileUnitAtIndex(idx); in GetCompileUnitAranges() local 79 if (cu) in GetCompileUnitAranges() 80 …cu->BuildAddressRangeTable (m_dwarf2Data, m_cu_aranges_ap.get(), clear_dies_if_already_not_parsed); in GetCompileUnitAranges() 178 DWARFCompileUnit* cu = NULL; in GetCompileUnitAtIndex() local 180 cu = m_compile_units[idx].get(); in GetCompileUnitAtIndex() 181 return cu; in GetCompileUnitAtIndex() 185 DWARFDebugInfo::ContainsCompileUnit (const DWARFCompileUnit *cu) const in ContainsCompileUnit() 194 if (pos->get() == cu) in ContainsCompileUnit() 346 DWARFCompileUnit* cu = cu_sp.get(); in DWARFDebugInfo_ParseCallback() local 349 cu->AddDIE(*die); in DWARFDebugInfo_ParseCallback() [all …]
|
D | DWARFDebugPubnames.cpp | 87 DWARFCompileUnit* cu = debug_info->GetCompileUnitAtIndex(cu_idx); in GeneratePubnames() local 89 …const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (cu->GetAddressB… in GeneratePubnames() 91 bool clear_dies = cu->ExtractDIEsIfNeeded (false) > 1; in GeneratePubnames() 94 const size_t die_count = cu->AppendDIEsWithTag (DW_TAG_subprogram, dies) + in GeneratePubnames() 95 cu->AppendDIEsWithTag (DW_TAG_variable, dies); in GeneratePubnames() 97 dw_offset_t cu_offset = cu->GetOffset(); in GeneratePubnames() 98 …DWARFDebugPubnamesSet pubnames_set(DW_INVALID_OFFSET, cu_offset, cu->GetNextCompileUnitOffset() - … in GeneratePubnames() 108 … const size_t num_attributes = die->GetAttributes(dwarf2Data, cu, fixed_form_sizes, attributes); in GeneratePubnames() 203 cu->ClearDIEs (true); in GeneratePubnames() 224 DWARFCompileUnit* cu = debug_info->GetCompileUnitAtIndex(cu_idx); in GeneratePubBaseTypes() local [all …]
|
D | DWARFFormValue.cpp | 117 …ue::ExtractValue(const DataExtractor& data, lldb::offset_t* offset_ptr, const DWARFCompileUnit* cu) in ExtractValue() argument 128 … m_value.value.uval = data.GetMaxU64(offset_ptr, DWARFCompileUnit::GetAddressByteSize(cu)); break; in ExtractValue() 149 if (cu->GetVersion() <= 2) in ExtractValue() 150 … m_value.value.uval = data.GetMaxU64(offset_ptr, DWARFCompileUnit::GetAddressByteSize(cu)); in ExtractValue() 186 …const DataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) const in SkipValue() 188 return DWARFFormValue::SkipValue(m_form, debug_info_data, offset_ptr, cu); in SkipValue() 192 …form, const DataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) in SkipValue() argument 211 *offset_ptr += DWARFCompileUnit::GetAddressByteSize(cu); in SkipValue() 215 if (cu->GetVersion() <= 2) in SkipValue() 216 *offset_ptr += DWARFCompileUnit::GetAddressByteSize(cu); in SkipValue() [all …]
|
/external/elfutils/tests/ |
D | run-get-pubnames.sh | 24 [ 0] "main", die: 104, cu: 11 27 [ 1] "a", die: 174, cu: 11 30 [ 2] "bar", die: 295, cu: 202 33 [ 3] "foo", die: 5721, cu: 5628 36 [ 0] "bar", die: 72, cu: 11 39 [ 1] "foo", die: 2490, cu: 2429 42 [ 2] "main", die: 2593, cu: 2532 45 [ 3] "a", die: 2663, cu: 2532
|
D | dwfllines.c | 41 Dwarf_Die *cu = NULL; in main() local 45 cu = dwfl_nextcu (dwfl, cu, &bias); in main() 46 if (cu != NULL) in main() 48 Dwfl_Module *mod = dwfl_cumodule (cu); in main() 52 const char *cuname = (dwarf_diename (cu) ?: "<unknown>"); in main() 55 dwarf_dieoffset (cu), cuname); in main() 58 if (dwfl_getsrclines (cu, &lines) != 0) in main() 63 Dwfl_Line *line = dwfl_onesrcline (cu, i); in main() 152 assert (cu == linecu); in main() 159 while (cu != NULL); in main()
|
D | funcretval.c | 36 Dwarf_Die *cu; member 58 printf ("(%s) %s: ", dwfl_module_info (dwfl_cumodule (a->cu), NULL, in handle_function() 64 int nlocops = dwfl_module_return_value_location (dwfl_cumodule (a->cu), in handle_function() 91 struct args a = { .dwfl = NULL, .cu = NULL }; in main() 100 while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL) in main() 101 dwarf_getfuncs (a.cu, &handle_function, &a, 0); in main()
|
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
D | RunWithAnnotator.java | 86 public void process(Context context, CompilationUnit cu) { in process() argument 87 List types = cu.types(); in process() 93 imported = annotateTypeDeclaration(cu, rewrite, typeDeclaration, true, imported); in process() 98 private boolean annotateTypeDeclaration(CompilationUnit cu, in annotateTypeDeclaration() argument 110 addRunWithAnnotation(cu, rewrite, typeDeclaration, runnerClass, imported); in annotateTypeDeclaration() 117 imported = annotateTypeDeclaration(cu, rewrite, innerClass, false, imported); in annotateTypeDeclaration() 124 CompilationUnit cu, ASTRewrite rewrite, TypeDeclaration type, String runnerClass, in addRunWithAnnotation() argument 127 AST ast = cu.getAST(); in addRunWithAnnotation() 132 appendImport(cu, rewrite, qRunWith); in addRunWithAnnotation() 133 appendImport(cu, rewrite, qRunner); in addRunWithAnnotation() [all …]
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFFormValue.cpp | 135 const DWARFUnit *cu) { in extractValue() argument 146 if (!cu) in extractValue() 150 ? cu->getAddressByteSize() in extractValue() 151 : getRefAddrSize(cu->getAddressByteSize(), cu->getVersion()); in extractValue() 152 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); in extractValue() 153 if (AI != cu->getRelocMap()->end()) { in extractValue() 189 if (!cu) in extractValue() 191 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr-4); in extractValue() 192 if (AI != cu->getRelocMap()->end()) in extractValue() 220 if (!cu) in extractValue() [all …]
|