1 # RUN: yaml2obj %s -o %T/a.out
2 # RUN: %lldb %T/a.out -o "image lookup --verbose --address 0x0000000100003fa1" -o exit | FileCheck %s --check-prefix=NOINLINE
3 # RUN: %lldb %T/a.out -o "image lookup --verbose --address 0x0000000100003fa2" -o exit | FileCheck %s --check-prefix=INLINE_1
4 # RUN: %lldb %T/a.out -o "image lookup --verbose --address 0x0000000100003fa8" -o exit | FileCheck %s --check-prefix=INLINE_2
6 # NOINLINE: Summary: a.out`main + 33 at main.cpp:10
7 # NOINLINE-NEXT: Module: file =
9 # INLINE_1: Summary: a.out`main + 34 [inlined] squares(int, int) at main.cpp:7:16
10 # INLINE_1-NEXT: a.out`main + 34 at main.cpp:11
11 # INLINE_1-NEXT: Module: file =
13 # INLINE_2: Summary: a.out`main + 40 [inlined] square(int) at main.cpp:3:9
14 # INLINE_2-NEXT: a.out`main + 40 [inlined] squares(int, int) + 6 at main.cpp:7
15 # INLINE_2-NEXT: a.out`main + 34 at main.cpp:11
16 # INLINE_2-NEXT: Module: file =
32 uuid: E476BFB9-CC5C-34BC-B968-BF996B298060
33 - cmd: LC_BUILD_VERSION
80 content: CFFAEDFE07000001030000000A000000070000007805000000000000000000001B00000018000000E476BFB9CC5C34BCB968BF996B298060320000001800000001000000000F0A0000010B00000000000200000018000000001000000400000040100000
81 - sectname: __unwind_info
93 content: CFFAEDFE07000001030000000A000000070000007805000000000000000000001B00000018000000E476BFB9CC5C34BCB968BF996B298060320000001800000001000000000F0A00
117 - sectname: __debug_line
129 - sectname: __debug_pubnames
141 - sectname: __debug_pubtypes
153 - sectname: __debug_aranges
165 - sectname: __debug_info
177 - sectname: __debug_abbrev
189 - sectname: __debug_str
201 - sectname: __apple_names
213 content: 485341480100000005000000050000000C0000000000000001000000010006000000000001000000FFFFFFFF04000000FFFFFFFF4B79AFF92EECB8236A7F9A7C492D3CA816EA5E1C5C000000700000008800000098000000AC000000F000000002000000710000001C01000000000000D800000003000000320000009400000040010000000000000701000001000000D900000000000000FD00000002000000710000001C01000000000000E30000000300000032000000940000004001000000000000
214 - sectname: __apple_namespac
226 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF
227 - sectname: __apple_types
239 content: 48534148010000000200000002000000180000000000000004000000010006000300050005000B000600060000000000010000003080880B6320957C440000005B000000EC000000010000006A000000240000A4283A0C0000000018010000010000006E01000024000057D77B9300000000
240 - sectname: __apple_objc
252 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF
280 - __mh_execute_header
285 - 'Apple clang version 12.0.0 (clang-1200.0.32.29)'
287 - '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk'
289 - '/Users/gclayton/Documents/src/args/build'
306 Tag: DW_TAG_compile_unit
307 Children: DW_CHILDREN_yes
309 - Attribute: DW_AT_producer
311 - Attribute: DW_AT_language
313 - Attribute: DW_AT_name
315 - Attribute: DW_AT_LLVM_sysroot
317 - Attribute: DW_AT_APPLE_sdk
319 - Attribute: DW_AT_stmt_list
320 Form: DW_FORM_sec_offset
321 - Attribute: DW_AT_comp_dir
323 - Attribute: DW_AT_low_pc
325 - Attribute: DW_AT_high_pc
328 Tag: DW_TAG_subprogram
329 Children: DW_CHILDREN_yes
331 - Attribute: DW_AT_low_pc
333 - Attribute: DW_AT_high_pc
335 - Attribute: DW_AT_frame_base
336 Form: DW_FORM_exprloc
337 - Attribute: DW_AT_abstract_origin
338 Form: DW_FORM_ref_addr
340 Tag: DW_TAG_formal_parameter
341 Children: DW_CHILDREN_no
343 - Attribute: DW_AT_location
344 Form: DW_FORM_exprloc
345 - Attribute: DW_AT_abstract_origin
346 Form: DW_FORM_ref_addr
348 Tag: DW_TAG_subprogram
349 Children: DW_CHILDREN_yes
351 - Attribute: DW_AT_linkage_name
353 - Attribute: DW_AT_name
355 - Attribute: DW_AT_decl_file
357 - Attribute: DW_AT_decl_line
359 - Attribute: DW_AT_type
360 Form: DW_FORM_ref_addr
361 - Attribute: DW_AT_external
362 Form: DW_FORM_flag_present
363 - Attribute: DW_AT_inline
366 Tag: DW_TAG_formal_parameter
367 Children: DW_CHILDREN_no
369 - Attribute: DW_AT_name
371 - Attribute: DW_AT_decl_file
373 - Attribute: DW_AT_decl_line
375 - Attribute: DW_AT_type
376 Form: DW_FORM_ref_addr
378 Tag: DW_TAG_base_type
379 Children: DW_CHILDREN_no
381 - Attribute: DW_AT_name
383 - Attribute: DW_AT_encoding
385 - Attribute: DW_AT_byte_size
388 Tag: DW_TAG_inlined_subroutine
389 Children: DW_CHILDREN_yes
391 - Attribute: DW_AT_abstract_origin
392 Form: DW_FORM_ref_addr
393 - Attribute: DW_AT_low_pc
395 - Attribute: DW_AT_high_pc
397 - Attribute: DW_AT_call_file
399 - Attribute: DW_AT_call_line
401 - Attribute: DW_AT_call_column
404 Tag: DW_TAG_subprogram
405 Children: DW_CHILDREN_yes
407 - Attribute: DW_AT_low_pc
409 - Attribute: DW_AT_high_pc
411 - Attribute: DW_AT_frame_base
412 Form: DW_FORM_exprloc
413 - Attribute: DW_AT_name
415 - Attribute: DW_AT_decl_file
417 - Attribute: DW_AT_decl_line
419 - Attribute: DW_AT_type
420 Form: DW_FORM_ref_addr
421 - Attribute: DW_AT_external
422 Form: DW_FORM_flag_present
424 Tag: DW_TAG_formal_parameter
425 Children: DW_CHILDREN_no
427 - Attribute: DW_AT_location
428 Form: DW_FORM_exprloc
429 - Attribute: DW_AT_name
431 - Attribute: DW_AT_decl_file
433 - Attribute: DW_AT_decl_line
435 - Attribute: DW_AT_type
436 Form: DW_FORM_ref_addr
439 Children: DW_CHILDREN_no
441 - Attribute: DW_AT_location
442 Form: DW_FORM_exprloc
443 - Attribute: DW_AT_name
445 - Attribute: DW_AT_decl_file
447 - Attribute: DW_AT_decl_line
449 - Attribute: DW_AT_type
450 Form: DW_FORM_ref_addr
452 Tag: DW_TAG_pointer_type
453 Children: DW_CHILDREN_no
455 - Attribute: DW_AT_type
456 Form: DW_FORM_ref_addr
458 Tag: DW_TAG_const_type
459 Children: DW_CHILDREN_no
461 - Attribute: DW_AT_type
462 Form: DW_FORM_ref_addr
469 - Address: 0x100003F50
471 - Address: 0x100003F80
527 BlockData: [ 0x91, 0x7C ]
561 BlockData: [ 0x91, 0x78 ]
566 BlockData: [ 0x91, 0x74 ]
579 BlockData: [ 0x91, 0x7C ]
619 BlockData: [ 0x91, 0x6C ]
627 BlockData: [ 0x91, 0x60 ]
635 BlockData: [ 0x91, 0x5C ]
651 BlockData: [ 0x91, 0x78 ]
656 BlockData: [ 0x91, 0x74 ]
669 BlockData: [ 0x91, 0x7C ]
702 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
711 - Opcode: DW_LNS_extended_op
713 SubOpcode: DW_LNE_set_address
717 - Opcode: DW_LNS_set_column
719 - Opcode: DW_LNS_set_prologue_end
723 - Opcode: DW_LNS_set_column
725 - Opcode: DW_LNS_negate_stmt
729 - Opcode: DW_LNS_set_column
733 - Opcode: DW_LNS_set_column
735 - Opcode: DW_LNS_negate_stmt
739 - Opcode: DW_LNS_set_column
741 - Opcode: DW_LNS_set_prologue_end
745 - Opcode: DW_LNS_set_column
749 - Opcode: DW_LNS_set_column
751 - Opcode: DW_LNS_negate_stmt
755 - Opcode: DW_LNS_set_column
757 - Opcode: DW_LNS_negate_stmt
761 - Opcode: DW_LNS_advance_pc
763 - Opcode: DW_LNS_extended_op
765 SubOpcode: DW_LNE_end_sequence
767 - Opcode: DW_LNS_extended_op
769 SubOpcode: DW_LNE_set_address
771 - Opcode: DW_LNS_advance_line
774 - Opcode: DW_LNS_copy
776 - Opcode: DW_LNS_set_column
778 - Opcode: DW_LNS_set_prologue_end
780 - Opcode: DW_LNS_const_add_pc
784 - Opcode: DW_LNS_set_column
788 - Opcode: DW_LNS_set_column
790 - Opcode: DW_LNS_negate_stmt
794 - Opcode: DW_LNS_set_column
796 - Opcode: DW_LNS_negate_stmt
800 - Opcode: DW_LNS_set_column
804 - Opcode: DW_LNS_advance_pc
806 - Opcode: DW_LNS_extended_op
808 SubOpcode: DW_LNE_end_sequence