1
1
; This test checks to ensure that if a DWARF v5 and DWARF v4 object file is used to
2
2
; generate a dsym, dsymutil correctly outputs the debug information, by keeping
3
- ; the DWARF v5 and DWARF v4 debug info distinct, and that all the section headers
3
+ ; the DWARF v5 and DWARF v4 debug info distinct, and that all the section headers
4
4
; have the correct format.
5
5
6
6
; 1.o was produced with the source file:
7
7
8
8
; a.cpp
9
9
; __attribute__((section("1,__text_foo"))) void foo() {}
10
- ;
10
+ ;
11
11
; int foo2(int a) {
12
12
; return a+5;
13
13
; }
21
21
22
22
; b.cpp
23
23
; __attribute__((section("1,__text_foo2"))) void foo2() {}
24
- ;
24
+ ;
25
25
; int bar(int x) {
26
26
; int y = x + 2;
27
27
; return y;
@@ -39,19 +39,19 @@ CHECK:.debug_abbrev contents:
39
39
CHECK-NEXT: Abbrev table for offset: 0x00000000
40
40
41
41
CHECK: .debug_info contents:
42
- CHECK-NEXT : 0x00000000: Compile Unit: length = 0x0000007d , format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000081 )
42
+ CHECK: 0x00000000: Compile Unit: length = 0x00000064 , format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000068 )
43
43
CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x[[RANGELIST_OFFSET:[0-9a-f]+]]
44
44
CHECK-NEXT: [0x[[RANGELIST_OFFSET_START:[0-9a-f]+]], 0x[[RANGELIST_OFFSET_END:[0-9a-f]+]]))
45
- CHECK: 0x00000050: DW_TAG_formal_parameter [3] (0x00000033)
46
- CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x[[LOCLIST_OFFSET:[0-9a-f]+]]:
45
+ CHECK: DW_TAG_formal_parameter [3] (0x00000033)
46
+ CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x[[LOCLIST_OFFSET:[0-9a-f]+]]:
47
47
CHECK-NEXT: [0x[[LOCLIST_OFFSET_START:[0-9a-f]+]], 0x[[LOCLIST_OFFSET_END:[0-9a-f]+]]): [[LOCLIST_EXPR:.*]]
48
48
CHECK-NEXT: [0x[[LOCLIST_OFFSET_START2:[0-9a-f]+]], 0x[[LOCLIST_OFFSET_END2:[0-9a-f]+]]): [[LOCLIST_EXPR2:.*]])
49
49
50
- CHECK: 0x00000081 : Compile Unit: length = 0x00000072, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x000000f7 )
50
+ CHECK: 0x00000068 : Compile Unit: length = 0x00000072, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x000000de )
51
51
CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000
52
52
CHECK-NEXT: [0x00000000000200[[RANGE_OFFSET_START:[0-9a-f][0-9a-f]]], 0x00000000000200[[RANGE_OFFSET_END:[0-9a-f][0-9a-f]]]))
53
- CHECK:0x000000d0: DW_TAG_formal_parameter [3] (0x000000b3 )
54
- CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x[[LOC_OFFSET:[0-9a-f]+]]:
53
+ CHECK: DW_TAG_formal_parameter [3] (0x0000009a )
54
+ CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x[[LOC_OFFSET:[0-9a-f]+]]:
55
55
CHECK-NEXT: [0x00000000000200[[LOC_OFFSET_START:[0-9a-f][0-9a-f]]], 0x00000000000200[[LOC_OFFSET_END:[0-9a-f][0-9a-f]]]): [[LOC_EXPR:.*]]
56
56
CHECK-NEXT: [0x00000000000200[[LOC_OFFSET_START2:[0-9a-f][0-9a-f]]], 0x00000000000200[[LOC_OFFSET_END2:[0-9a-f][0-9a-f]]]): [[LOC_EXPR2:.*]])
57
57
@@ -62,7 +62,7 @@ CHECK-NEXT: (0x0000000000000004, 0x0000000000000008): [[LOC_EXPR2:.*]
62
62
63
63
CHECK: .debug_loclists contents:
64
64
CHECK-NEXT: 0x00000000: locations list header: length = 0x00000024, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000
65
- CHECK-NEXT: 0x[[LOCLIST_OFFSET]]:
65
+ CHECK-NEXT: 0x[[LOCLIST_OFFSET]]:
66
66
CHECK-NEXT: DW_LLE_start_length {{.*}}
67
67
CHECK-NEXT: => [0x[[LOCLIST_OFFSET_START]], 0x[[LOCLIST_OFFSET_END]]): [[LOCLIST_EXPR]]
68
68
CHECK-NEXT: DW_LLE_start_length {{.*}}
@@ -72,7 +72,7 @@ CHECK-NEXT: DW_LLE_end_of_list ()
72
72
CHECK: .debug_line contents:
73
73
CHECK-NEXT: debug_line[0x00000000]
74
74
CHECK-NEXT: Line table prologue:
75
- CHECK-NEXT: total_length: 0x00000050
75
+ CHECK-NEXT: total_length: 0x00000048
76
76
CHECK-NEXT: format: DWARF32
77
77
CHECK-NEXT: version: 5
78
78
CHECK-NEXT: address_size: 8
@@ -101,7 +101,7 @@ CHECK-NEXT: file_names[ 0]:
101
101
CHECK-NEXT: name: .debug_line_str[0x00000029] = "a.cpp"
102
102
CHECK-NEXT: dir_index: 0
103
103
104
- CHECK: debug_line[0x00000054 ]
104
+ CHECK: debug_line[0x0000004c ]
105
105
CHECK-NEXT: Line table prologue:
106
106
CHECK-NEXT: total_length: 0x0000003b
107
107
CHECK-NEXT: format: DWARF32
@@ -148,14 +148,14 @@ CHECK-NEXT: [[RANGELIST_OFFSET]]: [DW_RLE_start_length]: {{.*}}[0x[[RANGELIST_OF
148
148
CHECK: .debug_names contents:
149
149
CHECK-NEXT: Name Index @ 0x0 {
150
150
CHECK-NEXT: Header {
151
- CHECK-NEXT: Length: 0xD4
151
+ CHECK-NEXT: Length: 0xBC
152
152
CHECK-NEXT: Format: DWARF32
153
153
CHECK-NEXT: Version: 5
154
154
CHECK-NEXT: CU count: 2
155
155
CHECK-NEXT: Local TU count: 0
156
156
CHECK-NEXT: Foreign TU count: 0
157
- CHECK-NEXT: Bucket count: 6
158
- CHECK-NEXT: Name count: 6
157
+ CHECK-NEXT: Bucket count: 5
158
+ CHECK-NEXT: Name count: 5
159
159
CHECK-NEXT: Abbreviations table size: 0x11
160
160
CHECK-NEXT: Augmentation: 'LLVM0700'
161
161
CHECK-NEXT: }
0 commit comments