From: Nick Clifton Date: Tue, 2 Feb 1999 12:12:11 +0000 (+0000) Subject: DisplayDWARF2 basic type encodings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca2afaf3fb38bd3fda1a07a0448f49f885ee9020;p=binutils-gdb.git DisplayDWARF2 basic type encodings. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b50f2047932..12586f5ac43 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,8 @@ 1999-02-02 Nick Clifton + * readelf.c (read_and_display_attr): Add display of basic type + encodings. + * binutils.texi: Fixed bug in readefl documentation. Mon Feb 1 12:38:01 1999 Catherine Moore diff --git a/binutils/readelf.c b/binutils/readelf.c index a0e012870b8..068ec239ac6 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4259,6 +4259,27 @@ read_and_display_attr (attribute, form, data, pointer_size) default: printf ("(Unknown: %x)", uvalue); break; } break; + + case DW_AT_encoding: + switch (uvalue) + { + case DW_ATE_void: printf ("(void)"); break; + case DW_ATE_address: printf ("(machine address)"); break; + case DW_ATE_boolean: printf ("(boolean)"); break; + case DW_ATE_complex_float: printf ("(complex float)"); break; + case DW_ATE_float: printf ("(float)"); break; + case DW_ATE_signed: printf ("(signed)"); break; + case DW_ATE_signed_char: printf ("(signed char)"); break; + case DW_ATE_unsigned: printf ("(unsigned)"); break; + case DW_ATE_unsigned_char: printf ("(unsigned char)"); break; + default: + if (uvalue >= DW_ATE_lo_user + && uvalue <= DW_ATE_hi_user) + printf ("(user defined type)"); + else + printf ("(unknown type)"); + break; + } default: break;