Home
last modified time | relevance | path

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

12

/llvm-project/lldb/tools/debugserver/source/
H A DDNBDataRef.cpp38 uint8_t DNBDataRef::Get8(offset_t *offset_ptr) const { in Get8()
40 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get8()
41 val = *(m_start + *offset_ptr); in Get8()
42 *offset_ptr += sizeof(val); in Get8()
48 uint16_t DNBDataRef::Get16(offset_t *offset_ptr) const { in Get16()
50 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get16()
51 const uint8_t *p = m_start + *offset_ptr; in Get16()
58 *offset_ptr += sizeof(val); in Get16()
64 uint32_t DNBDataRef::Get32(offset_t *offset_ptr) const { in Get32()
66 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get32()
[all …]
H A DDNBDataRef.h89 uint8_t Get8(offset_t *offset_ptr) const;
90 uint16_t Get16(offset_t *offset_ptr) const;
91 uint32_t Get32(offset_t *offset_ptr) const;
92 uint64_t Get64(offset_t *offset_ptr) const;
93 uint32_t GetMax32(offset_t *offset_ptr, uint32_t byte_size) const;
94 uint64_t GetMax64(offset_t *offset_ptr, uint32_t byte_size) const;
95 uint64_t GetPointer(offset_t *offset_ptr) const;
98 const char *GetCStr(offset_t *offset_ptr, uint32_t fixed_length = 0) const;
105 const uint8_t *GetData(offset_t *offset_ptr, uint32_t length) const;
106 uint64_t Get_ULEB128(offset_t *offset_ptr) const;
[all …]
/llvm-project/llvm/lib/Support/
H A DDataExtractor.cpp41 T DataExtractor::getU(uint64_t *offset_ptr, Error *Err) const { in getU() argument
47 uint64_t offset = *offset_ptr; in getU()
55 *offset_ptr += sizeof(val); in getU()
60 T *DataExtractor::getUs(uint64_t *offset_ptr, T *dst, uint32_t count, in getUs() argument
66 uint64_t offset = *offset_ptr; in getUs()
72 *value_ptr = getU<T>(offset_ptr, Err); in getUs()
74 *offset_ptr = offset; in getUs()
80 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) const { in getU8() argument
81 return getU<uint8_t>(offset_ptr, Err); in getU8()
84 uint8_t *DataExtractor::getU8(uint64_t *offset_ptr, uint8_ argument
93 getU16(uint64_t * offset_ptr,llvm::Error * Err) const getU16() argument
97 getU16(uint64_t * offset_ptr,uint16_t * dst,uint32_t count) const getU16() argument
108 getU32(uint64_t * offset_ptr,llvm::Error * Err) const getU32() argument
112 getU32(uint64_t * offset_ptr,uint32_t * dst,uint32_t count) const getU32() argument
117 getU64(uint64_t * offset_ptr,llvm::Error * Err) const getU64() argument
121 getU64(uint64_t * offset_ptr,uint64_t * dst,uint32_t count) const getU64() argument
126 getUnsigned(uint64_t * offset_ptr,uint32_t byte_size,llvm::Error * Err) const getUnsigned() argument
142 getSigned(uint64_t * offset_ptr,uint32_t byte_size) const getSigned() argument
221 getULEB128(uint64_t * offset_ptr,Error * Err) const getULEB128() argument
225 getSLEB128(uint64_t * offset_ptr,Error * Err) const getSLEB128() argument
[all...]
/llvm-project/lldb/include/lldb/Utility/
H A DDataExtractor.h254 uint64_t GetAddress(lldb::offset_t *offset_ptr) const;
256 uint64_t GetAddress_unchecked(lldb::offset_t *offset_ptr) const;
291 const char *GetCStr(lldb::offset_t *offset_ptr) const;
314 const char *GetCStr(lldb::offset_t *offset_ptr, lldb::offset_t len) const;
337 const void *GetData(lldb::offset_t *offset_ptr, lldb::offset_t length) const { in GetData() argument
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;
441 long double GetLongDouble(lldb::offset_t *offset_ptr) const;
[all …]
/llvm-project/lldb/source/Utility/
H A DDataExtractor.cpp317 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const { in GetU8()
318 const uint8_t *data = static_cast<const uint8_t *>(GetData(offset_ptr, 1)); in GetU8()
330 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument
333 static_cast<const uint8_t *>(GetData(offset_ptr, count)); in GetU8()
348 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16()
351 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU16()
361 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked()
364 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
366 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
367 *offset_ptr += sizeof(val); in GetU16_unchecked()
[all …]
/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFFormValue.cpp32 lldb::offset_t *offset_ptr) { in ExtractValue() argument
48 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue()
51 m_value.uval = data.GetU8(offset_ptr); in ExtractValue()
55 m_value.uval = data.GetU16(offset_ptr); in ExtractValue()
59 m_value.uval = data.GetU32(offset_ptr); in ExtractValue()
68 m_value.uval = data.GetULEB128(offset_ptr); in ExtractValue()
72 m_value.cstr = data.GetCStr(offset_ptr); in ExtractValue()
75 m_value.sval = data.GetSLEB128(offset_ptr); in ExtractValue()
80 m_value.uval = data.GetMaxU64(offset_ptr, 4); in ExtractValue()
87 m_value.uval = data.GetU8(offset_ptr); in ExtractValue()
210 SkipValue(dw_form_t form,const DWARFDataExtractor & debug_info_data,lldb::offset_t * offset_ptr,const DWARFUnit * unit) SkipValue() argument
[all...]
H A DDWARFDebugArangeSet.cpp
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.cpp579 lldb::offset_t *offset_ptr) { in Decode()
582 if (!strtab.Decode(data, offset_ptr)) in Decode()
585 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode()
588 const uint32_t version = data.GetU32(offset_ptr); in Decode()
594 switch (data.GetU8(offset_ptr)) { in Decode()
600 if (!function_basenames.Decode(data, offset_ptr, strtab)) in Decode()
604 if (!function_fullnames.Decode(data, offset_ptr, strtab)) in Decode()
608 if (!function_methods.Decode(data, offset_ptr, strtab)) in Decode()
612 if (!function_selectors.Decode(data, offset_ptr, strtab)) in Encode()
616 if (!objc_class_selectors.Decode(data, offset_ptr, strta in Encode()
549 Decode(const DataExtractor & data,lldb::offset_t * offset_ptr) Decode() argument
665 Decode(const DataExtractor & data,lldb::offset_t * offset_ptr,bool & signature_mismatch) Decode() argument
[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 DDWARFFormValue.h47 bool ExtractValue(const DWARFDataExtractor &data, lldb::offset_t *offset_ptr); in GetUnit()
69 lldb::offset_t *offset_ptr) const;
72 lldb::offset_t *offset_ptr, const DWARFUnit *unit); in SetUnsigned()
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 DDIERef.cpp28 lldb::offset_t *offset_ptr) { in Decode() argument
29 DIERef die_ref(data.GetU64(offset_ptr)); in Decode()
/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugArangeSet.cpp39 uint64_t *offset_ptr, in extract() argument
41 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()
73 offset_ptr, dwarf::getDwarfOffsetByteSize(HeaderData.Format), &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 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.cpp256 uint64_t *offset_ptr, in extract() argument
258 Offset = *offset_ptr; in extract()
262 debug_info.getInitialLength(offset_ptr, &Err); in extract()
263 FormParams.Version = debug_info.getU16(offset_ptr, &Err); in extract()
265 UnitType = debug_info.getU8(offset_ptr, &Err); in extract()
266 FormParams.AddrSize = debug_info.getU8(offset_ptr, &Err); in extract()
268 FormParams.getDwarfOffsetByteSize(), offset_ptr, nullptr, &Err); in extract()
271 FormParams.getDwarfOffsetByteSize(), offset_ptr, nullptr, &Err); in extract()
272 FormParams.AddrSize = debug_info.getU8(offset_ptr, &Err); in extract()
281 TypeHash = debug_info.getU64(offset_ptr, &Err); in extract()
[all …]
/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 …]
/llvm-project/lldb/source/Plugins/ObjectFile/PECOFF/
H A DObjectFilePECOFF.cpp582 lldb::offset_t *offset_ptr, in ParseCOFFHeader()
585 data.ValidOffsetForDataOfSize(*offset_ptr, sizeof(coff_header)); in ParseCOFFHeader()
587 coff_header.machine = data.GetU16(offset_ptr); in ParseCOFFHeader()
588 coff_header.nsects = data.GetU16(offset_ptr); in ParseCOFFHeader()
589 coff_header.modtime = data.GetU32(offset_ptr); in ParseCOFFHeader()
590 coff_header.symoff = data.GetU32(offset_ptr); in ParseCOFFHeader()
591 coff_header.nsyms = data.GetU32(offset_ptr); in ParseCOFFHeader()
592 coff_header.hdrsize = data.GetU16(offset_ptr); in ParseCOFFHeader()
593 coff_header.flags = data.GetU16(offset_ptr); in ParseCOFFHeader()
600 bool ObjectFilePECOFF::ParseCOFFOptionalHeader(lldb::offset_t *offset_ptr) { in ParseCOFFOptionalHeader()
580 ParseCOFFHeader(DataExtractor & data,lldb::offset_t * offset_ptr,coff_header_t & coff_header) ParseCOFFHeader() argument
598 ParseCOFFOptionalHeader(lldb::offset_t * offset_ptr) ParseCOFFOptionalHeader() argument
[all...]
/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()
300 lldb::offset_t *offset_ptr) {
301 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode()
304 const uint32_t length = data.GetU32(offset_ptr); in Decode()
308 const char *bytes = (const char *)data.GetData(offset_ptr, lengt in Decode()
302 Decode(const lldb_private::DataExtractor & data,lldb::offset_t * offset_ptr) Decode() argument
[all...]
H A DMangled.cpp445 bool Mangled::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode()
449 MangledEncoding encoding = (MangledEncoding)data.GetU8(offset_ptr); in Decode()
455 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
459 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
463 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
464 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
443 Decode(const DataExtractor & data,lldb::offset_t * offset_ptr,const StringTableReader & strtab) Decode() argument
/llvm-project/libc/test/src/string/memory_utils/
H A Dmemory_check_utils.h46 offset_ptr = ptr;
47 offset_ptr += distance_to_next_aligned<kAlign>(ptr);
49 ++offset_ptr;
50 ASAN_UNPOISON_MEMORY_REGION(offset_ptr, size);
52 cpp::span<char> span() { return cpp::span<char>(offset_ptr, size); }
56 char *offset_ptr = nullptr;
55 char *offset_ptr = nullptr; global() member
/llvm-project/lldb/source/Symbol/
H A DDWARFCallFrameInfo.cpp36 GetGNUEHPointer(const DataExtractor &DE, lldb::offset_t *offset_ptr, in GetGNUEHPointer() argument
53 baseAddress = *offset_ptr; in GetGNUEHPointer()
91 uint32_t alignOffset = *offset_ptr % addr_size; in GetGNUEHPointer()
93 offset_ptr += addr_size - alignOffset; in GetGNUEHPointer()
104 addressValue = DE.GetAddress(offset_ptr); in GetGNUEHPointer()
106 // addressValue = data_relocs->Relocate(*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()
[all...]
H A DSymbol.cpp647 bool Symbol::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument
650 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 8)) in Decode()
652 m_uid = data.GetU32(offset_ptr); in Decode()
653 m_type_data = data.GetU16(offset_ptr); in Decode()
654 const uint16_t bitfields = data.GetU16(offset_ptr); in Decode()
666 if (!m_mangled.Decode(data, offset_ptr, strtab)) in Decode()
668 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 20)) in Decode()
670 const bool is_addr = data.GetU8(offset_ptr) != 0; in Decode()
671 const uint64_t value = data.GetU64(offset_ptr); in Decode()
679 m_addr_range.SetByteSize(data.GetU64(offset_ptr)); in Decode()
[all...]
H A DSymtab.cpp1213 bool DecodeCStrMap(const DataExtractor &data, lldb::offset_t *offset_ptr, in DecodeCStrMap() argument
1216 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in DecodeCStrMap()
1219 const uint32_t count = data.GetU32(offset_ptr); in DecodeCStrMap()
1223 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in DecodeCStrMap()
1224 uint32_t value = data.GetU32(offset_ptr); in DecodeCStrMap()
1303 bool Symtab::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument
1310 if (!signature.Decode(data, offset_ptr)) in Decode()
1317 if (!strtab.Decode(data, offset_ptr)) in Decode()
1321 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode()
1324 const uint32_t version = data.GetU32(offset_ptr); in Decode()
[all...]
/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()

12