Lines Matching +full:x +full:- +full:offset
1 //===- DWARFGdbIndex.cpp --------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
25 // https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html
28 OS << format("\n CU list offset = 0x%x, has %" PRId64 " entries:", in dumpCUList()
33 OS << format(" %d: Offset = 0x%llx, Length = 0x%llx\n", I++, CU.Offset, in dumpCUList()
38 OS << formatv("\n Types CU list offset = {0:x}, has {1} entries:\n", in dumpTUList()
42 OS << formatv(" {0}: offset = {1:x8}, type_offset = {2:x8}, " in dumpTUList()
44 I++, TU.Offset, TU.TypeOffset, TU.TypeSignature); in dumpTUList()
48 OS << format("\n Address area offset = 0x%x, has %" PRId64 " entries:", in dumpAddressArea()
53 " Low/High address = [0x%llx, 0x%llx) (Size: 0x%llx), CU id = %d\n", in dumpAddressArea()
54 Addr.LowAddress, Addr.HighAddress, Addr.HighAddress - Addr.LowAddress, in dumpAddressArea()
59 OS << format("\n Symbol table offset = 0x%x, size = %" PRId64 in dumpSymbolTable()
63 uint32_t I = -1; in dumpSymbolTable()
69 OS << format(" %d: Name offset = 0x%x, CU vector offset = 0x%x\n", I, in dumpSymbolTable()
73 ConstantPoolOffset - StringPoolOffset + E.NameOffset); in dumpSymbolTable()
81 uint32_t CuVectorId = CuVector - ConstantPoolVectors.begin(); in dumpSymbolTable()
88 OS << format("\n Constant pool offset = 0x%x, has %" PRId64 " CU vectors:", in dumpConstantPool()
92 OS << format("\n %d(0x%x): ", I++, V.first); in dumpConstantPool()
94 OS << format("0x%x ", Val); in dumpConstantPool()
116 uint64_t Offset = 0; in parseImpl() local
119 Version = Data.getU32(&Offset); in parseImpl()
123 CuListOffset = Data.getU32(&Offset); in parseImpl()
124 TuListOffset = Data.getU32(&Offset); in parseImpl()
125 AddressAreaOffset = Data.getU32(&Offset); in parseImpl()
126 SymbolTableOffset = Data.getU32(&Offset); in parseImpl()
127 ConstantPoolOffset = Data.getU32(&Offset); in parseImpl()
129 if (Offset != CuListOffset) in parseImpl()
132 uint32_t CuListSize = (TuListOffset - CuListOffset) / 16; in parseImpl()
135 uint64_t CuOffset = Data.getU64(&Offset); in parseImpl()
136 uint64_t CuLength = Data.getU64(&Offset); in parseImpl()
142 uint32_t TuListSize = (AddressAreaOffset - TuListOffset) / 24; in parseImpl()
145 uint64_t CuOffset = Data.getU64(&Offset); in parseImpl()
146 uint64_t TypeOffset = Data.getU64(&Offset); in parseImpl()
147 uint64_t Signature = Data.getU64(&Offset); in parseImpl()
151 uint32_t AddressAreaSize = (SymbolTableOffset - AddressAreaOffset) / 20; in parseImpl()
154 uint64_t LowAddress = Data.getU64(&Offset); in parseImpl()
155 uint64_t HighAddress = Data.getU64(&Offset); in parseImpl()
156 uint32_t CuIndex = Data.getU32(&Offset); in parseImpl()
163 // first value is the offset of the symbol's name in the constant pool. The in parseImpl()
164 // second value is the offset of the CU vector in the constant pool. in parseImpl()
168 uint32_t SymTableSize = (ConstantPoolOffset - SymbolTableOffset) / 8; in parseImpl()
172 uint32_t NameOffset = Data.getU32(&Offset); in parseImpl()
173 uint32_t CuVecOffset = Data.getU32(&Offset); in parseImpl()
183 Offset = ConstantPoolOffset + CUOffset; in parseImpl()
186 Vec.first = Offset - ConstantPoolOffset; in parseImpl()
188 uint32_t Num = Data.getU32(&Offset); in parseImpl()
190 Vec.second.push_back(Data.getU32(&Offset)); in parseImpl()
193 ConstantPoolStrings = Data.getData().drop_front(Offset); in parseImpl()
194 StringPoolOffset = Offset; in parseImpl()