Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDataExtractor.cpp47 uint64_t offset = *offset_ptr; in getU()
55 *offset_ptr += sizeof(val); in getU()
66 uint64_t offset = *offset_ptr; in getUs()
74 *offset_ptr = offset; in getUs()
81 return getU<uint8_t>(offset_ptr, Err); in getU8()
130 return getU8(offset_ptr, Err); in getUnsigned()
132 return getU16(offset_ptr, Err); in getUnsigned()
134 return getU32(offset_ptr, Err); in getUnsigned()
136 return getU64(offset_ptr, Err); in getUnsigned()
145 return (int8_t)getU8(offset_ptr); in getSigned()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DDataExtractor.h254 uint64_t GetAddress(lldb::offset_t *offset_ptr) const;
338 const uint8_t *ptr = PeekData(*offset_ptr, length); in GetData()
340 *offset_ptr += length; in GetData()
437 float GetFloat(lldb::offset_t *offset_ptr) const;
439 double GetDouble(lldb::offset_t *offset_ptr) const;
610 uint8_t GetU8(lldb::offset_t *offset_ptr) const;
613 uint8_t val = m_start[*offset_ptr]; in GetU8_unchecked()
614 *offset_ptr += 1; in GetU8_unchecked()
662 uint16_t GetU16(lldb::offset_t *offset_ptr) const;
703 uint32_t GetU32(lldb::offset_t *offset_ptr) const;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataExtractor.cpp367 *offset_ptr += sizeof(val); in GetU16_unchecked()
377 *offset_ptr += sizeof(val); in GetU32_unchecked()
387 *offset_ptr += sizeof(val); in GetU64_unchecked()
530 return GetU8(offset_ptr); in GetMaxU64()
532 return GetU16(offset_ptr); in GetMaxU64()
562 *offset_ptr += byte_size; in GetMaxU64_unchecked()
635 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble()
638 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble()
821 *offset_ptr += len; in GetCStr()
850 *offset_ptr += byte_count; in GetULEB128()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFFormValue.cpp219 *offset_ptr += size; in SkipValue()
224 *offset_ptr += size; in SkipValue()
229 *offset_ptr += size; in SkipValue()
234 *offset_ptr += size; in SkipValue()
256 *offset_ptr += ref_addr_size; in SkipValue()
270 *offset_ptr += 1; in SkipValue()
278 *offset_ptr += 2; in SkipValue()
284 *offset_ptr += 3; in SkipValue()
291 *offset_ptr += 4; in SkipValue()
299 *offset_ptr += 4; in SkipValue()
[all …]
H A DDWARFDebugArangeSet.cpp34 assert(data.ValidOffset(*offset_ptr)); in extract()
37 m_offset = *offset_ptr; in extract()
53 m_header.length = data.GetDWARFInitialLength(offset_ptr); in extract()
57 m_next_offset = *offset_ptr + m_header.length; in extract()
60 m_header.version = data.GetU16(offset_ptr); in extract()
61 m_header.cu_offset = data.GetDWARFOffset(offset_ptr); in extract()
62 m_header.addr_size = data.GetU8(offset_ptr); in extract()
63 m_header.seg_size = data.GetU8(offset_ptr); in extract()
96 const uint32_t header_size = *offset_ptr - m_offset; in extract()
102 *offset_ptr = m_offset + first_tuple_offset; in extract()
[all …]
H A DDWARFDataExtractor.cpp15 DWARFDataExtractor::GetDWARFInitialLength(lldb::offset_t *offset_ptr) const { in GetDWARFInitialLength()
16 return GetU32(offset_ptr); in GetDWARFInitialLength()
20 DWARFDataExtractor::GetDWARFOffset(lldb::offset_t *offset_ptr) const { in GetDWARFOffset()
21 return GetMaxU64(offset_ptr, GetDWARFSizeOfOffset()); in GetDWARFOffset()
H A DManualDWARFIndex.cpp549 if (!strtab.Decode(data, offset_ptr)) in Decode()
555 const uint32_t version = data.GetU32(offset_ptr); in Decode()
561 switch (data.GetU8(offset_ptr)) { in Decode()
567 if (!function_basenames.Decode(data, offset_ptr, strtab)) in Decode()
575 if (!function_methods.Decode(data, offset_ptr, strtab)) in Decode()
587 if (!globals.Decode(data, offset_ptr, strtab)) in Decode()
591 if (!types.Decode(data, offset_ptr, strtab)) in Decode()
595 if (!namespaces.Decode(data, offset_ptr, strtab)) in Decode()
662 lldb::offset_t *offset_ptr, in Decode() argument
666 if (!signature.Decode(data, offset_ptr)) in Decode()
[all …]
H A DNameToDIE.cpp97 bool NameToDIE::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument
100 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode()
103 const uint32_t count = data.GetU32(offset_ptr); in Decode()
106 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in Decode()
110 if (std::optional<DIERef> die_ref = DIERef::Decode(data, offset_ptr)) in Decode()
H A DDWARFUnit.cpp936 lldb::offset_t *offset_ptr) { in extract() argument
938 header.m_offset = *offset_ptr; in extract()
939 header.m_length = data.GetDWARFInitialLength(offset_ptr); in extract()
940 header.m_version = data.GetU16(offset_ptr); in extract()
942 header.m_unit_type = data.GetU8(offset_ptr); in extract()
943 header.m_addr_size = data.GetU8(offset_ptr); in extract()
944 header.m_abbr_offset = data.GetDWARFOffset(offset_ptr); in extract()
947 header.m_dwo_id = data.GetU64(offset_ptr); in extract()
950 header.m_addr_size = data.GetU8(offset_ptr); in extract()
956 header.m_type_hash = data.GetU64(offset_ptr); in extract()
[all …]
H A DDWARFDataExtractor.h26 uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const;
28 dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const;
H A DDWARFFormValue.h57 bool ExtractValue(const DWARFDataExtractor &data, lldb::offset_t *offset_ptr);
79 lldb::offset_t *offset_ptr) const;
82 lldb::offset_t *offset_ptr, const DWARFUnit *unit);
H A DDIERef.cpp28 lldb::offset_t *offset_ptr) { in Decode() argument
29 DIERef die_ref(data.GetU64(offset_ptr)); in Decode()
H A DDWARFDebugInfoEntry.cpp45 lldb::offset_t *offset_ptr) { in Extract() argument
46 m_offset = *offset_ptr; in Extract()
49 const uint64_t abbr_idx = data.GetULEB128(offset_ptr); in Extract()
67 *offset_ptr = UINT32_MAX; in Extract()
74 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, cu)) in Extract()
82 *offset_ptr = m_offset; in Extract()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugArangeSet.cpp41 assert(data.isValidOffset(*offset_ptr)); in extract()
43 Offset = *offset_ptr; in extract()
70 data.getInitialLength(offset_ptr, &Err); in extract()
71 HeaderData.Version = data.getU16(offset_ptr, &Err); in extract()
74 HeaderData.AddrSize = data.getU8(offset_ptr, &Err); in extract()
75 HeaderData.SegSize = data.getU8(offset_ptr, &Err); in extract()
114 const uint32_t header_size = *offset_ptr - Offset; in extract()
127 *offset_ptr = Offset + first_tuple_offset; in extract()
137 while (*offset_ptr < end_offset) { in extract()
138 uint64_t EntryOffset = *offset_ptr; in extract()
[all …]
H A DDWARFDebugRangeList.cpp32 uint64_t *offset_ptr) { in extract() argument
34 if (!data.isValidOffset(*offset_ptr)) in extract()
36 "invalid range list offset 0x%" PRIx64, *offset_ptr); in extract()
41 "range list at offset 0x%" PRIx64, *offset_ptr)) in extract()
43 Offset = *offset_ptr; in extract()
48 uint64_t prev_offset = *offset_ptr; in extract()
49 Entry.StartAddress = data.getRelocatedAddress(offset_ptr); in extract()
51 data.getRelocatedAddress(offset_ptr, &Entry.SectionIndex); in extract()
54 if (*offset_ptr != prev_offset + 2 * AddressSize) { in extract()
H A DDWARFUnit.cpp252 uint64_t *offset_ptr, in extract() argument
254 Offset = *offset_ptr; in extract()
258 debug_info.getInitialLength(offset_ptr, &Err); in extract()
259 FormParams.Version = debug_info.getU16(offset_ptr, &Err); in extract()
261 UnitType = debug_info.getU8(offset_ptr, &Err); in extract()
262 FormParams.AddrSize = debug_info.getU8(offset_ptr, &Err); in extract()
268 FormParams.AddrSize = debug_info.getU8(offset_ptr, &Err); in extract()
277 TypeHash = debug_info.getU64(offset_ptr, &Err); in extract()
279 offset_ptr, FormParams.getDwarfOffsetByteSize(), &Err); in extract()
281 DWOId = debug_info.getU64(offset_ptr, &Err); in extract()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DDataExtractor.h273 uint64_t getUnsigned(uint64_t *offset_ptr, uint32_t byte_size,
306 int64_t getSigned(uint64_t *offset_ptr, uint32_t size) const;
325 uint64_t getAddress(uint64_t *offset_ptr) const { in getAddress() argument
326 return getUnsigned(offset_ptr, AddressSize); in getAddress()
354 uint8_t getU8(uint64_t *offset_ptr, Error *Err = nullptr) const;
384 uint8_t *getU8(uint64_t *offset_ptr, uint8_t *dst, uint32_t count) const;
428 uint16_t getU16(uint64_t *offset_ptr, Error *Err = nullptr) const;
458 uint16_t *getU16(uint64_t *offset_ptr, uint16_t *dst, uint32_t count) const;
508 uint32_t getU32(uint64_t *offset_ptr, Error *Err = nullptr) const;
538 uint32_t *getU32(uint64_t *offset_ptr, uint32_t *dst, uint32_t count) const;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDataFileCache.cpp233 lldb::offset_t *offset_ptr) { in Decode() argument
235 while (uint8_t sig_encoding = data.GetU8(offset_ptr)) { in Decode()
238 const uint8_t length = data.GetU8(offset_ptr); in Decode()
239 const uint8_t *bytes = (const uint8_t *)data.GetData(offset_ptr, length); in Decode()
244 uint32_t mod_time = data.GetU32(offset_ptr); in Decode()
249 uint32_t mod_time = data.GetU32(offset_ptr); in Decode()
302 lldb::offset_t *offset_ptr) { in Decode() argument
303 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode()
306 const uint32_t length = data.GetU32(offset_ptr); in Decode()
310 const char *bytes = (const char *)data.GetData(offset_ptr, length); in Decode()
H A DMangled.cpp431 bool Mangled::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument
435 MangledEncoding encoding = (MangledEncoding)data.GetU8(offset_ptr); in Decode()
441 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
445 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
449 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
450 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
/freebsd/sys/arm/arm/
H A Dstdatomic.c136 put_1(reg_t *r, const uint8_t *offset_ptr, uint8_t val) in put_1() argument
140 offset = (intptr_t)offset_ptr & 3; in put_1()
145 get_1(const reg_t *r, const uint8_t *offset_ptr) in get_1() argument
149 offset = (intptr_t)offset_ptr & 3; in get_1()
154 put_2(reg_t *r, const uint16_t *offset_ptr, uint16_t val) in put_2() argument
162 offset = (intptr_t)offset_ptr & 3; in put_2()
169 get_2(const reg_t *r, const uint16_t *offset_ptr) in get_2() argument
177 offset = (intptr_t)offset_ptr & 3; in get_2()
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DDWARFCallFrameInfo.cpp53 baseAddress = *offset_ptr; in GetGNUEHPointer()
93 offset_ptr += addr_size - alignOffset; in GetGNUEHPointer()
104 addressValue = DE.GetAddress(offset_ptr); in GetGNUEHPointer()
110 addressValue = DE.GetULEB128(offset_ptr); in GetGNUEHPointer()
113 addressValue = DE.GetU16(offset_ptr); in GetGNUEHPointer()
116 addressValue = DE.GetU32(offset_ptr); in GetGNUEHPointer()
119 addressValue = DE.GetU64(offset_ptr); in GetGNUEHPointer()
122 addressValue = DE.GetSLEB128(offset_ptr); in GetGNUEHPointer()
125 addressValue = (int16_t)DE.GetU16(offset_ptr); in GetGNUEHPointer()
128 addressValue = (int32_t)DE.GetU32(offset_ptr); in GetGNUEHPointer()
[all …]
H A DSymbol.cpp651 bool Symbol::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument
654 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 8)) in Decode()
656 m_uid = data.GetU32(offset_ptr); in Decode()
657 m_type_data = data.GetU16(offset_ptr); in Decode()
658 const uint16_t bitfields = data.GetU16(offset_ptr); in Decode()
670 if (!m_mangled.Decode(data, offset_ptr, strtab)) in Decode()
672 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 20)) in Decode()
674 const bool is_addr = data.GetU8(offset_ptr) != 0; in Decode()
675 const uint64_t value = data.GetU64(offset_ptr); in Decode()
683 m_addr_range.SetByteSize(data.GetU64(offset_ptr)); in Decode()
[all …]
H A DSymtab.cpp1207 const uint32_t count = data.GetU32(offset_ptr); in DecodeCStrMap()
1211 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in DecodeCStrMap()
1212 uint32_t value = data.GetU32(offset_ptr); in DecodeCStrMap()
1298 if (!signature.Decode(data, offset_ptr)) in Decode()
1305 if (!strtab.Decode(data, offset_ptr)) in Decode()
1312 const uint32_t version = data.GetU32(offset_ptr); in Decode()
1315 const uint32_t num_symbols = data.GetU32(offset_ptr); in Decode()
1321 if (!m_symbols[i].Decode(data, offset_ptr, sections, strtab)) in Decode()
1328 const uint8_t num_cstr_maps = data.GetU8(offset_ptr); in Decode()
1330 uint8_t type = data.GetU8(offset_ptr); in Decode()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.cpp159 bool ObjectFileWasm::DecodeNextSection(lldb::offset_t *offset_ptr) { in DecodeNextSection() argument
163 DataExtractor section_header_data = ReadImageData(*offset_ptr, kBufferSize); in DecodeNextSection()
193 m_sect_infos.push_back(section_info{*offset_ptr + c.tell(), section_length, in DecodeNextSection()
195 *offset_ptr += (c.tell() + section_length); in DecodeNextSection()
197 m_sect_infos.push_back(section_info{*offset_ptr + c.tell(), in DecodeNextSection()
200 *offset_ptr += (c.tell() + payload_len); in DecodeNextSection()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DDataFileCache.h176 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr);
219 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr);

12