Lines Matching +full:0 +full:x2000

3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
77 0, 0, 0, 41, // unit_length (length field not including this field itself)
78 0, 2, // DWARF version number (half)
79 0, 0, 0, 0, // offset into the .debug_info_table (ignored for the purposes
86 0, 0, 0, 0, 0, 0,
88 1, 0, 0, 0, 4, 0, 0, 0,
90 0, 0, 0, 0, 4, 0, 0, 0,
91 1, // a 1byte object starting at address 4 in segment 0
93 0, 0, 0, 0, 0, 0, 0, 0, 0 // terminator
99 offset_t off = 0;
103 "0x0 is not supported",
120 0, 0, 0, 0, // unit_length that will be set correctly after this
121 0, 2, // DWARF version number (uint16_t)
122 0, 0, 0, 255, // CU offset
124 0, // segment size
125 0, 0, 0, 0, // alignment for the first tuple
127 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // premature terminator
128 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, // [0x1000-0x1100)
129 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // premature terminator
130 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, // [0x2000-0x2010)
132 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // terminator
144 EXPECT_EQ(debug_aranges.FindAddress(0x0fff), DW_INVALID_OFFSET);
145 EXPECT_EQ(debug_aranges.FindAddress(0x1000), 255u);
146 EXPECT_EQ(debug_aranges.FindAddress(0x1100 - 1), 255u);
147 EXPECT_EQ(debug_aranges.FindAddress(0x1100), DW_INVALID_OFFSET);
148 EXPECT_EQ(debug_aranges.FindAddress(0x1fff), DW_INVALID_OFFSET);
149 EXPECT_EQ(debug_aranges.FindAddress(0x2000), 255u);
150 EXPECT_EQ(debug_aranges.FindAddress(0x2010 - 1), 255u);
151 EXPECT_EQ(debug_aranges.FindAddress(0x2010), DW_INVALID_OFFSET);
159 0, 0, 0, 0, // unit_length that will be set correctly after this
160 0, 2, // DWARF version number (uint16_t)
161 0, 0, 0, 255, // CU offset
163 0, // segment size
164 0, 0, 0, 0, // alignment for the first tuple
166 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, // [0x1000-0x1100)
167 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, // [0x1100-0x1100)
168 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, // [0x2000-0x2010)
169 0x00, 0x00, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, // [0x2010-0x2010)
171 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // terminator
187 EXPECT_EQ(debug_aranges.FindAddress(0x0fff), DW_INVALID_OFFSET);
188 EXPECT_EQ(debug_aranges.FindAddress(0x1000), 255u);
189 EXPECT_EQ(debug_aranges.FindAddress(0x1100 - 1), 255u);
190 EXPECT_EQ(debug_aranges.FindAddress(0x1100), DW_INVALID_OFFSET);
191 EXPECT_EQ(debug_aranges.FindAddress(0x1fff), DW_INVALID_OFFSET);
192 EXPECT_EQ(debug_aranges.FindAddress(0x2000), 255u);
193 EXPECT_EQ(debug_aranges.FindAddress(0x2010 - 1), 255u);
194 EXPECT_EQ(debug_aranges.FindAddress(0x2010), DW_INVALID_OFFSET);
202 0, 0, 0, 0, // unit_length that will be set correctly after this
203 2, 0, // DWARF version number
204 255, 0, 0, 0, // offset into the .debug_info_table
206 0, // segment size
207 0, 0, 0, 0, // pad bytes
209 // First tuple: [0x1000-0x1100)
210 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Address 0x1000
211 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Size 0x0100
212 // Second tuple: [0x2000-0x2100)
213 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Address 0x2000
214 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Size 0x0100
216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Terminator
217 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Terminator
220 binary_data[0] = sizeof(binary_data) - 4;
227 EXPECT_EQ(debug_aranges.FindAddress(0x0fff), DW_INVALID_OFFSET);
228 EXPECT_EQ(debug_aranges.FindAddress(0x1000), 255u);
229 EXPECT_EQ(debug_aranges.FindAddress(0x1100 - 1), 255u);
230 EXPECT_EQ(debug_aranges.FindAddress(0x1100), DW_INVALID_OFFSET);
231 EXPECT_EQ(debug_aranges.FindAddress(0x1fff), DW_INVALID_OFFSET);
232 EXPECT_EQ(debug_aranges.FindAddress(0x2000), 255u);
233 EXPECT_EQ(debug_aranges.FindAddress(0x2100 - 1), 255u);
234 EXPECT_EQ(debug_aranges.FindAddress(0x2100), DW_INVALID_OFFSET);
246 // for [0x1000-0x1100) with a CU offset of 0x00000000.
247 0, 0, 0, 28, // unit_length that will be set correctly after this
248 0, 2, // DWARF version number (uint16_t)
249 0, 0, 0, 0, // CU offset = 0x00000000
251 0, // segment size
252 0, 0, 0, 0, // alignment for the first tuple
253 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, // [0x1000-0x1100)
254 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // terminator
257 0, 0, 0, 20, // unit_length that will be set correctly after this
258 0, 44, // invalid DWARF version number (uint16_t)
259 0, 0, 1, 0, // CU offset = 0x00000100
261 0, // segment size
262 0, 0, 0, 0, // alignment for the first tuple
263 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // terminator
265 // for [0x2000-0x2100) with a CU offset of 0x00000000.
266 0, 0, 0, 28, // unit_length that will be set correctly after this
267 0, 2, // DWARF version number (uint16_t)
268 0, 0, 2, 0, // CU offset = 0x00000200
270 0, // segment size
271 0, 0, 0, 0, // alignment for the first tuple
272 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, // [0x2000-0x2100)
273 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // terminator
282 EXPECT_EQ(debug_aranges.FindAddress(0x0fff), DW_INVALID_OFFSET);
283 EXPECT_EQ(debug_aranges.FindAddress(0x1000), 0u);
284 EXPECT_EQ(debug_aranges.FindAddress(0x1100 - 1), 0u);
285 EXPECT_EQ(debug_aranges.FindAddress(0x1100), DW_INVALID_OFFSET);
286 EXPECT_EQ(debug_aranges.FindAddress(0x1fff), DW_INVALID_OFFSET);
287 EXPECT_EQ(debug_aranges.FindAddress(0x2000), 0x200u);
288 EXPECT_EQ(debug_aranges.FindAddress(0x2100 - 1), 0x200u);
289 EXPECT_EQ(debug_aranges.FindAddress(0x2100), DW_INVALID_OFFSET);