aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-02-02 12:12:11 +0000
committerNick Clifton <nickc@redhat.com>1999-02-02 12:12:11 +0000
commitca2afaf3fb38bd3fda1a07a0448f49f885ee9020 (patch)
tree6bec44c4f385ef6eb726300aa72122c91fff5508
parent808837c56edf59296dca46218c5bd11509a09bd4 (diff)
downloadgdb-ca2afaf3fb38bd3fda1a07a0448f49f885ee9020.zip
gdb-ca2afaf3fb38bd3fda1a07a0448f49f885ee9020.tar.gz
gdb-ca2afaf3fb38bd3fda1a07a0448f49f885ee9020.tar.bz2
DisplayDWARF2 basic type encodings.
-rw-r--r--binutils/ChangeLog3
-rw-r--r--binutils/readelf.c21
2 files changed, 24 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b50f204..12586f5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,8 @@
1999-02-02 Nick Clifton <nickc@cygnus.com>
+ * 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 <clm@cygnus.com>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index a0e0128..068ec23 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;