Display more information when decoding DW_AT_endianity, DW_AT_decimal_sign, DW_AT_def...
authorNick Clifton <nickc@redhat.com>
Wed, 11 Oct 2017 11:02:51 +0000 (12:02 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 11 Oct 2017 11:02:51 +0000 (12:02 +0100)
commit04914e3707e210a071b3af3c52cc5e5b2ad41a61
treed93bbb6483de286ac3e896cb5f861ba20766306c
parent7fa29be949a96f68ee65dcdb4f56f132609170db
Display more information when decoding DW_AT_endianity, DW_AT_decimal_sign, DW_AT_defaulted and DW_AT_discr_list DWARF attributes.

* dwarf.c (read_and_display_attr_value): Handle DW_AT_endianity,
DW_END_default, DW_END_big, DW_END_little, DW_ATE_UCS,
DW_ATE_ASCII, DW_CC_pass_by_reference, DW_CC_pass_by_value,
DW_CC_GNU_renesas_sh, DW_CC_GNU_borland_fastcall_i386,
DW_AT_decimal_sign, DW_AT_defaulted, DW_AT_discr_list.
(get_TAG_name): Report user generated tag values.
* testsuite/binutils-all/dwarf-attributes.S: New test.
* testsuite/binutils-all/dwarf-attributes.W. Expected output from
readelf.
* testsuite/binutils-all/readelf.exp: Run the new test.
binutils/ChangeLog
binutils/dwarf.c
binutils/testsuite/binutils-all/dwarf-attributes.S [new file with mode: 0644]
binutils/testsuite/binutils-all/dwarf-attributes.W [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.exp