/external/llvm/lib/DebugInfo/ |
H A D | DWARFTypeUnit.cpp | 17 uint32_t *offset_ptr) { 18 if (!DWARFUnit::extractImpl(debug_info, offset_ptr)) 20 TypeHash = debug_info.getU64(offset_ptr); 21 TypeOffset = debug_info.getU32(offset_ptr); 16 extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) argument
|
H A D | DWARFDebugArangeSet.cpp | 24 DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) { argument 25 if (data.isValidOffset(*offset_ptr)) { 27 Offset = *offset_ptr; 43 HeaderData.Length = data.getU32(offset_ptr); 44 HeaderData.Version = data.getU16(offset_ptr); 45 HeaderData.CuOffset = data.getU32(offset_ptr); 46 HeaderData.AddrSize = data.getU8(offset_ptr); 47 HeaderData.SegSize = data.getU8(offset_ptr); 60 const uint32_t header_size = *offset_ptr - Offset; 66 *offset_ptr [all...] |
H A D | DWARFDebugRangeList.cpp | 22 bool DWARFDebugRangeList::extract(DataExtractor data, uint32_t *offset_ptr) { argument 24 if (!data.isValidOffset(*offset_ptr)) 29 Offset = *offset_ptr; 32 uint32_t prev_offset = *offset_ptr; 33 entry.StartAddress = data.getAddress(offset_ptr); 34 entry.EndAddress = data.getAddress(offset_ptr); 36 if (*offset_ptr != prev_offset + 2 * AddressSize) {
|
H A D | DWARFFormValue.cpp | 130 bool DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, argument 146 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); 149 Value.uval = data.getUnsigned(offset_ptr, AddrSize) + R.second; 151 Value.uval = data.getUnsigned(offset_ptr, AddrSize); 156 Value.uval = data.getULEB128(offset_ptr); 160 Value.uval = data.getU8(offset_ptr); 164 Value.uval = data.getU16(offset_ptr); 168 Value.uval = data.getU32(offset_ptr); 174 Value.uval = data.getU8(offset_ptr); 178 Value.uval = data.getU16(offset_ptr); 255 skipValue(DataExtractor debug_info_data, uint32_t* offset_ptr, const DWARFUnit *cu) const argument 261 skipValue(uint16_t form, DataExtractor debug_info_data, uint32_t *offset_ptr, const DWARFUnit *cu) argument [all...] |
H A D | DWARFDebugInfoEntry.cpp | 67 uint32_t *offset_ptr, 85 if (!formValue.extractValue(u->getDebugInfoExtractor(), offset_ptr, u)) 65 dumpAttribute(raw_ostream &OS, const DWARFUnit *u, uint32_t *offset_ptr, uint16_t attr, uint16_t form, unsigned indent) const argument
|
H A D | DWARFDebugLine.cpp | 69 uint32_t *offset_ptr) { 70 const uint32_t prologue_offset = *offset_ptr; 73 TotalLength = debug_line_data.getU32(offset_ptr); 74 Version = debug_line_data.getU16(offset_ptr); 78 PrologueLength = debug_line_data.getU32(offset_ptr); 79 const uint32_t end_prologue_offset = PrologueLength + *offset_ptr; 80 MinInstLength = debug_line_data.getU8(offset_ptr); 82 MaxOpsPerInst = debug_line_data.getU8(offset_ptr); 83 DefaultIsStmt = debug_line_data.getU8(offset_ptr); 84 LineBase = debug_line_data.getU8(offset_ptr); 68 parse(DataExtractor debug_line_data, uint32_t *offset_ptr) argument 247 parse(DataExtractor debug_line_data, const RelocAddrMap *RMap, uint32_t *offset_ptr) argument [all...] |
H A D | DWARFUnit.cpp | 54 bool DWARFUnit::extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) { argument 55 Length = debug_info.getU32(offset_ptr); 56 Version = debug_info.getU16(offset_ptr); 57 uint64_t AbbrOffset = debug_info.getU32(offset_ptr); 58 AddrSize = debug_info.getU8(offset_ptr); 74 bool DWARFUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) { argument 77 Offset = *offset_ptr; 79 if (debug_info.isValidOffset(*offset_ptr)) { 80 if (extractImpl(debug_info, offset_ptr)) 84 *offset_ptr [all...] |
/external/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDebugMacinfoEntry.cpp | 83 DWARFDebugMacinfoEntry::Extract(const DataExtractor& mac_info_data, lldb::offset_t* offset_ptr) argument 85 if (mac_info_data.ValidOffset(*offset_ptr)) 87 m_type_code = mac_info_data.GetU8(offset_ptr); 98 m_line = mac_info_data.GetULEB128(offset_ptr); 100 m_op2.cstr = mac_info_data.GetCStr(offset_ptr); 107 m_line = mac_info_data.GetULEB128(offset_ptr); 110 m_op2.file_idx = mac_info_data.GetULEB128(offset_ptr); 121 m_line = mac_info_data.GetULEB128(offset_ptr); 122 m_op2.cstr = mac_info_data.GetCStr(offset_ptr);
|
H A D | DWARFLocationDescription.cpp | 18 static int print_dwarf_exp_op (Stream &s, const DataExtractor& data, lldb::offset_t *offset_ptr, int address_size, int dwarf_ref_size); 51 lldb::offset_t *offset_ptr, 55 uint8_t opcode = data.GetU8(offset_ptr); 72 uint = data.GetULEB128(offset_ptr); 73 sint = data.GetSLEB128(offset_ptr); 159 case -1: sint = (int8_t) data.GetU8(offset_ptr); s.Printf("%+" PRIi64, sint); break; 160 case -2: sint = (int16_t) data.GetU16(offset_ptr); s.Printf("%+" PRIi64, sint); break; 161 case -4: sint = (int32_t) data.GetU32(offset_ptr); s.Printf("%+" PRIi64, sint); break; 162 case -8: sint = (int64_t) data.GetU64(offset_ptr); s.Printf("%+" PRIi64, sint); break; 163 case -128: sint = data.GetSLEB128(offset_ptr); 49 print_dwarf_exp_op(Stream &s, const DataExtractor& data, lldb::offset_t *offset_ptr, int address_size, int dwarf_ref_size) argument [all...] |
H A D | DWARFLocationList.cpp | 55 DWARFLocationList::Extract(const DataExtractor& debug_loc_data, lldb::offset_t* offset_ptr, DataExtractor& location_list_data) argument 60 size_t loc_list_length = Size(debug_loc_data, *offset_ptr); 63 location_list_data.SetData(debug_loc_data, *offset_ptr, loc_list_length); 64 *offset_ptr += loc_list_length;
|
H A D | DWARFAbbreviationDeclaration.cpp | 35 DWARFAbbreviationDeclaration::Extract(const DataExtractor& data, lldb::offset_t* offset_ptr) argument 37 return Extract(data, offset_ptr, data.GetULEB128(offset_ptr)); 41 DWARFAbbreviationDeclaration::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr, dw_uleb128_t code) argument 47 m_tag = data.GetULEB128(offset_ptr); 48 m_has_children = data.GetU8(offset_ptr); 50 while (data.ValidOffset(*offset_ptr)) 52 dw_attr_t attr = data.GetULEB128(offset_ptr); 53 dw_form_t form = data.GetULEB128(offset_ptr);
|
H A D | DWARFDebugAbbrev.cpp | 33 DWARFAbbreviationDeclarationSet::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr) argument 35 const lldb::offset_t begin_offset = *offset_ptr; 40 while (abbrevDeclaration.Extract(data, offset_ptr)) 52 return begin_offset != *offset_ptr;
|
H A D | DWARFDebugPubnamesSet.cpp | 81 DWARFDebugPubnamesSet::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr) argument 83 if (data.ValidOffset(*offset_ptr)) 86 m_offset = *offset_ptr; 87 m_header.length = data.GetU32(offset_ptr); 88 m_header.version = data.GetU16(offset_ptr); 89 m_header.die_offset = data.GetU32(offset_ptr); 90 m_header.die_length = data.GetU32(offset_ptr); 93 while (data.ValidOffset(*offset_ptr)) 95 pubnameDesc.offset = data.GetU32(offset_ptr); 99 const char* name = data.GetCStr(offset_ptr); [all...] |
H A D | DWARFDebugRanges.cpp | 85 DWARFDebugRanges::Extract(SymbolFileDWARF* dwarf2Data, lldb::offset_t *offset_ptr, RangeList &range_list) argument 89 lldb::offset_t range_offset = *offset_ptr; 93 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) 95 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); 96 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); 130 return range_offset != *offset_ptr; 135 DWARFDebugRanges::Dump(Stream &s, const DataExtractor& debug_ranges_data, lldb::offset_t *offset_ptr, dw_addr_t cu_base_addr) argument 141 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) 143 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); 144 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_siz [all...] |
H A D | DWARFDebugArangeSet.cpp | 165 DWARFDebugArangeSet::Extract(const DataExtractor &data, lldb::offset_t *offset_ptr) argument 167 if (data.ValidOffset(*offset_ptr)) 170 m_offset = *offset_ptr; 186 m_header.length = data.GetU32(offset_ptr); 187 m_header.version = data.GetU16(offset_ptr); 188 m_header.cu_offset = data.GetU32(offset_ptr); 189 m_header.addr_size = data.GetU8(offset_ptr); 190 m_header.seg_size = data.GetU8(offset_ptr); 197 const uint32_t header_size = *offset_ptr - m_offset; 203 *offset_ptr [all...] |
H A D | DWARFFormValue.cpp | 117 DWARFFormValue::ExtractValue(const DataExtractor& data, lldb::offset_t* offset_ptr, const DWARFCompileUnit* cu) argument 128 case DW_FORM_addr: m_value.value.uval = data.GetMaxU64(offset_ptr, DWARFCompileUnit::GetAddressByteSize(cu)); break; 129 case DW_FORM_block2: m_value.value.uval = data.GetU16(offset_ptr); is_block = true; break; 130 case DW_FORM_block4: m_value.value.uval = data.GetU32(offset_ptr); is_block = true; break; 131 case DW_FORM_data2: m_value.value.uval = data.GetU16(offset_ptr); break; 132 case DW_FORM_data4: m_value.value.uval = data.GetU32(offset_ptr); break; 133 case DW_FORM_data8: m_value.value.uval = data.GetU64(offset_ptr); break; 134 case DW_FORM_string: m_value.value.cstr = data.GetCStr(offset_ptr); 140 case DW_FORM_block: m_value.value.uval = data.GetULEB128(offset_ptr); is_block = true; break; 141 case DW_FORM_block1: m_value.value.uval = data.GetU8(offset_ptr); is_bloc 186 SkipValue(const DataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) const argument 192 SkipValue(dw_form_t form, const DataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) argument [all...] |
H A D | DWARFDebugLine.cpp | 404 DWARFDebugLine::ParsePrologue(const DataExtractor& debug_line_data, lldb::offset_t* offset_ptr, Prologue* prologue) argument 406 const lldb::offset_t prologue_offset = *offset_ptr; 408 //DEBUG_PRINTF("0x%8.8x: ParsePrologue()\n", *offset_ptr); 413 prologue->total_length = debug_line_data.GetU32(offset_ptr); 414 prologue->version = debug_line_data.GetU16(offset_ptr); 418 prologue->prologue_length = debug_line_data.GetU32(offset_ptr); 419 const lldb::offset_t end_prologue_offset = prologue->prologue_length + *offset_ptr; 420 prologue->min_inst_length = debug_line_data.GetU8(offset_ptr); 421 prologue->default_is_stmt = debug_line_data.GetU8(offset_ptr); 422 prologue->line_base = debug_line_data.GetU8(offset_ptr); 573 ParseStatementTable( const DataExtractor& debug_line_data, lldb::offset_t* offset_ptr, DWARFDebugLine::State::Callback callback, void* userData ) argument 876 ParseStatementTable(const DataExtractor& debug_line_data, lldb::offset_t *offset_ptr, LineTable* line_table) argument [all...] |
H A D | HashedNameToDIE.h | 436 lldb::offset_t *offset_ptr, 447 if (!form_value.ExtractValue(data, offset_ptr, NULL)) 435 Read(const lldb_private::DataExtractor &data, lldb::offset_t *offset_ptr, DIEInfo &hash_data) const argument
|
H A D | DWARFCompileUnit.cpp | 72 DWARFCompileUnit::Extract(const DataExtractor &debug_info, lldb::offset_t *offset_ptr) argument 76 m_offset = *offset_ptr; 78 if (debug_info.ValidOffset(*offset_ptr)) 82 m_length = debug_info.GetU32(offset_ptr); 83 m_version = debug_info.GetU16(offset_ptr); 84 abbr_offset = debug_info.GetU32(offset_ptr); 85 m_addr_size = debug_info.GetU8 (offset_ptr); 99 *offset_ptr = m_offset;
|
/external/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
H A D | AuxVector.cpp | 33 lldb::offset_t *offset_ptr, 37 lldb::offset_t saved_offset = *offset_ptr; 38 *value = data.GetMaxU64(offset_ptr, byte_size); 39 return *offset_ptr != saved_offset; 45 lldb::offset_t *offset_ptr, 48 if (!GetMaxU64(data, offset_ptr, &entry.type, byte_size)) 51 if (!GetMaxU64(data, offset_ptr, &entry.value, byte_size)) 32 GetMaxU64(DataExtractor &data, lldb::offset_t *offset_ptr, uint64_t *value, unsigned int byte_size) argument 43 ParseAuxvEntry(DataExtractor &data, AuxVector::Entry &entry, lldb::offset_t *offset_ptr, unsigned int byte_size) argument
|
/external/llvm/lib/Support/ |
H A D | DataExtractor.cpp | 17 static T getU(uint32_t *offset_ptr, const DataExtractor *de, argument 20 uint32_t offset = *offset_ptr; 27 *offset_ptr += sizeof(val); 33 static T *getUs(uint32_t *offset_ptr, T *dst, uint32_t count, argument 35 uint32_t offset = *offset_ptr; 40 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data); 42 *offset_ptr = offset; 50 uint8_t DataExtractor::getU8(uint32_t *offset_ptr) const { 51 return getU<uint8_t>(offset_ptr, this, IsLittleEndian, Data.data()); 55 DataExtractor::getU8(uint32_t *offset_ptr, uint8_ argument 65 getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count) const argument 75 getU32(uint32_t *offset_ptr, uint32_t *dst, uint32_t count) const argument 85 getU64(uint32_t *offset_ptr, uint64_t *dst, uint32_t count) const argument 92 getUnsigned(uint32_t *offset_ptr, uint32_t byte_size) const argument 107 getSigned(uint32_t *offset_ptr, uint32_t byte_size) const argument [all...] |
/external/lldb/include/lldb/Core/ |
H A D | DataExtractor.h | 338 /// Extract an address from \a *offset_ptr. 341 /// pointed to by \a offset_ptr. The size of the extracted address 345 /// @param[in,out] offset_ptr 356 GetAddress (lldb::offset_t *offset_ptr) const; 359 GetAddress_unchecked (lldb::offset_t *offset_ptr) const; 389 /// Extract a C string from \a *offset_ptr. 392 /// pointed to by \a offset_ptr. A variable length NULL terminated C 393 /// string will be extracted and the \a offset_ptr will be 397 /// @param[in,out] offset_ptr 406 /// pointed to by \a offset_ptr i 462 GetData(lldb::offset_t *offset_ptr, lldb::offset_t length) const argument [all...] |
/external/lldb/tools/debugserver/source/ |
H A D | DNBDataRef.cpp | 65 DNBDataRef::Get8(offset_t *offset_ptr) const 68 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeof(val)) ) 70 val = *(m_start + *offset_ptr); 71 *offset_ptr += sizeof(val); 81 DNBDataRef::Get16(offset_t *offset_ptr) const 84 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeof(val)) ) 86 const uint8_t *p = m_start + *offset_ptr; 93 *offset_ptr += sizeof(val); 103 DNBDataRef::Get32(offset_t *offset_ptr) const 106 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeo 148 GetMax32(offset_t *offset_ptr, uint32_t byte_size) const argument 170 GetMax64(offset_t *offset_ptr, uint32_t size) const argument 202 GetCStr(offset_t *offset_ptr, uint32_t fixed_length) const argument 223 GetData(offset_t *offset_ptr, uint32_t length) const argument [all...] |
/external/lldb/source/Core/ |
H A D | DataExtractor.cpp | 363 // the offset pointed to by "offset_ptr". 368 DataExtractor::GetU8 (offset_t *offset_ptr) const 370 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, 1); 378 // offset pointed to by "offset_ptr". The extracted data is copied into 386 DataExtractor::GetU8 (offset_t *offset_ptr, void *dst, uint32_t count) const argument 388 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, count); 401 // pointed to by "offset_ptr". 406 DataExtractor::GetU16 (offset_t *offset_ptr) const 409 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, sizeof(val)); 421 DataExtractor::GetU16_unchecked (offset_t *offset_ptr) cons 467 GetU16(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument 526 GetU32(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument 583 GetU64(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument 622 GetMaxU32(offset_t *offset_ptr, size_t byte_size) const argument 647 GetMaxU64(offset_t *offset_ptr, size_t size) const argument 663 GetMaxU64_unchecked(offset_t *offset_ptr, size_t size) const argument 679 GetMaxS64(offset_t *offset_ptr, size_t size) const argument 695 GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset) const argument 711 GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset) const argument 844 GetGNUEHPointer(offset_t *offset_ptr, uint32_t eh_ptr_enc, lldb::addr_t pc_rel_addr, lldb::addr_t text_addr, lldb::addr_t data_addr) argument 1122 GetCStr(offset_t *offset_ptr, offset_t len) const argument 1266 GetAPInt(const DataExtractor &data, lldb::offset_t *offset_ptr, lldb::offset_t byte_size, llvm::APInt &result) argument [all...] |
/external/lldb/source/Plugins/ObjectFile/PECOFF/ |
H A D | ObjectFilePECOFF.cpp | 359 ObjectFilePECOFF::ParseCOFFHeader(lldb::offset_t *offset_ptr) argument 361 bool success = m_data.ValidOffsetForDataOfSize (*offset_ptr, sizeof(m_coff_header)); 364 m_coff_header.machine = m_data.GetU16(offset_ptr); 365 m_coff_header.nsects = m_data.GetU16(offset_ptr); 366 m_coff_header.modtime = m_data.GetU32(offset_ptr); 367 m_coff_header.symoff = m_data.GetU32(offset_ptr); 368 m_coff_header.nsyms = m_data.GetU32(offset_ptr); 369 m_coff_header.hdrsize = m_data.GetU16(offset_ptr); 370 m_coff_header.flags = m_data.GetU16(offset_ptr); 378 ObjectFilePECOFF::ParseCOFFOptionalHeader(lldb::offset_t *offset_ptr) argument [all...] |