Searched refs:offset_ptr (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-10.2-release/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDataExtractor.cpp15 DWARFDataExtractor::GetDWARFInitialLength(lldb::offset_t *offset_ptr) const
17 uint64_t length = GetU32(offset_ptr);
20 length = GetU64(offset_ptr);
25 DWARFDataExtractor::GetDWARFOffset(lldb::offset_t *offset_ptr) const
27 return GetMaxU64(offset_ptr, m_is_dwarf64 ? 8 : 4);
H A DDWARFDebugMacinfoEntry.cpp83 DWARFDebugMacinfoEntry::Extract(const DWARFDataExtractor& 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 DDWARFFormValue.cpp117 DWARFFormValue::ExtractValue(const DWARFDataExtractor& 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 DWARFDataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) const argument
192 SkipValue(dw_form_t form, const DWARFDataExtractor& debug_info_data, lldb::offset_t *offset_ptr, const DWARFCompileUnit* cu) argument
[all...]
H A DDWARFLocationDescription.cpp18 static int print_dwarf_exp_op (Stream &s, const DWARFDataExtractor& 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 DWARFDataExtractor& data, lldb::offset_t *offset_ptr, int address_size, int dwarf_ref_size) argument
[all...]
H A DDWARFDebugRanges.cpp86 DWARFDebugRanges::Extract(SymbolFileDWARF* dwarf2Data, lldb::offset_t *offset_ptr, RangeList &range_list) argument
90 lldb::offset_t range_offset = *offset_ptr;
94 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size))
96 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size);
97 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size);
131 return range_offset != *offset_ptr;
136 DWARFDebugRanges::Dump(Stream &s, const DWARFDataExtractor& debug_ranges_data, lldb::offset_t *offset_ptr, dw_addr_t cu_base_addr) argument
142 while (debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size))
144 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size);
145 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_siz
[all...]
H A DDWARFDataExtractor.h28 GetDWARFInitialLength(lldb::offset_t *offset_ptr) const;
31 GetDWARFOffset(lldb::offset_t *offset_ptr) const;
H A DDWARFDebugPubnamesSet.cpp81 DWARFDebugPubnamesSet::Extract(const DWARFDataExtractor& data, lldb::offset_t *offset_ptr) argument
83 if (data.ValidOffset(*offset_ptr))
86 m_offset = *offset_ptr;
87 m_header.length = data.GetDWARFInitialLength(offset_ptr);
88 m_header.version = data.GetU16(offset_ptr);
89 m_header.die_offset = data.GetDWARFOffset(offset_ptr);
90 m_header.die_length = data.GetDWARFOffset(offset_ptr);
93 while (data.ValidOffset(*offset_ptr))
95 pubnameDesc.offset = data.GetDWARFOffset(offset_ptr);
99 const char* name = data.GetCStr(offset_ptr);
[all...]
H A DDWARFAbbreviationDeclaration.cpp35 DWARFAbbreviationDeclaration::Extract(const DWARFDataExtractor& data, lldb::offset_t* offset_ptr) argument
37 return Extract(data, offset_ptr, data.GetULEB128(offset_ptr));
41 DWARFAbbreviationDeclaration::Extract(const DWARFDataExtractor& 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 DDWARFDebugArangeSet.cpp165 DWARFDebugArangeSet::Extract(const DWARFDataExtractor &data, lldb::offset_t *offset_ptr) argument
167 if (data.ValidOffset(*offset_ptr))
170 m_offset = *offset_ptr;
186 m_header.length = data.GetDWARFInitialLength(offset_ptr);
187 m_header.version = data.GetU16(offset_ptr);
188 m_header.cu_offset = data.GetDWARFOffset(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 DDWARFDebugLine.cpp404 DWARFDebugLine::ParsePrologue(const DWARFDataExtractor& 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.GetDWARFInitialLength(offset_ptr);
414 prologue->version = debug_line_data.GetU16(offset_ptr);
418 prologue->prologue_length = debug_line_data.GetDWARFOffset(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);
576 ParseStatementTable( const DWARFDataExtractor& debug_line_data, lldb::offset_t* offset_ptr, DWARFDebugLine::State::Callback callback, void* userData ) argument
879 ParseStatementTable(const DWARFDataExtractor& debug_line_data, lldb::offset_t *offset_ptr, LineTable* line_table) argument
[all...]
H A DDWARFDebugRanges.h29 static void Dump(lldb_private::Stream &s, const lldb_private::DWARFDataExtractor& debug_ranges_data, lldb::offset_t *offset_ptr, dw_addr_t cu_base_addr);
36 lldb::offset_t *offset_ptr,
H A DDWARFDebugMacinfoEntry.h42 lldb::offset_t* offset_ptr);
H A DDWARFLocationList.cpp55 DWARFLocationList::Extract(const DWARFDataExtractor& debug_loc_data, lldb::offset_t* offset_ptr, DWARFDataExtractor& 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 DDWARFLocationList.h26 lldb::offset_t* offset_ptr,
/freebsd-10.2-release/contrib/llvm/lib/Support/
H A DDataExtractor.cpp17 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...]
/freebsd-10.2-release/contrib/llvm/include/llvm/Support/
H A DDataExtractor.h40 /// Extract a C string from \a *offset_ptr.
43 /// pointed to by \a offset_ptr. A variable length NULL terminated C
44 /// string will be extracted and the \a offset_ptr will be
48 /// @param[in,out] offset_ptr
57 /// pointed to by \a offset_ptr is out of bounds, or if the
60 const char *getCStr(uint32_t *offset_ptr) const;
63 /// *offset_ptr.
66 /// pointed to by \a offset_ptr. The size of the extracted integer
73 /// @param[in,out] offset_ptr
86 uint64_t getUnsigned(uint32_t *offset_ptr, uint32_
[all...]
/freebsd-10.2-release/contrib/llvm/lib/DebugInfo/
H A DDWARFDebugArangeSet.cpp24 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 DDWARFTypeUnit.cpp17 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 DDWARFDebugRangeList.cpp22 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 DDWARFFormValue.cpp130 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 DDWARFDebugLine.cpp167 uint32_t *offset_ptr, Prologue *prologue) {
168 const uint32_t prologue_offset = *offset_ptr;
171 prologue->TotalLength = debug_line_data.getU32(offset_ptr);
172 prologue->Version = debug_line_data.getU16(offset_ptr);
176 prologue->PrologueLength = debug_line_data.getU32(offset_ptr);
177 const uint32_t end_prologue_offset = prologue->PrologueLength + *offset_ptr;
178 prologue->MinInstLength = debug_line_data.getU8(offset_ptr);
179 prologue->DefaultIsStmt = debug_line_data.getU8(offset_ptr);
180 prologue->LineBase = debug_line_data.getU8(offset_ptr);
181 prologue->LineRange = debug_line_data.getU8(offset_ptr);
166 parsePrologue(DataExtractor debug_line_data, uint32_t *offset_ptr, Prologue *prologue) argument
222 parseStatementTable(DataExtractor debug_line_data, const RelocAddrMap *RMap, uint32_t *offset_ptr, State &state) argument
[all...]
/freebsd-10.2-release/contrib/llvm/tools/lldb/include/lldb/Core/
H A DDataExtractor.h338 /// 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...]
/freebsd-10.2-release/contrib/llvm/tools/lldb/source/Core/
H A DDataExtractor.cpp392 // the offset pointed to by "offset_ptr".
397 DataExtractor::GetU8 (offset_t *offset_ptr) const
399 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, 1);
407 // offset pointed to by "offset_ptr". The extracted data is copied into
415 DataExtractor::GetU8 (offset_t *offset_ptr, void *dst, uint32_t count) const argument
417 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, count);
430 // pointed to by "offset_ptr".
435 DataExtractor::GetU16 (offset_t *offset_ptr) const
438 const uint8_t *data = (const uint8_t *)GetData (offset_ptr, sizeof(val));
450 DataExtractor::GetU16_unchecked (offset_t *offset_ptr) cons
496 GetU16(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument
559 GetU32(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument
620 GetU64(offset_t *offset_ptr, void *void_dst, uint32_t count) const argument
659 GetMaxU32(offset_t *offset_ptr, size_t byte_size) const argument
684 GetMaxU64(offset_t *offset_ptr, size_t size) const argument
700 GetMaxU64_unchecked(offset_t *offset_ptr, size_t size) const argument
716 GetMaxS64(offset_t *offset_ptr, size_t size) const argument
732 GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset) const argument
748 GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset) const argument
869 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
1171 GetCStr(offset_t *offset_ptr, offset_t len) const argument
1315 GetAPInt(const DataExtractor &data, lldb::offset_t *offset_ptr, lldb::offset_t byte_size, llvm::APInt &result) argument
[all...]
/freebsd-10.2-release/contrib/llvm/include/llvm/DebugInfo/
H A 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);
/freebsd-10.2-release/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/
H A DAuxVector.cpp33 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

Completed in 96 milliseconds

123