update DW_AT_decimal_float constant (committed)

Andreas Schwab schwab@suse.de
Mon Jul 18 09:07:00 GMT 2005


Ben Elliston <bje@au1.ibm.com> writes:

> (binutils/ChangeLog)
> 2005-07-18  Ben Elliston  <bje@au.ibm.com>
>
>         * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
>         value of DW_ATE_decimal_float instead of DW_ATE_GNU_decimal_float.
>
> Index: readelf.c
> ===================================================================
> RCS file: /cvs/src/src/binutils/readelf.c,v
> retrieving revision 1.305
> diff -u -p -r1.305 readelf.c
> --- readelf.c   14 Jul 2005 22:51:58 -0000      1.305
> +++ readelf.c   18 Jul 2005 04:09:42 -0000
> @@ -8616,7 +8616,7 @@ read_and_display_attr_value (unsigned lo
>           /* DWARF 2.1 value.  */
>         case DW_ATE_imaginary_float:    printf ("(imaginary float)"); break;
>           /* GNU extension.  */
> -       case DW_ATE_GNU_decimal_float:  printf ("(decimal float)"); break;
> +       case DW_ATE_decimal_float:      printf ("(decimal float)"); break;

You should probably fix the comment as well.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list