brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · b889ce5 Raw
45 lines · plain
1# Demonstrate dumping DW_AT_language_version in human-readable form.2# RUN: llvm-mc -triple=x86_64--linux -filetype=obj -o %t.o < %s3# RUN: llvm-dwarfdump %t.o -v | FileCheck %s --check-prefix=VERBOSE4# RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix=NO-VERBOSE5 6# VERBOSE: .debug_info contents:7# VERBOSE: DW_AT_language_name [DW_FORM_data2] (DW_LNAME_C)8# VERBOSE: DW_AT_language_version [DW_FORM_data4] (201112 C11)9# VERBOSE: DW_AT_language_name [DW_FORM_data2] (0x0000)10# VERBOSE: DW_AT_language_version [DW_FORM_data4] (12 Unknown)11 12# NO-VERBOSE: .debug_info contents:13# NO-VERBOSE: DW_AT_language_name (DW_LNAME_C)14# NO-VERBOSE: DW_AT_language_version (C11)15# NO-VERBOSE: DW_AT_language_name (0x0000)16# NO-VERBOSE: DW_AT_language_version (Unknown)17 18        .section        .debug_abbrev,"",@progbits19        .byte   1                       # Abbreviation Code20        .byte   17                      # DW_TAG_compile_unit21        .byte   1                       # DW_CHILDREN_no 22        .ascii  "\220\001"              # DW_AT_language_name23        .byte   5                       # DW_FORM_data224        .ascii  "\221\001"              # DW_AT_language_version25        .byte   6                       # DW_FORM_data426        .byte   0                       # EOM(1)27        .byte   0                       # EOM(2)28        .byte   0                       # EOM(3)29 30        .section        .debug_info,"",@progbits31        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit32.Ldebug_info_start0:33        .short  5                       # DWARF version number34        .byte   1                       # Unit type35        .byte   8                       # Address Size (in bytes)36        .long   .debug_abbrev           # Offset Into Abbrev. Section37        .byte   1                       # Abbrev [1] DW_TAG_compile_unit38        .short  3                       # DW_AT_language_name39        .long   201112                  # DW_AT_language_version40        .byte   1                       # Abbrev [1] DW_TAG_compile_unit41        .short  0                       # DW_AT_language_name42        .long   12                      # DW_AT_language_version43        .byte   0 44.Ldebug_info_end0:45