Home
last modified time | relevance | path

Searched refs:offset_ptr (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm/lib/Support/
DDataExtractor.cpp17 static T getU(uint32_t *offset_ptr, const DataExtractor *de, in getU() argument
20 uint32_t offset = *offset_ptr; in getU()
27 *offset_ptr += sizeof(val); in getU()
33 static T *getUs(uint32_t *offset_ptr, T *dst, uint32_t count, in getUs() argument
35 uint32_t offset = *offset_ptr; in getUs()
40 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data); in getUs()
42 *offset_ptr = offset; in getUs()
50 uint8_t DataExtractor::getU8(uint32_t *offset_ptr) const { in getU8()
51 return getU<uint8_t>(offset_ptr, this, IsLittleEndian, Data.data()); in getU8()
55 DataExtractor::getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const { in getU8() argument
[all …]
/external/lldb/tools/debugserver/source/
DDNBDataRef.cpp65 DNBDataRef::Get8(offset_t *offset_ptr) const in Get8()
68 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeof(val)) ) in Get8()
70 val = *(m_start + *offset_ptr); in Get8()
71 *offset_ptr += sizeof(val); in Get8()
81 DNBDataRef::Get16(offset_t *offset_ptr) const in Get16()
84 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeof(val)) ) in Get16()
86 const uint8_t *p = m_start + *offset_ptr; in Get16()
93 *offset_ptr += sizeof(val); in Get16()
103 DNBDataRef::Get32(offset_t *offset_ptr) const in Get32()
106 if ( ValidOffsetForDataOfSize(*offset_ptr, sizeof(val)) ) in Get32()
[all …]
DDNBDataRef.h93 uint8_t Get8(offset_t *offset_ptr) const;
94 uint16_t Get16(offset_t *offset_ptr) const;
95 uint32_t Get32(offset_t *offset_ptr) const;
96 uint64_t Get64(offset_t *offset_ptr) const;
97 uint32_t GetMax32(offset_t *offset_ptr, uint32_t byte_size) const;
98 uint64_t GetMax64(offset_t *offset_ptr, uint32_t byte_size) const;
99 uint64_t GetPointer(offset_t *offset_ptr) const;
101 const char * GetCStr(offset_t *offset_ptr, uint32_t fixed_length = 0) const;
109 const uint8_t * GetData( offset_t *offset_ptr, uint32_t length) const;
110 uint64_t Get_ULEB128 (offset_t *offset_ptr) const;
[all …]
/external/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFFormValue.cpp117 DWARFFormValue::ExtractValue(const DataExtractor& data, lldb::offset_t* offset_ptr, const DWARFComp… in ExtractValue() argument
128 …case DW_FORM_addr: m_value.value.uval = data.GetMaxU64(offset_ptr, DWARFCompileUnit::GetAddre… in ExtractValue()
129 …case DW_FORM_block2: m_value.value.uval = data.GetU16(offset_ptr); is_block = true; br… in ExtractValue()
130 …case DW_FORM_block4: m_value.value.uval = data.GetU32(offset_ptr); is_block = true; br… in ExtractValue()
131 …case DW_FORM_data2: m_value.value.uval = data.GetU16(offset_ptr); br… in ExtractValue()
132 …case DW_FORM_data4: m_value.value.uval = data.GetU32(offset_ptr); br… in ExtractValue()
133 …case DW_FORM_data8: m_value.value.uval = data.GetU64(offset_ptr); br… in ExtractValue()
134 case DW_FORM_string: m_value.value.cstr = data.GetCStr(offset_ptr); in ExtractValue()
140 …case DW_FORM_block: m_value.value.uval = data.GetULEB128(offset_ptr); is_block = true; br… in ExtractValue()
141 …case DW_FORM_block1: m_value.value.uval = data.GetU8(offset_ptr); is_block = true; br… in ExtractValue()
[all …]
DDWARFLocationDescription.cpp18 static int print_dwarf_exp_op (Stream &s, const DataExtractor& data, lldb::offset_t *offset_ptr, in…
51 lldb::offset_t *offset_ptr, in print_dwarf_exp_op() argument
55 uint8_t opcode = data.GetU8(offset_ptr); in print_dwarf_exp_op()
72 uint = data.GetULEB128(offset_ptr); in print_dwarf_exp_op()
73 sint = data.GetSLEB128(offset_ptr); in print_dwarf_exp_op()
159 case -1: sint = (int8_t) data.GetU8(offset_ptr); s.Printf("%+" PRIi64, sint); break; in print_dwarf_exp_op()
160 case -2: sint = (int16_t) data.GetU16(offset_ptr); s.Printf("%+" PRIi64, sint); break; in print_dwarf_exp_op()
161 case -4: sint = (int32_t) data.GetU32(offset_ptr); s.Printf("%+" PRIi64, sint); break; in print_dwarf_exp_op()
162 case -8: sint = (int64_t) data.GetU64(offset_ptr); s.Printf("%+" PRIi64, sint); break; in print_dwarf_exp_op()
163 case -128: sint = data.GetSLEB128(offset_ptr); s.Printf("%+" PRIi64, sint); break; in print_dwarf_exp_op()
[all …]
DDWARFDebugLine.cpp404 DWARFDebugLine::ParsePrologue(const DataExtractor& debug_line_data, lldb::offset_t* offset_ptr, Pro… in ParsePrologue() argument
406 const lldb::offset_t prologue_offset = *offset_ptr; in ParsePrologue()
413 prologue->total_length = debug_line_data.GetU32(offset_ptr); in ParsePrologue()
414 prologue->version = debug_line_data.GetU16(offset_ptr); in ParsePrologue()
418 prologue->prologue_length = debug_line_data.GetU32(offset_ptr); in ParsePrologue()
419 const lldb::offset_t end_prologue_offset = prologue->prologue_length + *offset_ptr; in ParsePrologue()
420 prologue->min_inst_length = debug_line_data.GetU8(offset_ptr); in ParsePrologue()
421 prologue->default_is_stmt = debug_line_data.GetU8(offset_ptr); in ParsePrologue()
422 prologue->line_base = debug_line_data.GetU8(offset_ptr); in ParsePrologue()
423 prologue->line_range = debug_line_data.GetU8(offset_ptr); in ParsePrologue()
[all …]
DDWARFDebugMacinfoEntry.cpp83 DWARFDebugMacinfoEntry::Extract(const DataExtractor& mac_info_data, lldb::offset_t* offset_ptr) in Extract() argument
85 if (mac_info_data.ValidOffset(*offset_ptr)) in Extract()
87 m_type_code = mac_info_data.GetU8(offset_ptr); in Extract()
98 m_line = mac_info_data.GetULEB128(offset_ptr); in Extract()
100 m_op2.cstr = mac_info_data.GetCStr(offset_ptr); in Extract()
107 m_line = mac_info_data.GetULEB128(offset_ptr); in Extract()
110 m_op2.file_idx = mac_info_data.GetULEB128(offset_ptr); in Extract()
121 m_line = mac_info_data.GetULEB128(offset_ptr); in Extract()
122 m_op2.cstr = mac_info_data.GetCStr(offset_ptr); in Extract()
DDWARFDebugRanges.cpp85 DWARFDebugRanges::Extract(SymbolFileDWARF* dwarf2Data, lldb::offset_t *offset_ptr, RangeList &range… in Extract() argument
89 lldb::offset_t range_offset = *offset_ptr; in Extract()
93 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) in Extract()
95 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Extract()
96 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Extract()
130 return range_offset != *offset_ptr; in Extract()
135 …ump(Stream &s, const DataExtractor& debug_ranges_data, lldb::offset_t *offset_ptr, dw_addr_t cu_ba… in Dump() argument
141 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) in Dump()
143 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Dump()
144 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Dump()
DDWARFDebugArangeSet.cpp165 DWARFDebugArangeSet::Extract(const DataExtractor &data, lldb::offset_t *offset_ptr) in Extract() argument
167 if (data.ValidOffset(*offset_ptr)) in Extract()
170 m_offset = *offset_ptr; in Extract()
186 m_header.length = data.GetU32(offset_ptr); in Extract()
187 m_header.version = data.GetU16(offset_ptr); in Extract()
188 m_header.cu_offset = data.GetU32(offset_ptr); in Extract()
189 m_header.addr_size = data.GetU8(offset_ptr); in Extract()
190 m_header.seg_size = data.GetU8(offset_ptr); in Extract()
197 const uint32_t header_size = *offset_ptr - m_offset; in Extract()
203 *offset_ptr = m_offset + first_tuple_offset; in Extract()
[all …]
DDWARFDebugPubnamesSet.cpp81 DWARFDebugPubnamesSet::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr) in Extract() argument
83 if (data.ValidOffset(*offset_ptr)) in Extract()
86 m_offset = *offset_ptr; in Extract()
87 m_header.length = data.GetU32(offset_ptr); in Extract()
88 m_header.version = data.GetU16(offset_ptr); in Extract()
89 m_header.die_offset = data.GetU32(offset_ptr); in Extract()
90 m_header.die_length = data.GetU32(offset_ptr); in Extract()
93 while (data.ValidOffset(*offset_ptr)) in Extract()
95 pubnameDesc.offset = data.GetU32(offset_ptr); in Extract()
99 const char* name = data.GetCStr(offset_ptr); in Extract()
DDWARFAbbreviationDeclaration.cpp35 DWARFAbbreviationDeclaration::Extract(const DataExtractor& data, lldb::offset_t* offset_ptr) in Extract() argument
37 return Extract(data, offset_ptr, data.GetULEB128(offset_ptr)); in Extract()
41 DWARFAbbreviationDeclaration::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr, dw_ule… in Extract() argument
47 m_tag = data.GetULEB128(offset_ptr); in Extract()
48 m_has_children = data.GetU8(offset_ptr); in Extract()
50 while (data.ValidOffset(*offset_ptr)) in Extract()
52 dw_attr_t attr = data.GetULEB128(offset_ptr); in Extract()
53 dw_form_t form = data.GetULEB128(offset_ptr); in Extract()
DDWARFLocationList.cpp55 DWARFLocationList::Extract(const DataExtractor& debug_loc_data, lldb::offset_t* offset_ptr, DataExt… in Extract() argument
60 size_t loc_list_length = Size(debug_loc_data, *offset_ptr); in Extract()
63 location_list_data.SetData(debug_loc_data, *offset_ptr, loc_list_length); in Extract()
64 *offset_ptr += loc_list_length; in Extract()
DDWARFDebugAbbrev.cpp33 DWARFAbbreviationDeclarationSet::Extract(const DataExtractor& data, lldb::offset_t *offset_ptr) in Extract() argument
35 const lldb::offset_t begin_offset = *offset_ptr; in Extract()
40 while (abbrevDeclaration.Extract(data, offset_ptr)) in Extract()
52 return begin_offset != *offset_ptr; in Extract()
/external/lldb/include/lldb/Core/
DDataExtractor.h356 GetAddress (lldb::offset_t *offset_ptr) const;
359 GetAddress_unchecked (lldb::offset_t *offset_ptr) const;
411 GetCStr (lldb::offset_t *offset_ptr) const;
436 GetCStr (lldb::offset_t *offset_ptr, lldb::offset_t len) const;
462 GetData (lldb::offset_t *offset_ptr, lldb::offset_t length) const in GetData() argument
464 const uint8_t *ptr = PeekData (*offset_ptr, length); in GetData()
466 *offset_ptr += length; in GetData()
572 GetFloat (lldb::offset_t *offset_ptr) const;
575 GetDouble (lldb::offset_t *offset_ptr) const;
578 GetLongDouble (lldb::offset_t *offset_ptr) const;
[all …]
/external/llvm/lib/DebugInfo/
DDWARFFormValue.cpp130 bool DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, in extractValue() argument
146 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); in extractValue()
149 Value.uval = data.getUnsigned(offset_ptr, AddrSize) + R.second; in extractValue()
151 Value.uval = data.getUnsigned(offset_ptr, AddrSize); in extractValue()
156 Value.uval = data.getULEB128(offset_ptr); in extractValue()
160 Value.uval = data.getU8(offset_ptr); in extractValue()
164 Value.uval = data.getU16(offset_ptr); in extractValue()
168 Value.uval = data.getU32(offset_ptr); in extractValue()
174 Value.uval = data.getU8(offset_ptr); in extractValue()
178 Value.uval = data.getU16(offset_ptr); in extractValue()
[all …]
DDWARFDebugLine.cpp69 uint32_t *offset_ptr) { in parse() argument
70 const uint32_t prologue_offset = *offset_ptr; in parse()
73 TotalLength = debug_line_data.getU32(offset_ptr); in parse()
74 Version = debug_line_data.getU16(offset_ptr); in parse()
78 PrologueLength = debug_line_data.getU32(offset_ptr); in parse()
79 const uint32_t end_prologue_offset = PrologueLength + *offset_ptr; in parse()
80 MinInstLength = debug_line_data.getU8(offset_ptr); in parse()
82 MaxOpsPerInst = debug_line_data.getU8(offset_ptr); in parse()
83 DefaultIsStmt = debug_line_data.getU8(offset_ptr); in parse()
84 LineBase = debug_line_data.getU8(offset_ptr); in parse()
[all …]
DDWARFDebugArangeSet.cpp24 DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument
25 if (data.isValidOffset(*offset_ptr)) { in extract()
27 Offset = *offset_ptr; in extract()
43 HeaderData.Length = data.getU32(offset_ptr); in extract()
44 HeaderData.Version = data.getU16(offset_ptr); in extract()
45 HeaderData.CuOffset = data.getU32(offset_ptr); in extract()
46 HeaderData.AddrSize = data.getU8(offset_ptr); in extract()
47 HeaderData.SegSize = data.getU8(offset_ptr); in extract()
60 const uint32_t header_size = *offset_ptr - Offset; in extract()
66 *offset_ptr = Offset + first_tuple_offset; in extract()
[all …]
DDWARFDebugRangeList.cpp22 bool DWARFDebugRangeList::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument
24 if (!data.isValidOffset(*offset_ptr)) in extract()
29 Offset = *offset_ptr; in extract()
32 uint32_t prev_offset = *offset_ptr; in extract()
33 entry.StartAddress = data.getAddress(offset_ptr); in extract()
34 entry.EndAddress = data.getAddress(offset_ptr); in extract()
36 if (*offset_ptr != prev_offset + 2 * AddressSize) { in extract()
DDWARFTypeUnit.cpp17 uint32_t *offset_ptr) { in extractImpl() argument
18 if (!DWARFUnit::extractImpl(debug_info, offset_ptr)) in extractImpl()
20 TypeHash = debug_info.getU64(offset_ptr); in extractImpl()
21 TypeOffset = debug_info.getU32(offset_ptr); in extractImpl()
DDWARFUnit.cpp54 bool DWARFUnit::extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) { in extractImpl() argument
55 Length = debug_info.getU32(offset_ptr); in extractImpl()
56 Version = debug_info.getU16(offset_ptr); in extractImpl()
57 uint64_t AbbrOffset = debug_info.getU32(offset_ptr); in extractImpl()
58 AddrSize = debug_info.getU8(offset_ptr); in extractImpl()
74 bool DWARFUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) { in extract() argument
77 Offset = *offset_ptr; in extract()
79 if (debug_info.isValidOffset(*offset_ptr)) { in extract()
80 if (extractImpl(debug_info, offset_ptr)) in extract()
84 *offset_ptr = Offset; in extract()
/external/llvm/include/llvm/Support/
DDataExtractor.h60 const char *getCStr(uint32_t *offset_ptr) const;
86 uint64_t getUnsigned(uint32_t *offset_ptr, uint32_t byte_size) const;
111 int64_t getSigned(uint32_t *offset_ptr, uint32_t size) const;
130 uint64_t getAddress(uint32_t *offset_ptr) const { in getAddress() argument
131 return getUnsigned(offset_ptr, AddressSize); in getAddress()
148 uint8_t getU8(uint32_t *offset_ptr) const;
173 uint8_t *getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const;
191 uint16_t getU16(uint32_t *offset_ptr) const;
216 uint16_t *getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count) const;
232 uint32_t getU32(uint32_t *offset_ptr) const;
[all …]
/external/lldb/source/Core/
DDataExtractor.cpp368 DataExtractor::GetU8 (offset_t *offset_ptr) const in GetU8()
370 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, 1); in GetU8()
386 DataExtractor::GetU8 (offset_t *offset_ptr, void *dst, uint32_t count) const in GetU8() argument
388 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, count); in GetU8()
406 DataExtractor::GetU16 (offset_t *offset_ptr) const in GetU16()
409 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, sizeof(val)); in GetU16()
421 DataExtractor::GetU16_unchecked (offset_t *offset_ptr) const in GetU16_unchecked()
425 val = ReadInt16 (m_start, *offset_ptr); in GetU16_unchecked()
427 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
428 *offset_ptr += sizeof(val); in GetU16_unchecked()
[all …]
/external/lldb/source/Plugins/ObjectFile/PECOFF/
DObjectFilePECOFF.cpp359 ObjectFilePECOFF::ParseCOFFHeader(lldb::offset_t *offset_ptr) in ParseCOFFHeader() argument
361 bool success = m_data.ValidOffsetForDataOfSize (*offset_ptr, sizeof(m_coff_header)); in ParseCOFFHeader()
364 m_coff_header.machine = m_data.GetU16(offset_ptr); in ParseCOFFHeader()
365 m_coff_header.nsects = m_data.GetU16(offset_ptr); in ParseCOFFHeader()
366 m_coff_header.modtime = m_data.GetU32(offset_ptr); in ParseCOFFHeader()
367 m_coff_header.symoff = m_data.GetU32(offset_ptr); in ParseCOFFHeader()
368 m_coff_header.nsyms = m_data.GetU32(offset_ptr); in ParseCOFFHeader()
369 m_coff_header.hdrsize = m_data.GetU16(offset_ptr); in ParseCOFFHeader()
370 m_coff_header.flags = m_data.GetU16(offset_ptr); in ParseCOFFHeader()
378 ObjectFilePECOFF::ParseCOFFOptionalHeader(lldb::offset_t *offset_ptr) in ParseCOFFOptionalHeader() argument
[all …]
/external/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/
DAuxVector.cpp33 lldb::offset_t *offset_ptr, in GetMaxU64() argument
37 lldb::offset_t saved_offset = *offset_ptr; in GetMaxU64()
38 *value = data.GetMaxU64(offset_ptr, byte_size); in GetMaxU64()
39 return *offset_ptr != saved_offset; in GetMaxU64()
45 lldb::offset_t *offset_ptr, in ParseAuxvEntry() argument
48 if (!GetMaxU64(data, offset_ptr, &entry.type, byte_size)) in ParseAuxvEntry()
51 if (!GetMaxU64(data, offset_ptr, &entry.value, byte_size)) in ParseAuxvEntry()
/external/llvm/include/llvm/DebugInfo/
DDWARFFormValue.h60 bool extractValue(DataExtractor data, uint32_t *offset_ptr,
74 bool skipValue(DataExtractor debug_info_data, uint32_t *offset_ptr,
77 uint32_t *offset_ptr, const DWARFUnit *u);

12