| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNBDataRef.cpp | 42 *offset_ptr += sizeof(val); in Get8() 58 *offset_ptr += sizeof(val); in Get16() 100 return Get8(offset_ptr); in GetMax32() 103 return Get16(offset_ptr); in GetMax32() 106 return Get32(offset_ptr); in GetMax32() 122 return Get8(offset_ptr); in GetMax64() 125 return Get16(offset_ptr); in GetMax64() 128 return Get32(offset_ptr); in GetMax64() 131 return Get64(offset_ptr); in GetMax64() 171 *offset_ptr += length; in GetData() [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; 105 const uint8_t *GetData(offset_t *offset_ptr, uint32_t length) const; 106 uint64_t Get_ULEB128(offset_t *offset_ptr) const; 107 int64_t Get_SLEB128(offset_t *offset_ptr) const; [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | DataExtractor.cpp | 46 uint64_t offset = *offset_ptr; in getU() 54 *offset_ptr += sizeof(val); in getU() 65 uint64_t offset = *offset_ptr; in getUs() 73 *offset_ptr = offset; in getUs() 80 return getU<uint8_t>(offset_ptr, Err); in getU8() 129 return getU8(offset_ptr, Err); in getUnsigned() 131 return getU16(offset_ptr, Err); in getUnsigned() 133 return getU32(offset_ptr, Err); in getUnsigned() 135 return getU64(offset_ptr, Err); in getUnsigned() 144 return (int8_t)getU8(offset_ptr); in getSigned() [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | DataExtractor.h | 254 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 …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFFormValue.cpp | 219 *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 D | DWARFDebugArangeSet.cpp | 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() 101 *offset_ptr = m_offset + first_tuple_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 | 514 if (!strtab.Decode(data, offset_ptr)) in Decode() 520 const uint32_t version = data.GetU32(offset_ptr); in Decode() 526 switch (data.GetU8(offset_ptr)) { in Decode() 532 if (!function_basenames.Decode(data, offset_ptr, strtab)) in Decode() 540 if (!function_methods.Decode(data, offset_ptr, strtab)) in Decode() 552 if (!globals.Decode(data, offset_ptr, strtab)) in Decode() 556 if (!types.Decode(data, offset_ptr, strtab)) in Decode() 560 if (!namespaces.Decode(data, offset_ptr, strtab)) in Decode() 627 lldb::offset_t *offset_ptr, in Decode() argument 631 if (!signature.Decode(data, offset_ptr)) in Decode() [all …]
|
| H A D | NameToDIE.cpp | 96 bool NameToDIE::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 99 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 102 const uint32_t count = data.GetU32(offset_ptr); in Decode() 105 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in Decode() 109 if (llvm::Optional<DIERef> die_ref = DIERef::Decode(data, offset_ptr)) in Decode()
|
| H A D | DIERef.cpp | 30 lldb::offset_t *offset_ptr) { in Decode() argument 31 const uint32_t bitfield_storage = data.GetU32(offset_ptr); in Decode() 37 dw_offset_t die_offset = data.GetU32(offset_ptr); in Decode()
|
| H A D | DWARFUnit.cpp | 860 lldb::offset_t *offset_ptr) { in extract() argument 862 header.m_offset = *offset_ptr; in extract() 863 header.m_length = data.GetDWARFInitialLength(offset_ptr); in extract() 864 header.m_version = data.GetU16(offset_ptr); in extract() 866 header.m_unit_type = data.GetU8(offset_ptr); in extract() 867 header.m_addr_size = data.GetU8(offset_ptr); in extract() 868 header.m_abbr_offset = data.GetDWARFOffset(offset_ptr); in extract() 871 header.m_dwo_id = data.GetU64(offset_ptr); in extract() 874 header.m_addr_size = data.GetU8(offset_ptr); in extract() 880 header.m_type_hash = data.GetU64(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()
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | DataExtractor.cpp | 366 *offset_ptr += sizeof(val); in GetU16_unchecked() 376 *offset_ptr += sizeof(val); in GetU32_unchecked() 386 *offset_ptr += sizeof(val); in GetU64_unchecked() 529 return GetU8(offset_ptr); in GetMaxU64() 531 return GetU16(offset_ptr); in GetMaxU64() 561 *offset_ptr += byte_size; in GetMaxU64_unchecked() 634 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble() 637 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble() 820 *offset_ptr += len; in GetCStr() 849 *offset_ptr += byte_count; in GetULEB128() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFDebugArangeSet.cpp | 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() 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 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()
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/PECOFF/ |
| H A D | ObjectFilePECOFF.cpp | 579 coff_header.machine = data.GetU16(offset_ptr); in ParseCOFFHeader() 580 coff_header.nsects = data.GetU16(offset_ptr); in ParseCOFFHeader() 581 coff_header.modtime = data.GetU32(offset_ptr); in ParseCOFFHeader() 582 coff_header.symoff = data.GetU32(offset_ptr); in ParseCOFFHeader() 583 coff_header.nsyms = data.GetU32(offset_ptr); in ParseCOFFHeader() 584 coff_header.hdrsize = data.GetU16(offset_ptr); in ParseCOFFHeader() 585 coff_header.flags = data.GetU16(offset_ptr); in ParseCOFFHeader() 595 if (*offset_ptr < end_offset) { in ParseCOFFOptionalHeader() 608 if (*offset_ptr < end_offset) { in ParseCOFFOptionalHeader() 615 if (*offset_ptr < end_offset) { in ParseCOFFOptionalHeader() [all …]
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | DataFileCache.cpp | 225 lldb::offset_t *offset_ptr) { in Decode() argument 227 while (uint8_t sig_encoding = data.GetU8(offset_ptr)) { in Decode() 230 const uint8_t length = data.GetU8(offset_ptr); in Decode() 231 const uint8_t *bytes = (const uint8_t *)data.GetData(offset_ptr, length); in Decode() 236 uint32_t mod_time = data.GetU32(offset_ptr); in Decode() 241 uint32_t mod_time = data.GetU32(offset_ptr); in Decode() 294 lldb::offset_t *offset_ptr) { in Decode() argument 295 llvm::StringRef identifier((const char *)data.GetData(offset_ptr, 4), 4); in Decode() 298 const uint32_t length = data.GetU32(offset_ptr); in Decode() 302 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()
|
| /llvm-project-15.0.7/lldb/source/Symbol/ |
| H A D | Symbol.cpp | 600 bool Symbol::Decode(const DataExtractor &data, lldb::offset_t *offset_ptr, in Decode() argument 603 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 8)) in Decode() 605 m_uid = data.GetU32(offset_ptr); in Decode() 606 m_type_data = data.GetU16(offset_ptr); in Decode() 607 const uint16_t bitfields = data.GetU16(offset_ptr); in Decode() 619 if (!m_mangled.Decode(data, offset_ptr, strtab)) in Decode() 621 if (!data.ValidOffsetForDataOfSize(*offset_ptr, 20)) in Decode() 623 const bool is_addr = data.GetU8(offset_ptr) != 0; in Decode() 624 const uint64_t value = data.GetU64(offset_ptr); in Decode() 632 m_addr_range.SetByteSize(data.GetU64(offset_ptr)); in Decode() [all …]
|
| H A D | DWARFCallFrameInfo.cpp | 52 baseAddress = *offset_ptr; in GetGNUEHPointer() 92 offset_ptr += addr_size - alignOffset; in GetGNUEHPointer() 103 addressValue = DE.GetAddress(offset_ptr); in GetGNUEHPointer() 109 addressValue = DE.GetULEB128(offset_ptr); in GetGNUEHPointer() 112 addressValue = DE.GetU16(offset_ptr); in GetGNUEHPointer() 115 addressValue = DE.GetU32(offset_ptr); in GetGNUEHPointer() 118 addressValue = DE.GetU64(offset_ptr); in GetGNUEHPointer() 121 addressValue = DE.GetSLEB128(offset_ptr); in GetGNUEHPointer() 124 addressValue = (int16_t)DE.GetU16(offset_ptr); in GetGNUEHPointer() 127 addressValue = (int32_t)DE.GetU32(offset_ptr); in GetGNUEHPointer() [all …]
|