1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
39 addr: 0x0000000100000F50
51 addr: 0x0000000100000F84
61 - sectname: __stub_helper
63 addr: 0x0000000100000F8C
75 addr: 0x0000000100000FA6
85 - sectname: __unwind_info
87 addr: 0x0000000100000FB4
109 - sectname: __nl_symbol_ptr
111 addr: 0x0000000100001000
118 reserved1: 0x00000001
119 reserved2: 0x00000000
120 reserved3: 0x00000000
121 - sectname: __la_symbol_ptr
123 addr: 0x0000000100001010
130 reserved1: 0x00000003
131 reserved2: 0x00000000
132 reserved3: 0x00000000
156 - sectname: __debug_line
158 addr: 0x0000000100003000
165 reserved1: 0x00000000
166 reserved2: 0x00000000
167 reserved3: 0x00000000
168 - sectname: __debug_pubnames
170 addr: 0x0000000100003045
177 reserved1: 0x00000000
178 reserved2: 0x00000000
179 reserved3: 0x00000000
180 - sectname: __debug_pubtypes
182 addr: 0x0000000100003060
189 reserved1: 0x00000000
190 reserved2: 0x00000000
191 reserved3: 0x00000000
192 - sectname: __debug_aranges
194 addr: 0x0000000100003083
201 reserved1: 0x00000000
202 reserved2: 0x00000000
203 reserved3: 0x00000000
204 - sectname: __debug_info
206 addr: 0x00000001000030B3
213 reserved1: 0x00000000
214 reserved2: 0x00000000
215 reserved3: 0x00000000
216 - sectname: __debug_abbrev
218 addr: 0x000000010000312C
225 reserved1: 0x00000000
226 reserved2: 0x00000000
227 reserved3: 0x00000000
228 - sectname: __debug_str
230 addr: 0x0000000100003178
237 reserved1: 0x00000000
238 reserved2: 0x00000000
239 reserved3: 0x00000000
240 - sectname: __apple_names
242 addr: 0x0000000100003206
249 reserved1: 0x00000000
250 reserved2: 0x00000000
251 reserved3: 0x00000000
252 - sectname: __apple_namespac
254 addr: 0x0000000100003242
261 reserved1: 0x00000000
262 reserved2: 0x00000000
263 reserved3: 0x00000000
264 - sectname: __apple_types
266 addr: 0x0000000100003266
273 reserved1: 0x00000000
274 reserved2: 0x00000000
275 reserved3: 0x00000000
276 - sectname: __apple_objc
278 addr: 0x00000001000032D8
285 reserved1: 0x00000000
286 reserved2: 0x00000000
287 reserved3: 0x00000000
303 - __mh_execute_header
308 Tag: DW_TAG_compile_unit
309 Children: DW_CHILDREN_yes
311 - Attribute: DW_AT_producer
313 - Attribute: DW_AT_language
315 - Attribute: DW_AT_name
317 - Attribute: DW_AT_stmt_list
318 Form: DW_FORM_sec_offset
319 - Attribute: DW_AT_comp_dir
321 - Attribute: DW_AT_low_pc
323 - Attribute: DW_AT_high_pc
326 Tag: DW_TAG_subprogram
327 Children: DW_CHILDREN_yes
329 - Attribute: DW_AT_low_pc
331 - Attribute: DW_AT_high_pc
333 - Attribute: DW_AT_frame_base
334 Form: DW_FORM_exprloc
335 - Attribute: DW_AT_name
337 - Attribute: DW_AT_decl_file
339 - Attribute: DW_AT_decl_line
341 - Attribute: DW_AT_prototyped
342 Form: DW_FORM_flag_present
343 - Attribute: DW_AT_type
345 - Attribute: DW_AT_external
346 Form: DW_FORM_flag_present
348 Tag: DW_TAG_formal_parameter
349 Children: DW_CHILDREN_no
351 - Attribute: DW_AT_location
352 Form: DW_FORM_exprloc
353 - Attribute: DW_AT_name
355 - Attribute: DW_AT_decl_file
357 - Attribute: DW_AT_decl_line
359 - Attribute: DW_AT_type
362 Tag: DW_TAG_base_type
363 Children: DW_CHILDREN_no
365 - Attribute: DW_AT_name
367 - Attribute: DW_AT_encoding
369 - Attribute: DW_AT_byte_size
372 Tag: DW_TAG_pointer_type
373 Children: DW_CHILDREN_no
375 - Attribute: DW_AT_type
385 - Address: 0x0000000100000F50
391 UnitType: DW_UT_compile
395 - AbbrCode: 0x00000001
397 - Value: 0x0000000000000001
398 - Value: 0x000000000000000C
399 - Value: 0x0000000000000038
400 - Value: 0x0000000000000000
401 - Value: 0x0000000000000046
402 - Value: 0x0000000100000F50
403 - Value: 0x0000000000000034
404 - AbbrCode: 0x00000002
406 - Value: 0x0000000100000F50
407 - Value: 0x0000000000000034
408 - Value: 0x0000000000000001
411 - Value: 0x0000000000000076
412 - Value: 0x0000000000000001
413 - Value: 0x0000000000000003
414 - Value: 0x0000000000000001
415 - Value: 0x0000000000000060
416 - Value: 0x0000000000000001
417 - AbbrCode: 0x00000003
419 - Value: 0x0000000000000002
423 - Value: 0x000000000000007B
424 - Value: 0x0000000000000001
425 - Value: 0x0000000000000003
426 - Value: 0x0000000000000060
427 - AbbrCode: 0x00000003
429 - Value: 0x0000000000000002
433 - Value: 0x0000000000000080
434 - Value: 0x0000000000000001
435 - Value: 0x0000000000000003
436 - Value: 0x0000000000000067
437 - AbbrCode: 0x00000000
439 - AbbrCode: 0x00000004
441 - Value: 0x0000000000000085
442 - Value: 0x0000000000000005
443 - Value: 0x0000000000000004
444 - AbbrCode: 0x00000005
446 - Value: 0x000000000000006C
447 - AbbrCode: 0x00000005
449 - Value: 0x0000000000000071
450 - AbbrCode: 0x00000004
452 - Value: 0x0000000000000089
453 - Value: 0x0000000000000006
454 - Value: 0x0000000000000001
455 - AbbrCode: 0x00000000
467 StandardOpcodeLengths:
482 - Name: hello_world.c
487 - Opcode: DW_LNS_extended_op
489 SubOpcode: DW_LNE_set_address
493 - Opcode: DW_LNS_set_column
495 - Opcode: DW_LNS_set_prologue_end
497 - Opcode: DW_LNS_const_add_pc
503 - Opcode: DW_LNS_advance_pc
505 - Opcode: DW_LNS_extended_op
507 SubOpcode: DW_LNE_end_sequence
515 #CHECK: TotalLength: 118
517 #CHECK: UnitType: DW_UT_compile
518 #CHECK: AbbrOffset: 0
521 #CHECK: - AbbrCode: 0x00000001
523 #CHECK: - Value: 0x0000000000000001
524 #CHECK: - Value: 0x000000000000000C
525 #CHECK: - Value: 0x0000000000000038
526 #CHECK: - Value: 0x0000000000000000
527 #CHECK: - Value: 0x0000000000000046
528 #CHECK: - Value: 0x0000000100000F50
529 #CHECK: - Value: 0x0000000000000034
530 #CHECK: - AbbrCode: 0x00000002
532 #CHECK: - Value: 0x0000000100000F50
533 #CHECK: - Value: 0x0000000000000034
534 #CHECK: - Value: 0x0000000000000001
537 #CHECK: - Value: 0x0000000000000076
538 #CHECK: - Value: 0x0000000000000001
539 #CHECK: - Value: 0x0000000000000003
540 #CHECK: - Value: 0x0000000000000001
541 #CHECK: - Value: 0x0000000000000060
542 #CHECK: - Value: 0x0000000000000001
543 #CHECK: - AbbrCode: 0x00000003
545 #CHECK: - Value: 0x0000000000000002
549 #CHECK: - Value: 0x000000000000007B
550 #CHECK: - Value: 0x0000000000000001
551 #CHECK: - Value: 0x0000000000000003
552 #CHECK: - Value: 0x0000000000000060
553 #CHECK: - AbbrCode: 0x00000003
555 #CHECK: - Value: 0x0000000000000002
559 #CHECK: - Value: 0x0000000000000080
560 #CHECK: - Value: 0x0000000000000001
561 #CHECK: - Value: 0x0000000000000003
562 #CHECK: - Value: 0x0000000000000067
563 #CHECK: - AbbrCode: 0x00000000
565 #CHECK: - AbbrCode: 0x00000004
567 #CHECK: - Value: 0x0000000000000085
568 #CHECK: - Value: 0x0000000000000005
569 #CHECK: - Value: 0x0000000000000004
570 #CHECK: - AbbrCode: 0x00000005
572 #CHECK: - Value: 0x000000000000006C
573 #CHECK: - AbbrCode: 0x00000005
575 #CHECK: - Value: 0x0000000000000071
576 #CHECK: - AbbrCode: 0x00000004
578 #CHECK: - Value: 0x0000000000000089
579 #CHECK: - Value: 0x0000000000000006
580 #CHECK: - Value: 0x0000000000000001
581 #CHECK: - AbbrCode: 0x00000000