llvm.org GIT mirror llvm / 80a90f9
llvm-dwarfdump: Remove extraneous space between '(' and 'indexed' When dumping string or address indexes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349997 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 1 year, 3 months ago
12 changed file(s) with 64 addition(s) and 64 deletion(s). Raw diff Collapse all Expand all
369369 case DW_FORM_addrx3:
370370 case DW_FORM_addrx4:
371371 case DW_FORM_GNU_addr_index: {
372 AddrOS << format(" indexed (%8.8x) address = ", (uint32_t)UValue);
372 AddrOS << format("indexed (%8.8x) address = ", (uint32_t)UValue);
373373 if (U == nullptr)
374374 OS << "";
375375 else if (Optional A =
466466 case DW_FORM_strx4:
467467 case DW_FORM_GNU_str_index:
468468 if (DumpOpts.Verbose)
469 OS << format(" indexed (%8.8x) string = ", (uint32_t)UValue);
469 OS << format("indexed (%8.8x) string = ", (uint32_t)UValue);
470470 dumpString(OS);
471471 break;
472472 case DW_FORM_GNU_strp_alt:
44 ; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x0000000c
55 ; CHECK-NEXT: [0x0000000000000000, 0x0000000000000004): DW_OP_breg5 RDI+0
66 ; CHECK-NEXT: [0x0000000000000004, 0x0000000000000012): DW_OP_breg3 RBX+0)
7 ; CHECK-NEXT: DW_AT_name [DW_FORM_strx1] ( indexed (0000000e) string = "a")
7 ; CHECK-NEXT: DW_AT_name [DW_FORM_strx1] (indexed (0000000e) string = "a")
88 ; CHECK-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home/folder{{\\|\/}}test.cc")
99 ; CHECK-NEXT: DW_AT_decl_line [DW_FORM_data1] (6)
1010 ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + 0x0040 => {0x00000040} "A")
1515 ;
1616 ; CHECK: .debug_info contents:
1717 ; CHECK-NOT: DW_FORM_strx2
18 ; CHECK: DW_AT_name [DW_FORM_strx2] ( indexed (00000100) string =
18 ; CHECK: DW_AT_name [DW_FORM_strx2] (indexed (00000100) string =
1919
2020 ; ModuleID = 'enum.cpp'
2121 source_filename = "enum.cpp"
3131 ; DWARF5-NOT: DW_TAG_{{.*}}
3232 ; DWARF5: DW_AT_GNU_dwo_name{{.*}}test.dwo
3333 ; DWARF5: DW_AT_addr_base{{.*}}0x00000008
34 ; DWARF5: DW_AT_low_pc [DW_FORM_addrx] ( indexed (00000000) address = 0x0000000000000000 ".text")
34 ; DWARF5: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000000) address = 0x0000000000000000 ".text")
3535 ; DWARF5: .debug_addr contents:
3636 ; DWARF5-NEXT: 0x00000000: Addr Section: length = 0x0000000c, version = 0x0005, addr_size = 0x04, seg_size = 0x00
3737 ; DWARF5-NEXT: Addrs: [
290290 # CHECK: Compile Unit
291291 # CHECK-NOT: NULL
292292 # CHECK: DW_TAG_compile_unit
293 # CHECK-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
294 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_1")
295 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU1")
293 # CHECK-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
294 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_1")
295 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU1")
296296 # CHECK-NOT: NULL
297297
298298 # CHECK: Compile Unit
299299 # CHECK-NOT: NULL
300300 # CHECK: DW_TAG_compile_unit
301 # CHECK-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
302 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_2")
303 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU2")
301 # CHECK-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
302 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_2")
303 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU2")
304304 #
305305 # CHECK: Type Unit
306306 # CHECK-NOT: NULL
307307 # CHECK: DW_TAG_type_unit
308 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000003) string = "Type_Unit_1")
308 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000003) string = "Type_Unit_1")
309309 # CHECK-NOT: NULL
310310 # CHECK: DW_TAG_structure_type
311 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000004) string = "MyStruct_1")
311 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000004) string = "MyStruct_1")
312312 #
313313 # CHECK: Type Unit
314314 # CHECK-NOT: NULL
315315 # CHECK: DW_TAG_type_unit
316 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000003) string = "Type_Unit_2")
316 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000003) string = "Type_Unit_2")
317317 # CHECK-NOT: NULL
318318 # CHECK: DW_TAG_structure_type
319 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000004) string = "MyStruct_2")
319 # CHECK-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000004) string = "MyStruct_2")
320320
321321 # Verify the correct offets of the compile and type units contributions in the
322322 # index tables.
215215 # COMMON: .debug_info contents:
216216 # COMMON-NOT: contents:
217217 # COMMON: DW_TAG_compile_unit
218 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
219 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_1")
218 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
219 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_1")
220220 # COMMON-NEXT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000008)
221 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU1")
221 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU1")
222222 # COMMON-NOT: NULL
223223 # COMMON: DW_TAG_subprogram
224 # COMMON-NEXT: DW_AT_name [DW_FORM_strx1] ( indexed (00000003) string = "MyFunc")
224 # COMMON-NEXT: DW_AT_name [DW_FORM_strx1] (indexed (00000003) string = "MyFunc")
225225 # COMMON-NOT: NULL
226226 # COMMON: DW_TAG_variable
227 # COMMON-NEXT: DW_AT_name [DW_FORM_strx2] ( indexed (00000004) string = "MyVar1")
227 # COMMON-NEXT: DW_AT_name [DW_FORM_strx2] (indexed (00000004) string = "MyVar1")
228228 # COMMON-NOT: NULL
229229 # COMMON: DW_TAG_variable
230 # COMMON-NEXT: DW_AT_name [DW_FORM_strx3] ( indexed (00000005) string = "MyVar2")
230 # COMMON-NEXT: DW_AT_name [DW_FORM_strx3] (indexed (00000005) string = "MyVar2")
231231 # COMMON-NOT: NULL
232232 # COMMON: DW_TAG_variable
233 # COMMON-NEXT: DW_AT_name [DW_FORM_strx4] ( indexed (00000006) string = "MyVar3")
233 # COMMON-NEXT: DW_AT_name [DW_FORM_strx4] (indexed (00000006) string = "MyVar3")
234234 #
235235 # Second compile unit (b.cpp)
236236 # COMMON: DW_TAG_compile_unit
237 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
238 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_2")
237 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
238 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_2")
239239 # COMMON-NEXT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000038)
240 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU2")
240 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU2")
241241 #
242242 # The type unit
243243 # COMMON: .debug_types contents:
244244 # COMMON: DW_TAG_type_unit
245 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000000) string = "Type_Unit")
245 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000000) string = "Type_Unit")
246246 # COMMON-NEXT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000058)
247247 # COMMON: DW_TAG_structure_type
248 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "MyStruct")
248 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "MyStruct")
249249 #
250250 # The .debug_str_offsets section
251251 # COMMON: .debug_str_offsets contents:
333333 # COMMON: .debug_info contents:
334334 # COMMON-NOT: contents:
335335 # COMMON: DW_TAG_compile_unit
336 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
337 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_1")
336 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
337 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_1")
338338 # COMMON-NEXT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000008)
339 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU1")
339 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU1")
340340 # COMMON-NOT: NULL
341341 # COMMON: DW_TAG_subprogram
342 # COMMON-NEXT: DW_AT_name [DW_FORM_strx1] ( indexed (00000003) string = "MyFunc")
342 # COMMON-NEXT: DW_AT_name [DW_FORM_strx1] (indexed (00000003) string = "MyFunc")
343343 # COMMON-NOT: NULL
344344 # COMMON: DW_TAG_variable
345 # COMMON-NEXT: DW_AT_name [DW_FORM_strx2] ( indexed (00000004) string = "MyVar1")
345 # COMMON-NEXT: DW_AT_name [DW_FORM_strx2] (indexed (00000004) string = "MyVar1")
346346 # COMMON-NOT: NULL
347347 # COMMON: DW_TAG_variable
348 # COMMON-NEXT: DW_AT_name [DW_FORM_strx3] ( indexed (00000005) string = "MyVar2")
348 # COMMON-NEXT: DW_AT_name [DW_FORM_strx3] (indexed (00000005) string = "MyVar2")
349349 # COMMON-NOT: NULL
350350 # COMMON: DW_TAG_variable
351 # COMMON-NEXT: DW_AT_name [DW_FORM_strx4] ( indexed (00000006) string = "MyVar3")
351 # COMMON-NEXT: DW_AT_name [DW_FORM_strx4] (indexed (00000006) string = "MyVar3")
352352 #
353353 # Second compile unit (b.cpp)
354354 # COMMON: DW_TAG_compile_unit
355 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade DWARF producer")
356 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "Compile_Unit_2")
355 # COMMON-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade DWARF producer")
356 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "Compile_Unit_2")
357357 # COMMON-NEXT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000038)
358 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] ( indexed (00000002) string = "/home/test/CU2")
358 # COMMON-NEXT: DW_AT_comp_dir [DW_FORM_strx] (indexed (00000002) string = "/home/test/CU2")
359359 #
360360 # The split CU
361361 # SPLIT: .debug_info.dwo contents:
362362 # SPLIT-NOT: contents:
363363 # SPLIT: DW_TAG_compile_unit
364 # SPLIT-NEXT: DW_AT_producer [DW_FORM_strx] ( indexed (00000000) string = "Handmade split DWARF producer")
365 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "V5_split_compile_unit")
366 # SPLIT-NEXT: DW_AT_comp_dir [DW_FORM_strx] ( indexed (00000002) string = "/home/test/splitCU")
364 # SPLIT-NEXT: DW_AT_producer [DW_FORM_strx] (indexed (00000000) string = "Handmade split DWARF producer")
365 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "V5_split_compile_unit")
366 # SPLIT-NEXT: DW_AT_comp_dir [DW_FORM_strx] (indexed (00000002) string = "/home/test/splitCU")
367367 #
368368 # The type unit
369369 # COMMON: .debug_types contents:
370370 # COMMON: DW_TAG_type_unit
371 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000000) string = "Type_Unit")
371 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000000) string = "Type_Unit")
372372 # COMMON: DW_TAG_structure_type
373 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000001) string = "MyStruct")
373 # COMMON-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "MyStruct")
374374 #
375375 # The split type unit
376376 # SPLIT: .debug_types.dwo contents:
377377 # SPLIT: DW_TAG_type_unit
378 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000003) string = "V5_split_type_unit")
378 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000003) string = "V5_split_type_unit")
379379 # SPLIT: DW_TAG_structure_type
380 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] ( indexed (00000004) string = "V5_split_Mystruct")
380 # SPLIT-NEXT: DW_AT_name [DW_FORM_strx] (indexed (00000004) string = "V5_split_Mystruct")
381381 #
382382 # The .debug_str_offsets section
383383 # COMMON: .debug_str_offsets contents:
6464 ; Check that the rest of the compile units have information.
6565 ; CHECK: .debug_info.dwo contents:
6666 ; CHECK: DW_TAG_compile_unit
67 ; CHECK: DW_AT_producer [DW_FORM_GNU_str_index] ( indexed (00000002) string = "clang version 3.3 (trunk 169021) (llvm/trunk 169020)")
67 ; CHECK: DW_AT_producer [DW_FORM_GNU_str_index] (indexed (00000002) string = "clang version 3.3 (trunk 169021) (llvm/trunk 169020)")
6868 ; CHECK: DW_AT_language [DW_FORM_data2] (DW_LANG_C99)
69 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] ( indexed (00000003) string = "baz.c")
70 ; CHECK: DW_AT_GNU_dwo_name [DW_FORM_GNU_str_index] ( indexed (00000004) string = "baz.dwo")
69 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] (indexed (00000003) string = "baz.c")
70 ; CHECK: DW_AT_GNU_dwo_name [DW_FORM_GNU_str_index] (indexed (00000004) string = "baz.dwo")
7171 ; CHECK-NOT: DW_AT_low_pc
7272 ; CHECK-NOT: DW_AT_stmt_list
7373 ; CHECK-NOT: DW_AT_comp_dir
7474 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x1f1f859683d49324)
7575 ; CHECK: DW_TAG_variable
76 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] ( indexed (00000000) string = "a")
76 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] (indexed (00000000) string = "a")
7777 ; CHECK: DW_AT_type [DW_FORM_ref4] (cu + 0x{{[0-9a-f]*}} => {[[TYPE:0x[0-9a-f]*]]}
7878 ; CHECK: DW_AT_external [DW_FORM_flag_present] (true)
7979 ; CHECK: DW_AT_decl_file [DW_FORM_data1] (0x01)
8080 ; CHECK: DW_AT_decl_line [DW_FORM_data1] (1)
8181 ; CHECK: DW_AT_location [DW_FORM_exprloc] (DW_OP_GNU_addr_index 0x0)
8282 ; CHECK: [[TYPE]]: DW_TAG_base_type
83 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] ( indexed (00000001) string = "int")
83 ; CHECK: DW_AT_name [DW_FORM_GNU_str_index] (indexed (00000001) string = "int")
8484
8585 ; CHECK: .debug_str contents:
8686 ; CHECK: 0x00000000: "/usr/local/google/home/echristo/tmp"
7979 ; CHECK-NOT: type_signature
8080 ; CHECK-LABEL: type_signature = 0x1d02f3be30cc5688
8181 ; CHECK: DW_TAG_structure_type
82 ; FISSION-NEXT: DW_AT_name {{.*}} ( indexed {{.*}} "bar"
82 ; FISSION-NEXT: DW_AT_name {{.*}} (indexed {{.*}} "bar"
8383 ; SINGLE-NEXT: DW_AT_name {{.*}} "bar"
8484
8585 ; Check that we generate a hash for fluffy and the value.
4242 ; TYPEUNITS-NOT: NULL
4343 ; TYPEUNITS: DW_TAG_enumerator
4444 ; TYPEUNITS-NOT: {{DW_TAG|NULL}}
45 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] ( indexed (00000005) string = "b")
45 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] (indexed (00000005) string = "b")
4646 ; TYPEUNITS-NOT: contents:
4747 ; TYPEUNITS: DW_TAG_type_unit
4848 ; TYPEUNITS-NOT: {{DW_TAG|NULL}}
4949 ; TYPEUNITS: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
5050 ; TYPEUNITS-NOT: NULL
5151 ; TYPEUNITS: DW_TAG_enumeration_type
52 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] ( indexed (0000000d) string = "E2")
52 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] (indexed (0000000d) string = "E2")
5353 ; TYPEUNITS-NOT: contents:
5454 ; TYPEUNITS: DW_TAG_type_unit
5555 ; TYPEUNITS-NOT: {{DW_TAG|NULL}}
5656 ; TYPEUNITS: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])
5757 ; TYPEUNITS-NOT: NULL
5858 ; TYPEUNITS: DW_TAG_enumeration_type
59 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] ( indexed (00000013) string = "E3")
59 ; TYPEUNITS: DW_AT_name [DW_FORM_strx1] (indexed (00000013) string = "E3")
6060
6161 ; CU 1
6262 ; BOTH-NOT: .contents:
7373 ; BOTH-NOT: NULL
7474 ; BOTH: DW_TAG_variable
7575 ; BOTH-NOT: {{DW_TAG|NULL}}
76 ; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (00000009) string = "glob2")
76 ; BOTH: DW_AT_name [DW_FORM_strx1] (indexed (00000009) string = "glob2")
7777 ;
7878 ; CU 3
7979 ; BOTH-NOT: contents:
8383 ; BOTH-NOT: NULL
8484 ; BOTH: DW_TAG_variable
8585 ; BOTH-NOT: {{DW_TAG|NULL}}
86 ; BOTH: DW_AT_name [DW_FORM_strx1] ( indexed (0000000f) string = "glob3")
86 ; BOTH: DW_AT_name [DW_FORM_strx1] (indexed (0000000f) string = "glob3")
8787 ;
8888 ; Extract the offset of a string to verify that it is referenced in the string
8989 ; offsets section.
1212
1313 ; CHECK: .debug_info contents:
1414 ; CHECK: DW_TAG_compile_unit
15 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] ( indexed (00000000) string = "X3")
15 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000000) string = "X3")
1616 ; CHECK: DW_TAG_compile_unit
17 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] ( indexed (00000001) string = "X2")
17 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000001) string = "X2")
1818 ; CHECK: DW_TAG_compile_unit
19 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] ( indexed (00000002) string = "X1")
19 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000002) string = "X1")
2020 ; CHECK: .debug_info.dwo contents:
2121
2222 ; CHECK: .debug_str contents:
2626 ; MONOLITHIC-NOT: contents:
2727 ; MONOLITHIC: DW_TAG_compile_unit
2828 ; MONOLITHIC-NOT: {{DW_TAG|NULL}}
29 ; MONOLITHIC: DW_AT_producer [DW_FORM_strx1] ( indexed (00000000) string = "clang{{.*}}")
29 ; MONOLITHIC: DW_AT_producer [DW_FORM_strx1] (indexed (00000000) string = "clang{{.*}}")
3030 ; MONOLITHIC-NOT: {{DW_TAG|NULL}}
3131 ; MONOLITHIC: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000008)
3232 ; MONOLITHIC-NOT: {{DW_TAG|NULL}}
33 ; MONOLITHIC: DW_AT_comp_dir [DW_FORM_strx1] ( indexed (00000002) string = "/home/{{.*}}")
33 ; MONOLITHIC: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000002) string = "/home/{{.*}}")
3434
3535 ; Extract the string offsets from the .debug_str section so we can check that
3636 ; they are referenced correctly in the .debug_str_offsets section.
5858 ; SPLIT: DW_TAG_compile_unit
5959 ; SPLIT-NOT: {{DW_TAG|contents:}}
6060 ; SPLIT: DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x00000008)
61 ; SPLIT: DW_AT_comp_dir [DW_FORM_strx1] ( indexed (00000000) string = "/home/test")
62 ; SPLIT: DW_AT_GNU_dwo_name [DW_FORM_strx1] ( indexed (00000001) string = "foo.dwo")
61 ; SPLIT: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000000) string = "/home/test")
62 ; SPLIT: DW_AT_GNU_dwo_name [DW_FORM_strx1] (indexed (00000001) string = "foo.dwo")
6363
6464 ; Check for the split CU in .debug_info.dwo.
6565 ; SPLIT: .debug_info.dwo contents:
7272 ; SPLIT-NOT: contents:
7373 ; SPLIT: DW_TAG_enumerator
7474 ; SPLIT-NOT: {{DW_TAG|NULL}}
75 ; SPLIT: DW_AT_name [DW_FORM_strx1] ( indexed (00000001) string = "a")
75 ; SPLIT: DW_AT_name [DW_FORM_strx1] (indexed (00000001) string = "a")
7676 ; SPLIT-NOT: contents:
7777 ; SPLIT: DW_TAG_enumerator
7878 ; SPLIT-NOT: {{DW_TAG|NULL}}
79 ; SPLIT: DW_AT_name [DW_FORM_strx1] ( indexed (00000002) string = "b")
79 ; SPLIT: DW_AT_name [DW_FORM_strx1] (indexed (00000002) string = "b")
8080 ;
8181 ; Extract the string offsets referenced in the main file by the skeleton unit.
8282 ; SPLIT: .debug_str contents: