/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DataExtractor.cpp | 41 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...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | DataExtractor.h | 254 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 …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFFormValue.cpp | 32 lldb::offset_t *offset_ptr) { in ExtractValue() 48 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue() 51 m_value.value.uval = data.GetU8(offset_ptr); in ExtractValue() 55 m_value.value.uval = data.GetU16(offset_ptr); in ExtractValue() 59 m_value.value.uval = data.GetU32(offset_ptr); in ExtractValue() 68 m_value.value.uval = data.GetULEB128(offset_ptr); in ExtractValue() 72 m_value.value.cstr = data.GetCStr(offset_ptr); in ExtractValue() 75 m_value.value.sval = data.GetSLEB128(offset_ptr); in ExtractValue() 80 m_value.value.uval = data.GetMaxU64(offset_ptr, 4); in ExtractValue() 87 m_value.value.uval = data.GetU8(offset_ptr); in ExtractValue() 33 ExtractValue(const DWARFDataExtractor & data,lldb::offset_t * offset_ptr) ExtractValue() argument 211 SkipValue(dw_form_t form,const DWARFDataExtractor & debug_info_data,lldb::offset_t * offset_ptr,const DWARFUnit * unit) SkipValue() argument [all...] |
H A D | DWARFDebugArangeSet.cpp | 33 lldb::offset_t *offset_ptr) { in extract() 34 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 in extract() 32 extract(const DWARFDataExtractor & data,lldb::offset_t * offset_ptr) extract() argument [all...] |
H A D | DWARFDataExtractor.cpp | 15 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 D | ManualDWARFIndex.cpp | 549 lldb::offset_t *offset_ptr) { in Decode() argument 552 if (!strtab.Decode(data, offset_ptr)) in Decode() 555 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 558 const uint32_t version = data.GetU32(offset_ptr); in Decode() 564 switch (data.GetU8(offset_ptr)) { in Decode() 570 if (!function_basenames.Decode(data, offset_ptr, strtab)) in Decode() 574 if (!function_fullnames.Decode(data, offset_ptr, strtab)) in Decode() 578 if (!function_methods.Decode(data, offset_ptr, strtab)) in Decode() 582 if (!function_selectors.Decode(data, offset_ptr, strtab)) in Decode() 586 if (!objc_class_selectors.Decode(data, offset_ptr, strtab)) in Decode() [all …]
|
H A D | NameToDIE.cpp | 97 bool NameToDIE::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() 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() 96 Decode(const DataExtractor & data,lldb::offset_t * offset_ptr,const StringTableReader & strtab) Decode() argument
|
H A D | DWARFFormValue.h | 57 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 D | DWARFDataExtractor.h | 26 uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const; 28 dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const;
|
H A D | DIERef.cpp | 28 lldb::offset_t *offset_ptr) { in Decode() 29 DIERef die_ref(data.GetU64(offset_ptr)); in Decode() 27 Decode(const DataExtractor & data,lldb::offset_t * offset_ptr) Decode() argument
|
H A D | ManualDWARFIndex.h | 71 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr); 100 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr,
|
H A D | DWARFDebugInfoEntry.cpp | 46 lldb::offset_t *offset_ptr) { in Extract() argument 47 m_offset = *offset_ptr; in Extract() 53 *offset_ptr = std::numeric_limits<lldb::offset_t>::max(); in Extract() 59 const uint64_t abbr_idx = data.GetULEB128(offset_ptr); in Extract() 78 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, &unit)) in Extract()
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | DataExtractor.cpp | 317 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFDebugArangeSet.cpp | 39 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 = Offset + first_tuple_offset; in extract() [all …]
|
H A D | DWARFDebugRangeList.cpp | 32 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 D | DWARFUnit.cpp | 256 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 …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | DataExtractor.h | 273 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 D | DataFileCache.cpp | 233 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, lengt in Decode() [all...] |
H A D | Mangled.cpp | 443 bool Mangled::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 447 MangledEncoding encoding = (MangledEncoding)data.GetU8(offset_ptr); in Decode() 453 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 457 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 461 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 462 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
|
/freebsd/sys/arm/arm/ |
H A D | stdatomic.c | 136 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 D | DWARFCallFrameInfo.cpp | 36 GetGNUEHPointer(const DataExtractor &DE, 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() 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() [all …]
|
H A D | Symbol.cpp | 647 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 D | Symtab.cpp | 1213 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 …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/ |
H A D | ObjectFileWasm.cpp | 159 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 D | DataFileCache.h | 176 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr); 219 bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr);
|