[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / dsymutil / ARM / dwarf5-str-offsets-base-strx.test
blobac813fc6203708db3fd846079c97112f351b2e82
1 ; This test checks to ensure that if three DWARFv5 object files have correct values for the DW_AT_str_offsets_base and DW_FORM_strx for strings in their compile units.
2 ; DWARFLinkerParallel specific : DWARFLinkerParallel uses .debug_str_offsets
3 ; table local to the compile unit. That leads to different string indexes.
4 ; In such cases test contains both variants for indexes value:
5 ; (indexed (0000000{{9|1}}) string = "b.cpp".
7 ; 1.o was produced with the source file:
9 ; a.cpp
10 ; __attribute__((section("1,__text_foo"))) void foo() {}
11
12 ; int foo2(int a) {
13 ;     return a+5;
14 ; }
15
16 ; int foo3(int x) {
17 ;     return x+2;
18 ; }
19
20 ; int main () {
21 ;     return 1;
22 ; }
24 ; clang -g -c -O1 a.cpp -gdwarf-5 -o 1.o
26 ; 2.o was produced with the following source file:
28 ; b.cpp
29 ; __attribute__((section("1,__text_foo"))) void bar() {}
30
31 ; int bar2(int a) {
32 ;     return a+5;
33 ; }
34
35 ; int bar3(int x) {
36 ;     return x+2;
37 ; }
39 ; clang -g -c -O1 b.cpp -gdwarf-5 -o 2.o
41 ; 3.o was produced with the following source file:
43 ; c.cpp
44
45 ; int baz(int x) {
46 ;     return x+2;
47 ; }
49 ; clang -g -c -O1 c.cpp -gdwarf-5 -o 3.o
52 RUN: rm -rf %t.dir && mkdir -p %t.dir
53 RUN: dsymutil -y %p/dummy-debug-map-amr64.map -oso-prepend-path=%p/../Inputs/DWARF5-addr-base-str-off-base -o %t.dir/dwarf5-addr-base.dSYM
54 RUN: llvm-dwarfdump %t.dir/dwarf5-addr-base.dSYM -a --verbose | FileCheck %s --check-prefixes=CHECK,GLOBAL
56 RUN: dsymutil --update -y %p/dummy-debug-map-amr64.map -oso-prepend-path=%p/../Inputs/DWARF5-addr-base-str-off-base -o %t.dir/dwarf5-addr-base.dSYM
57 RUN: llvm-dwarfdump %t.dir/dwarf5-addr-base.dSYM -a --verbose | FileCheck %s --check-prefixes=UPD,GLOBALUPD
59 RUN: rm -rf %t.dir && mkdir -p %t.dir
60 RUN: dsymutil --linker llvm -y %p/dummy-debug-map-amr64.map \
61 RUN:   -oso-prepend-path=%p/../Inputs/DWARF5-addr-base-str-off-base \
62 RUN:   -o %t.dir/dwarf5-addr-base.dSYM
63 RUN: llvm-dwarfdump %t.dir/dwarf5-addr-base.dSYM -a --verbose | FileCheck %s --check-prefixes=CHECK,LOCAL
65 RUN: dsymutil --linker llvm --update -y %p/dummy-debug-map-amr64.map \
66 RUN:   -oso-prepend-path=%p/../Inputs/DWARF5-addr-base-str-off-base \
67 RUN:   -o %t.dir/dwarf5-addr-base.dSYM
68 RUN: llvm-dwarfdump %t.dir/dwarf5-addr-base.dSYM -a --verbose | FileCheck %s --check-prefixes=UPD,LOCALUPD
70 CHECK: .debug_info contents:
71 CHECK: 0x00000000: Compile Unit: length = 0x0000004a, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0000004e)
73 CHECK: 0x0000000c: DW_TAG_compile_unit [1] *
74 CHECK:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
75 CHECK:               DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "a.cpp")
76 CHECK:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
77 CHECK:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
78 CHECK:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x00000008)
79 CHECK:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
81 CHECK: 0x0000002c:   DW_TAG_subprogram [2] * (0x0000000c)
82 CHECK:                 DW_AT_low_pc [DW_FORM_addrx]    (indexed (00000000) address = 0x0000000000010000)
83 CHECK:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (00000005) string = "_Z4foo2i")
84 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (00000006) string = "foo2")
86 CHECK: 0x0000003c:     DW_TAG_formal_parameter [3]   (0x0000002c)
87 CHECK:                   DW_AT_name [DW_FORM_strx]     (indexed (00000007) string = "a")
89 CHECK: 0x00000048:     NULL
91 CHECK: 0x00000049:   DW_TAG_base_type [4]   (0x0000000c)
92 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (00000008) string = "int")
94 CHECK: 0x0000004d:   NULL
96 CHECK: 0x0000004e: Compile Unit: length = 0x0000004a, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x00{{00|5a}}, addr_size = 0x08 (next unit at 0x0000009c)
98 CHECK: 0x0000005a: DW_TAG_compile_unit [1] *
99 CHECK:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
100 CHECK:               DW_AT_name [DW_FORM_strx] (indexed (0000000{{9|1}}) string = "b.cpp")
101 CHECK:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
102 CHECK:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
103 CHECK:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x000000{{08|34}})
104 CHECK:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
106 CHECK: 0x0000007a:   DW_TAG_subprogram [2] * (0x0000005a)
107 CHECK:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (0000000{{a|5}}) string = "_Z4bar2i")
108 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000{{b|6}}) string = "bar2")
110 CHECK: 0x0000008a:     DW_TAG_formal_parameter [3]   (0x0000007a)
111 CHECK:                   DW_AT_name [DW_FORM_strx]     (indexed (00000007) string = "a")
113 CHECK: 0x00000096:     NULL
115 CHECK: 0x00000097:   DW_TAG_base_type [4]   (0x0000005a)
116 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (00000008) string = "int")
118 CHECK: 0x0000009b:   NULL
120 CHECK: 0x0000009c: Compile Unit: length = 0x00000043, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x00{{00|b4}}, addr_size = 0x08 (next unit at 0x000000e3)
122 CHECK: 0x000000a8: DW_TAG_compile_unit {{.*}} *
123 CHECK:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
124 CHECK:               DW_AT_name [DW_FORM_strx] (indexed (0000000{{c|1}}) string = "c.cpp")
125 CHECK:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
126 CHECK:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
127 CHECK:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x000000{{08|60}})
128 CHECK:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
130 CHECK: 0x000000c1:   DW_TAG_subprogram [2] * (0x000000a8)
131 CHECK:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (0000000{{d|5}}) string = "_Z3bazi")
132 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000{{e|6}}) string = "baz")
134 CHECK: 0x000000d1:     DW_TAG_formal_parameter [3]   (0x000000c1)
135 CHECK:                   DW_AT_name [DW_FORM_strx]     (indexed (0000000{{f|7}}) string = "x")
137 CHECK: 0x000000dd:     NULL
139 CHECK: 0x000000de:   DW_TAG_base_type [4]   (0x000000a8)
140 CHECK:                 DW_AT_name [DW_FORM_strx]       (indexed (00000008) string = "int")
142 CHECK: 0x000000e2:   NULL
144 CHECK: .debug_str contents:
145 CHECK-NEXT: 0x00000000: ""
146 CHECK-NEXT: 0x00000001: "Apple clang version 15.0.0 (clang-1500.0.31.1)"
147 CHECK-NEXT: 0x00000030: "a.cpp"
148 CHECK-NEXT: 0x00000036: "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
149 CHECK-NEXT: 0x000000b7: "MacOSX14.0.sdk"
150 CHECK-NEXT: 0x000000c6: "/Users/shubham/Development/test109275485"
151 CHECK-NEXT: 0x000000ef: "_Z4foo2i"
152 CHECK-NEXT: 0x000000f8: "foo2"
153 CHECK-NEXT: 0x000000fd: "a"
154 CHECK-NEXT: 0x000000ff: "int"
155 CHECK-NEXT: 0x00000103: "b.cpp"
156 CHECK-NEXT: 0x00000109: "_Z4bar2i"
157 CHECK-NEXT: 0x00000112: "bar2"
158 CHECK-NEXT: 0x00000117: "c.cpp"
159 CHECK-NEXT: 0x0000011d: "_Z3bazi"
160 CHECK-NEXT: 0x00000125: "baz"
161 CHECK-NEXT: 0x00000129: "x"
163 GLOBAL: .debug_str_offsets contents:
164 GLOBAL-NEXT: 0x00000000: Contribution size = 68, Format = DWARF32, Version = 5
165 GLOBAL-NEXT: 0x00000008: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
166 GLOBAL-NEXT: 0x0000000c: 00000030 "a.cpp"
167 GLOBAL-NEXT: 0x00000010: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
168 GLOBAL-NEXT: 0x00000014: 000000b7 "MacOSX14.0.sdk"
169 GLOBAL-NEXT: 0x00000018: 000000c6 "/Users/shubham/Development/test109275485"
170 GLOBAL-NEXT: 0x0000001c: 000000ef "_Z4foo2i"
171 GLOBAL-NEXT: 0x00000020: 000000f8 "foo2"
172 GLOBAL-NEXT: 0x00000024: 000000fd "a"
173 GLOBAL-NEXT: 0x00000028: 000000ff "int"
174 GLOBAL-NEXT: 0x0000002c: 00000103 "b.cpp"
175 GLOBAL-NEXT: 0x00000030: 00000109 "_Z4bar2i"
176 GLOBAL-NEXT: 0x00000034: 00000112 "bar2"
177 GLOBAL-NEXT: 0x00000038: 00000117 "c.cpp"
178 GLOBAL-NEXT: 0x0000003c: 0000011d "_Z3bazi"
179 GLOBAL-NEXT: 0x00000040: 00000125 "baz"
180 GLOBAL-NEXT: 0x00000044: 00000129 "x"
182 LOCAL: .debug_str_offsets contents:
183 LOCAL-NEXT: 0x00000000: Contribution size = 40, Format = DWARF32, Version = 5
184 LOCAL-NEXT: 0x00000008: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
185 LOCAL-NEXT: 0x0000000c: 00000030 "a.cpp"
186 LOCAL-NEXT: 0x00000010: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
187 LOCAL-NEXT: 0x00000014: 000000b7 "MacOSX14.0.sdk"
188 LOCAL-NEXT: 0x00000018: 000000c6 "/Users/shubham/Development/test109275485"
189 LOCAL-NEXT: 0x0000001c: 000000ef "_Z4foo2i"
190 LOCAL-NEXT: 0x00000020: 000000f8 "foo2"
191 LOCAL-NEXT: 0x00000024: 000000fd "a"
192 LOCAL-NEXT: 0x00000028: 000000ff "int"
193 LOCAL-NEXT: 0x0000002c: Contribution size = 40, Format = DWARF32, Version = 5
194 LOCAL-NEXT: 0x00000034: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
195 LOCAL-NEXT: 0x00000038: 00000103 "b.cpp"
196 LOCAL-NEXT: 0x0000003c: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
197 LOCAL-NEXT: 0x00000040: 000000b7 "MacOSX14.0.sdk"
198 LOCAL-NEXT: 0x00000044: 000000c6 "/Users/shubham/Development/test109275485"
199 LOCAL-NEXT: 0x00000048: 00000109 "_Z4bar2i"
200 LOCAL-NEXT: 0x0000004c: 00000112 "bar2"
201 LOCAL-NEXT: 0x00000050: 000000fd "a"
202 LOCAL-NEXT: 0x00000054: 000000ff "int"
203 LOCAL-NEXT: 0x00000058: Contribution size = 40, Format = DWARF32, Version = 5
204 LOCAL-NEXT: 0x00000060: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
205 LOCAL-NEXT: 0x00000064: 00000117 "c.cpp"
206 LOCAL-NEXT: 0x00000068: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
207 LOCAL-NEXT: 0x0000006c: 000000b7 "MacOSX14.0.sdk"
208 LOCAL-NEXT: 0x00000070: 000000c6 "/Users/shubham/Development/test109275485"
209 LOCAL-NEXT: 0x00000074: 0000011d "_Z3bazi"
210 LOCAL-NEXT: 0x00000078: 00000125 "baz"
211 LOCAL-NEXT: 0x0000007c: 00000129 "x"
212 LOCAL-NEXT: 0x00000080: 000000ff "int"
215 UPD: .debug_info contents:
216 UPD: 0x00000000: Compile Unit: length = 0x00000081, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000085)
218 UPD: 0x0000000c: DW_TAG_compile_unit [1] *
219 UPD:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
220 UPD:               DW_AT_name [DW_FORM_strx] (indexed (00000001) string = "a.cpp")
221 UPD:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
222 UPD:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
223 UPD:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x00000008)
224 UPD:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
226 UPD: 0x00000031:   DW_TAG_subprogram [2]   (0x0000000c)
227 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (00000005) string = "_Z3foov")
228 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (00000006) string = "foo")
230 UPD: 0x0000003d:   DW_TAG_subprogram [3] * (0x0000000c)
231 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (00000007) string = "_Z4foo2i")
232 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (00000008) string = "foo2")
234 UPD: 0x0000004d:     DW_TAG_formal_parameter [4]   (0x0000003d)
235 UPD:                   DW_AT_name [DW_FORM_strx]     (indexed (00000009) string = "a")
237 UPD: 0x00000056:     NULL
239 UPD: 0x00000057:   DW_TAG_subprogram [3] * (0x0000000c)
240 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (0000000a) string = "_Z4foo3i")
241 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000b) string = "foo3")
243 UPD: 0x00000067:     DW_TAG_formal_parameter [4]   (0x00000057)
244 UPD:                   DW_AT_name [DW_FORM_strx]     (indexed (0000000c) string = "x")
246 UPD: 0x00000070:     NULL
248 UPD: 0x00000071:   DW_TAG_subprogram [5]   (0x0000000c)
249 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000d) string = "main")
251 UPD: 0x00000080:   DW_TAG_base_type [6]   (0x0000000c)
252 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000e) string = "int")
254 UPD: 0x00000084:   NULL
256 UPD: 0x00000085: Compile Unit: length = 0x00000072, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x00{{00|99}}, addr_size = 0x08 (next unit at 0x000000fb)
258 UPD: 0x00000091: DW_TAG_compile_unit [1] *
259 UPD:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
260 UPD:               DW_AT_name [DW_FORM_strx] (indexed (0000000{{f|1}}) string = "b.cpp")
261 UPD:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
262 UPD:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
263 UPD:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x000000{{08|4c}})
264 UPD:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
266 UPD: 0x000000b6:   DW_TAG_subprogram [2]   (0x00000091)
267 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (000000{{10|05}}) string = "_Z3barv")
268 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (000000{{11|06}}) string = "bar")
270 UPD: 0x000000c2:   DW_TAG_subprogram [3] * (0x00000091)
271 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (000000{{12|07}}) string = "_Z4bar2i")
272 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (000000{{13|08}}) string = "bar2")
274 UPD: 0x000000d2:     DW_TAG_formal_parameter [4]   (0x000000c2)
275 UPD:                   DW_AT_name [DW_FORM_strx]     (indexed (00000009) string = "a")
277 UPD: 0x000000db:     NULL
279 UPD: 0x000000dc:   DW_TAG_subprogram [3] * (0x00000091)
280 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (000000{{14|0a}}) string = "_Z4bar3i")
281 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (000000{{15|0b}}) string = "bar3")
283 UPD: 0x000000ec:     DW_TAG_formal_parameter [4]   (0x000000dc)
284 UPD:                   DW_AT_name [DW_FORM_strx]     (indexed (0000000c) string = "x")
286 UPD: 0x000000f5:     NULL
288 UPD: 0x000000f6:   DW_TAG_base_type {{.*}}   (0x00000091)
289 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000{{e|d}}) string = "int")
291 UPD: 0x000000fa:   NULL
293 UPD: 0x000000fb: Compile Unit: length = 0x00000044, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0{{000|115}}, addr_size = 0x08 (next unit at 0x00000143)
295 UPD: 0x00000107: DW_TAG_compile_unit {{.*}} *
296 UPD:               DW_AT_producer [DW_FORM_strx]     (indexed (00000000) string = "Apple clang version 15.0.0 (clang-1500.0.31.1)")
297 UPD:               DW_AT_name [DW_FORM_strx] (indexed (000000{{16|01}}) string = "c.cpp")
298 UPD:               DW_AT_LLVM_sysroot [DW_FORM_strx] (indexed (00000002) string = "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk")
299 UPD:               DW_AT_APPLE_sdk [DW_FORM_strx]    (indexed (00000003) string = "MacOSX14.0.sdk")
300 UPD:               DW_AT_str_offsets_base [DW_FORM_sec_offset]       (0x000000{{08|8c}})
301 UPD:               DW_AT_comp_dir [DW_FORM_strx]     (indexed (00000004) string = "/Users/shubham/Development/test109275485")
303 UPD: 0x00000124:   DW_TAG_subprogram {{.*}} * (0x00000107)
304 UPD:                 DW_AT_linkage_name [DW_FORM_strx]       (indexed (000000{{17|05}}) string = "_Z3bazi")
305 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (000000{{18|06}}) string = "baz")
307 UPD: 0x00000134:     DW_TAG_formal_parameter {{.*}}   (0x00000124)
308 UPD:                   DW_AT_name [DW_FORM_strx]     (indexed (0000000{{c|7}}) string = "x")
310 UPD: 0x0000013d:     NULL
312 UPD: 0x0000013e:   DW_TAG_base_type {{.*}}   (0x00000107)
313 UPD:                 DW_AT_name [DW_FORM_strx]       (indexed (0000000{{e|8}}) string = "int")
315 UPD: 0x00000142:   NULL
317 UPD: .debug_str contents:
318 UPD-NEXT: 0x00000000: ""
319 UPD-NEXT: 0x00000001: "Apple clang version 15.0.0 (clang-1500.0.31.1)"
320 UPD-NEXT: 0x00000030: "a.cpp"
321 UPD-NEXT: 0x00000036: "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
322 UPD-NEXT: 0x000000b7: "MacOSX14.0.sdk"
323 UPD-NEXT: 0x000000c6: "/Users/shubham/Development/test109275485"
324 UPD-NEXT: 0x000000ef: "_Z3foov"
325 UPD-NEXT: 0x000000f7: "foo"
326 UPD-NEXT: 0x000000fb: "_Z4foo2i"
327 UPD-NEXT: 0x00000104: "foo2"
328 UPD-NEXT: 0x00000109: "a"
329 UPD-NEXT: 0x0000010b: "_Z4foo3i"
330 UPD-NEXT: 0x00000114: "foo3"
331 UPD-NEXT: 0x00000119: "x"
332 UPD-NEXT: 0x0000011b: "main"
333 UPD-NEXT: 0x00000120: "int"
334 UPD-NEXT: 0x00000124: "b.cpp"
335 UPD-NEXT: 0x0000012a: "_Z3barv"
336 UPD-NEXT: 0x00000132: "bar"
337 UPD-NEXT: 0x00000136: "_Z4bar2i"
338 UPD-NEXT: 0x0000013f: "bar2"
339 UPD-NEXT: 0x00000144: "_Z4bar3i"
340 UPD-NEXT: 0x0000014d: "bar3"
341 UPD-NEXT: 0x00000152: "c.cpp"
342 UPD-NEXT: 0x00000158: "_Z3bazi"
343 UPD-NEXT: 0x00000160: "baz"
345 GLOBALUPD: .debug_str_offsets contents:
346 GLOBALUPD-NEXT: 0x00000000: Contribution size = 104, Format = DWARF32, Version = 5
347 GLOBALUPD-NEXT: 0x00000008: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
348 GLOBALUPD-NEXT: 0x0000000c: 00000030 "a.cpp"
349 GLOBALUPD-NEXT: 0x00000010: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
350 GLOBALUPD-NEXT: 0x00000014: 000000b7 "MacOSX14.0.sdk"
351 GLOBALUPD-NEXT: 0x00000018: 000000c6 "/Users/shubham/Development/test109275485"
352 GLOBALUPD-NEXT: 0x0000001c: 000000ef "_Z3foov"
353 GLOBALUPD-NEXT: 0x00000020: 000000f7 "foo"
354 GLOBALUPD-NEXT: 0x00000024: 000000fb "_Z4foo2i"
355 GLOBALUPD-NEXT: 0x00000028: 00000104 "foo2"
356 GLOBALUPD-NEXT: 0x0000002c: 00000109 "a"
357 GLOBALUPD-NEXT: 0x00000030: 0000010b "_Z4foo3i"
358 GLOBALUPD-NEXT: 0x00000034: 00000114 "foo3"
359 GLOBALUPD-NEXT: 0x00000038: 00000119 "x"
360 GLOBALUPD-NEXT: 0x0000003c: 0000011b "main"
361 GLOBALUPD-NEXT: 0x00000040: 00000120 "int"
362 GLOBALUPD-NEXT: 0x00000044: 00000124 "b.cpp"
363 GLOBALUPD-NEXT: 0x00000048: 0000012a "_Z3barv"
364 GLOBALUPD-NEXT: 0x0000004c: 00000132 "bar"
365 GLOBALUPD-NEXT: 0x00000050: 00000136 "_Z4bar2i"
366 GLOBALUPD-NEXT: 0x00000054: 0000013f "bar2"
367 GLOBALUPD-NEXT: 0x00000058: 00000144 "_Z4bar3i"
368 GLOBALUPD-NEXT: 0x0000005c: 0000014d "bar3"
369 GLOBALUPD-NEXT: 0x00000060: 00000152 "c.cpp"
370 GLOBALUPD-NEXT: 0x00000064: 00000158 "_Z3bazi"
371 GLOBALUPD-NEXT: 0x00000068: 00000160 "baz"
373 LOCALUPD: .debug_str_offsets contents:
374 LOCALUPD-NEXT: 0x00000000: Contribution size = 64, Format = DWARF32, Version = 5
375 LOCALUPD-NEXT: 0x00000008: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
376 LOCALUPD-NEXT: 0x0000000c: 00000030 "a.cpp"
377 LOCALUPD-NEXT: 0x00000010: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
378 LOCALUPD-NEXT: 0x00000014: 000000b7 "MacOSX14.0.sdk"
379 LOCALUPD-NEXT: 0x00000018: 000000c6 "/Users/shubham/Development/test109275485"
380 LOCALUPD-NEXT: 0x0000001c: 000000ef "_Z3foov"
381 LOCALUPD-NEXT: 0x00000020: 000000f7 "foo"
382 LOCALUPD-NEXT: 0x00000024: 000000fb "_Z4foo2i"
383 LOCALUPD-NEXT: 0x00000028: 00000104 "foo2"
384 LOCALUPD-NEXT: 0x0000002c: 00000109 "a"
385 LOCALUPD-NEXT: 0x00000030: 0000010b "_Z4foo3i"
386 LOCALUPD-NEXT: 0x00000034: 00000114 "foo3"
387 LOCALUPD-NEXT: 0x00000038: 00000119 "x"
388 LOCALUPD-NEXT: 0x0000003c: 0000011b "main"
389 LOCALUPD-NEXT: 0x00000040: 00000120 "int"
390 LOCALUPD-NEXT: 0x00000044: Contribution size = 60, Format = DWARF32, Version = 5
391 LOCALUPD-NEXT: 0x0000004c: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
392 LOCALUPD-NEXT: 0x00000050: 00000124 "b.cpp"
393 LOCALUPD-NEXT: 0x00000054: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
394 LOCALUPD-NEXT: 0x00000058: 000000b7 "MacOSX14.0.sdk"
395 LOCALUPD-NEXT: 0x0000005c: 000000c6 "/Users/shubham/Development/test109275485"
396 LOCALUPD-NEXT: 0x00000060: 0000012a "_Z3barv"
397 LOCALUPD-NEXT: 0x00000064: 00000132 "bar"
398 LOCALUPD-NEXT: 0x00000068: 00000136 "_Z4bar2i"
399 LOCALUPD-NEXT: 0x0000006c: 0000013f "bar2"
400 LOCALUPD-NEXT: 0x00000070: 00000109 "a"
401 LOCALUPD-NEXT: 0x00000074: 00000144 "_Z4bar3i"
402 LOCALUPD-NEXT: 0x00000078: 0000014d "bar3"
403 LOCALUPD-NEXT: 0x0000007c: 00000119 "x"
404 LOCALUPD-NEXT: 0x00000080: 00000120 "int"
405 LOCALUPD-NEXT: 0x00000084: Contribution size = 40, Format = DWARF32, Version = 5
406 LOCALUPD-NEXT: 0x0000008c: 00000001 "Apple clang version 15.0.0 (clang-1500.0.31.1)"
407 LOCALUPD-NEXT: 0x00000090: 00000152 "c.cpp"
408 LOCALUPD-NEXT: 0x00000094: 00000036 "/Users/shubham/apple-internal/Xcode-Rainbow/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
409 LOCALUPD-NEXT: 0x00000098: 000000b7 "MacOSX14.0.sdk"
410 LOCALUPD-NEXT: 0x0000009c: 000000c6 "/Users/shubham/Development/test109275485"
411 LOCALUPD-NEXT: 0x000000a0: 00000158 "_Z3bazi"
412 LOCALUPD-NEXT: 0x000000a4: 00000160 "baz"
413 LOCALUPD-NEXT: 0x000000a8: 00000119 "x"
414 LOCALUPD-NEXT: 0x000000ac: 00000120 "int"