| /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_t *dst, in getU8() 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/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/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFFormValue.cpp | 32 lldb::offset_t *offset_ptr) { in ExtractValue() argument 47 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue() 50 m_value.uval = data.GetU8(offset_ptr); in ExtractValue() 54 m_value.uval = data.GetU16(offset_ptr); in ExtractValue() 58 m_value.uval = data.GetU32(offset_ptr); in ExtractValue() 67 m_value.uval = data.GetULEB128(offset_ptr); in ExtractValue() 71 m_value.cstr = data.GetCStr(offset_ptr); in ExtractValue() 74 m_value.sval = data.GetSLEB128(offset_ptr); in ExtractValue() 81 offset_ptr, m_unit->GetFormParams().getDwarfOffsetByteSize()); in ExtractValue() 88 m_value.uval = data.GetU8(offset_ptr); in ExtractValue() [all …]
|
| H A D | ManualDWARFIndexSet.cpp | 42 lldb::offset_t *offset_ptr) { in DecodeIndexSet() argument 45 if (!strtab.Decode(data, offset_ptr)) in DecodeIndexSet() 48 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in DecodeIndexSet() 51 const uint32_t version = data.GetU32(offset_ptr); in DecodeIndexSet() 57 switch (data.GetU8(offset_ptr)) { in DecodeIndexSet() 63 if (!result.function_basenames.Decode(data, offset_ptr, strtab)) in DecodeIndexSet() 67 if (!result.function_fullnames.Decode(data, offset_ptr, strtab)) in DecodeIndexSet() 71 if (!result.function_methods.Decode(data, offset_ptr, strtab)) in DecodeIndexSet() 75 if (!result.function_selectors.Decode(data, offset_ptr, strtab)) in DecodeIndexSet() 79 if (!result.objc_class_selectors.Decode(data, offset_ptr, strtab)) in DecodeIndexSet() [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 | 47 bool ExtractValue(const DWARFDataExtractor &data, lldb::offset_t *offset_ptr); 69 lldb::offset_t *offset_ptr) const; 72 lldb::offset_t *offset_ptr, const DWARFUnit *unit);
|
| 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 | DWARFDebugInfoEntry.cpp | 45 lldb::offset_t *offset_ptr) { in Extract() argument 46 m_offset = *offset_ptr; in Extract() 52 *offset_ptr = std::numeric_limits<lldb::offset_t>::max(); in Extract() 58 const uint64_t abbr_idx = data.GetULEB128(offset_ptr); in Extract() 77 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, &unit)) in Extract()
|
| H A D | ManualDWARFIndexSet.h | 49 lldb::offset_t *offset_ptr);
|
| /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 | 276 LLVM_ABI uint64_t getUnsigned(uint64_t *offset_ptr, uint32_t byte_size, 309 LLVM_ABI int64_t getSigned(uint64_t *offset_ptr, uint32_t size) const; 328 uint64_t getAddress(uint64_t *offset_ptr) const { in getAddress() argument 329 return getUnsigned(offset_ptr, AddressSize); in getAddress() 357 LLVM_ABI uint8_t getU8(uint64_t *offset_ptr, Error *Err = nullptr) const; 387 LLVM_ABI uint8_t *getU8(uint64_t *offset_ptr, uint8_t *dst, 444 LLVM_ABI uint16_t getU16(uint64_t *offset_ptr, Error *Err = nullptr) const; 474 LLVM_ABI uint16_t *getU16(uint64_t *offset_ptr, uint16_t *dst, 537 LLVM_ABI uint32_t getU32(uint64_t *offset_ptr, Error *Err = nullptr) const; 567 LLVM_ABI uint32_t *getU32(uint64_t *offset_ptr, uint32_t *dst, [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | DataFileCache.cpp | 238 lldb::offset_t *offset_ptr) { in Decode() argument 240 while (uint8_t sig_encoding = data.GetU8(offset_ptr)) { in Decode() 243 const uint8_t length = data.GetU8(offset_ptr); in Decode() 244 const uint8_t *bytes = (const uint8_t *)data.GetData(offset_ptr, length); in Decode() 249 uint32_t mod_time = data.GetU32(offset_ptr); in Decode() 254 uint32_t mod_time = data.GetU32(offset_ptr); in Decode() 305 lldb::offset_t *offset_ptr) { in Decode() argument 306 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 309 const uint32_t length = data.GetU32(offset_ptr); in Decode() 313 const char *bytes = (const char *)data.GetData(offset_ptr, length); in Decode()
|
| H A D | Mangled.cpp | 479 bool Mangled::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 484 MangledEncoding encoding = (MangledEncoding)data.GetU8(offset_ptr); in Decode() 490 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 494 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 498 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 499 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
|
| H A D | DumpDataExtractor.cpp | 54 lldb::offset_t *offset_ptr, in GetAPInt() argument 66 u64 = data.GetU64(offset_ptr); in GetAPInt() 69 u64 = data.GetMaxU64(offset_ptr, (uint32_t)bytes_left); in GetAPInt() 76 lldb::offset_t be_offset = *offset_ptr + byte_size; in GetAPInt() 92 *offset_ptr += byte_size; in GetAPInt()
|
| /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, 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() 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 | 649 bool Symbol::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 652 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 8)) in Decode() 654 m_uid = data.GetU32(offset_ptr); in Decode() 655 m_type_data = data.GetU16(offset_ptr); in Decode() 656 const uint16_t bitfields = data.GetU16(offset_ptr); in Decode() 668 if (!m_mangled.Decode(data, offset_ptr, strtab)) in Decode() 670 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 20)) in Decode() 672 const bool is_addr = data.GetU8(offset_ptr) != 0; in Decode() 673 const uint64_t value = data.GetU64(offset_ptr); in Decode() 681 m_addr_range.SetByteSize(data.GetU64(offset_ptr)); in Decode() [all …]
|
| H A D | Symtab.cpp | 1212 bool DecodeCStrMap(const DataExtractor &data, lldb::offset_t *offset_ptr, in DecodeCStrMap() argument 1215 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in DecodeCStrMap() 1218 const uint32_t count = data.GetU32(offset_ptr); in DecodeCStrMap() 1222 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in DecodeCStrMap() 1223 uint32_t value = data.GetU32(offset_ptr); in DecodeCStrMap() 1302 bool Symtab::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 1309 if (!signature.Decode(data, offset_ptr)) in Decode() 1316 if (!strtab.Decode(data, offset_ptr)) in Decode() 1320 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 1323 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);
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCClassDescriptorV2.cpp | 711 lldb::addr_t offset_ptr, in fill() 716 name, type, offset_ptr, size); in fill() 723 name, type, offset_ptr, size, in fill() 730 offset_ptr, offset_ptr_size, is_signed, offset_scalar, error); in fill() 732 LLDB_LOGV(log, "offset_ptr = {0:x} --> {1}", offset_ptr, in fill() 738 offset_ptr, read); in fill()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDebugRangeList.h | 69 LLVM_ABI Error extract(const DWARFDataExtractor &data, uint64_t *offset_ptr);
|