| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/ |
| H A D | DNBDataRef.cpp | 38 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 D | DNBDataRef.h | 89 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | DataExtractor.cpp | 40 T DataExtractor::getU(uint64_t *offset_ptr, Error *Err) const { in getU() argument 46 uint64_t offset = *offset_ptr; in getU() 54 *offset_ptr += sizeof(val); in getU() 59 T *DataExtractor::getUs(uint64_t *offset_ptr, T *dst, uint32_t count, in getUs() argument 65 uint64_t offset = *offset_ptr; in getUs() 71 *value_ptr = getU<T>(offset_ptr, Err); in getUs() 73 *offset_ptr = offset; in getUs() 79 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) const { in getU8() argument 80 return getU<uint8_t>(offset_ptr, Err); in getU8() 83 uint8_t *DataExtractor::getU8(uint64_t *offset_ptr, uint8_t *dst, in getU8() argument [all …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFFormValue.cpp | 33 lldb::offset_t *offset_ptr) { in ExtractValue() argument 49 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue() 52 m_value.value.uval = data.GetU8(offset_ptr); in ExtractValue() 56 m_value.value.uval = data.GetU16(offset_ptr); in ExtractValue() 60 m_value.value.uval = data.GetU32(offset_ptr); in ExtractValue() 69 m_value.value.uval = data.GetULEB128(offset_ptr); in ExtractValue() 73 m_value.value.cstr = data.GetCStr(offset_ptr); in ExtractValue() 76 m_value.value.sval = data.GetSLEB128(offset_ptr); in ExtractValue() 81 m_value.value.uval = data.GetMaxU64(offset_ptr, 4); in ExtractValue() 88 m_value.value.uval = data.GetU8(offset_ptr); in ExtractValue() [all …]
|
| H A D | DWARFDebugArangeSet.cpp | 32 lldb::offset_t *offset_ptr) { in extract() argument 33 assert(data.ValidOffset(*offset_ptr)); in extract() 36 m_offset = *offset_ptr; in extract() 52 m_header.length = data.GetDWARFInitialLength(offset_ptr); in extract() 56 m_next_offset = *offset_ptr + m_header.length; in extract() 59 m_header.version = data.GetU16(offset_ptr); in extract() 60 m_header.cu_offset = data.GetDWARFOffset(offset_ptr); in extract() 61 m_header.addr_size = data.GetU8(offset_ptr); in extract() 62 m_header.seg_size = data.GetU8(offset_ptr); in extract() 95 const uint32_t header_size = *offset_ptr - m_offset; in extract() [all …]
|
| H A D | DWARFDebugRanges.cpp | 41 lldb::offset_t *offset_ptr, in Extract() argument 45 lldb::offset_t range_offset = *offset_ptr; in Extract() 52 debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) { in Extract() 53 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Extract() 54 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Extract() 72 return range_offset != *offset_ptr; in Extract() 77 lldb::offset_t *offset_ptr, in Dump() argument 83 debug_ranges_data.ValidOffsetForDataOfSize(*offset_ptr, 2 * addr_size)) { in Dump() 84 dw_addr_t begin = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Dump() 85 dw_addr_t end = debug_ranges_data.GetMaxU64(offset_ptr, addr_size); in Dump()
|
| H A D | DWARFAbbreviationDeclaration.cpp | 29 lldb::offset_t *offset_ptr) { in extract() argument 30 m_code = data.GetULEB128(offset_ptr); in extract() 35 m_tag = static_cast<dw_tag_t>(data.GetULEB128(offset_ptr)); in extract() 40 m_has_children = data.GetU8(offset_ptr); in extract() 42 while (data.ValidOffset(*offset_ptr)) { in extract() 43 dw_attr_t attr = data.GetULEB128(offset_ptr); in extract() 44 dw_form_t form = data.GetULEB128(offset_ptr); in extract() 59 val.value.sval = data.GetSLEB128(offset_ptr); in extract()
|
| 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 | 531 lldb::offset_t *offset_ptr) { in Decode() argument 534 if (!strtab.Decode(data, offset_ptr)) in Decode() 537 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 540 const uint32_t version = data.GetU32(offset_ptr); in Decode() 546 switch (data.GetU8(offset_ptr)) { in Decode() 552 if (!function_basenames.Decode(data, offset_ptr, strtab)) in Decode() 556 if (!function_fullnames.Decode(data, offset_ptr, strtab)) in Decode() 560 if (!function_methods.Decode(data, offset_ptr, strtab)) in Decode() 564 if (!function_selectors.Decode(data, offset_ptr, strtab)) in Decode() 568 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() 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 D | DIERef.cpp | 31 lldb::offset_t *offset_ptr) { in Decode() argument 32 const uint32_t bitfield_storage = data.GetU32(offset_ptr); in Decode() 38 dw_offset_t die_offset = data.GetU32(offset_ptr); in Decode()
|
| H A D | DWARFUnit.cpp | 881 lldb::offset_t *offset_ptr) { in extract() argument 883 header.m_offset = *offset_ptr; in extract() 884 header.m_length = data.GetDWARFInitialLength(offset_ptr); in extract() 885 header.m_version = data.GetU16(offset_ptr); in extract() 887 header.m_unit_type = data.GetU8(offset_ptr); in extract() 888 header.m_addr_size = data.GetU8(offset_ptr); in extract() 889 header.m_abbr_offset = data.GetDWARFOffset(offset_ptr); in extract() 892 header.m_dwo_id = data.GetU64(offset_ptr); in extract() 894 header.m_abbr_offset = data.GetDWARFOffset(offset_ptr); in extract() 895 header.m_addr_size = data.GetU8(offset_ptr); in extract() [all …]
|
| H A D | DWARFFormValue.h | 56 lldb::offset_t *offset_ptr); 72 lldb::offset_t *offset_ptr) const; 75 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 | DWARFDebugAbbrev.cpp | 25 lldb::offset_t *offset_ptr) { in extract() argument 26 const lldb::offset_t begin_offset = *offset_ptr; in extract() 33 abbrevDeclaration.extract(data, offset_ptr); in extract()
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | DataExtractor.cpp | 316 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const { in GetU8() 317 const uint8_t *data = static_cast<const uint8_t *>(GetData(offset_ptr, 1)); in GetU8() 329 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument 332 static_cast<const uint8_t *>(GetData(offset_ptr, count)); in GetU8() 347 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16() 350 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU16() 360 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked() 363 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked() 365 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked() 366 *offset_ptr += sizeof(val); in GetU16_unchecked() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ObjectFile/PECOFF/ |
| H A D | ObjectFilePECOFF.cpp | 583 lldb::offset_t *offset_ptr, in ParseCOFFHeader() argument 586 data.ValidOffsetForDataOfSize(*offset_ptr, sizeof(coff_header)); in ParseCOFFHeader() 588 coff_header.machine = data.GetU16(offset_ptr); in ParseCOFFHeader() 589 coff_header.nsects = data.GetU16(offset_ptr); in ParseCOFFHeader() 590 coff_header.modtime = data.GetU32(offset_ptr); in ParseCOFFHeader() 591 coff_header.symoff = data.GetU32(offset_ptr); in ParseCOFFHeader() 592 coff_header.nsyms = data.GetU32(offset_ptr); in ParseCOFFHeader() 593 coff_header.hdrsize = data.GetU16(offset_ptr); in ParseCOFFHeader() 594 coff_header.flags = data.GetU16(offset_ptr); in ParseCOFFHeader() 601 bool ObjectFilePECOFF::ParseCOFFOptionalHeader(lldb::offset_t *offset_ptr) { in ParseCOFFOptionalHeader() argument [all …]
|
| /openbsd-src/gnu/llvm/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, length); in Decode()
|
| H A D | Mangled.cpp | 424 bool Mangled::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 428 MangledEncoding encoding = (MangledEncoding)data.GetU8(offset_ptr); in Decode() 434 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 438 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 442 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 443 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode()
|
| /openbsd-src/gnu/llvm/lldb/source/Symbol/ |
| H A D | Symbol.cpp | 599 bool Symbol::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 602 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 8)) in Decode() 604 m_uid = data.GetU32(offset_ptr); in Decode() 605 m_type_data = data.GetU16(offset_ptr); in Decode() 606 const uint16_t bitfields = data.GetU16(offset_ptr); in Decode() 618 if (!m_mangled.Decode(data, offset_ptr, strtab)) in Decode() 620 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 20)) in Decode() 622 const bool is_addr = data.GetU8(offset_ptr) != 0; in Decode() 623 const uint64_t value = data.GetU64(offset_ptr); in Decode() 631 m_addr_range.SetByteSize(data.GetU64(offset_ptr)); in Decode() [all …]
|
| 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 …]
|