diff options
Diffstat (limited to 'gas/testsuite/gas/elf/dwarf-5-func.d')
-rw-r--r-- | gas/testsuite/gas/elf/dwarf-5-func.d | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gas/testsuite/gas/elf/dwarf-5-func.d b/gas/testsuite/gas/elf/dwarf-5-func.d new file mode 100644 index 00000000000..11a78b24dee --- /dev/null +++ b/gas/testsuite/gas/elf/dwarf-5-func.d @@ -0,0 +1,50 @@ +#as: --gdwarf-5 +#name: Dwarf5 function debug info +#readelf: -W -wai +#source: dwarf-3-func.s +#target: i?86-*-* x86_64-*-* + +Contents of the .debug_info section: + + +Compilation Unit @ offset (0x)?0: + +Length: .* + +Version: +5 + +Unit Type: +DW_UT_compile \(1\) + +Abbrev Offset: +(0x)?0 + +Pointer Size: .* + <0><[0-9a-f]+>: Abbrev Number: 1 \(DW_TAG_compile_unit\) +#... + <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\) + +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc1 + +<[0-9a-f]+> +DW_AT_external +: \(flag\) 1 + +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?0 + +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 2 + <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\) + +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): lfunc1 + +<[0-9a-f]+> +DW_AT_external +: \(flag\) 0 + +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?2 + +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 17 + <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\) + +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): efunc2 + +<[0-9a-f]+> +DW_AT_external +: \(flag\) 1 + +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?13 + +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 34 + <1><[0-9a-f]+>: Abbrev Number: 2 \(DW_TAG_subprogram\) + +<[0-9a-f]+> +DW_AT_name +: \(strp\) \(offset: (0x)?[0-9a-f]+\): lfunc2 + +<[0-9a-f]+> +DW_AT_external +: \(flag\) 0 + +<[0-9a-f]+> +DW_AT_low_pc +: \(addr\) (0x)?35 + +<[0-9a-f]+> +DW_AT_high_pc +: \(udata\) 3 + <1><[0-9a-f]+>: Abbrev Number: 0 + +Contents of the .debug_abbrev section: + + +Number TAG \(0x0\) + +1 +DW_TAG_compile_unit +\[has children\] +#... + +2 +DW_TAG_subprogram +\[no children\] + +DW_AT_name +DW_FORM_strp + +DW_AT_external +DW_FORM_flag + +DW_AT_low_pc +DW_FORM_addr + +DW_AT_high_pc +DW_FORM_udata + +DW_AT value: 0 +DW_FORM value: 0 +#pass |