aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-12-10 17:48:27 +0000
committerNick Clifton <nickc@redhat.com>2002-12-10 17:48:27 +0000
commit84ad6ede873e50111c8e64728ae858d079339002 (patch)
tree4af9528a1b5399f31dc021743cf8fd60a1a77ee9 /binutils
parente6af3a53b1740fb6554ac582fd7ac74022dff8c2 (diff)
downloadfsf-binutils-gdb-84ad6ede873e50111c8e64728ae858d079339002.zip
fsf-binutils-gdb-84ad6ede873e50111c8e64728ae858d079339002.tar.gz
fsf-binutils-gdb-84ad6ede873e50111c8e64728ae858d079339002.tar.bz2
Add support for displaying extension to DWARF2 used by Unified Parallel C
compiler.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog7
-rw-r--r--binutils/NEWS3
-rw-r--r--binutils/readelf.c8
3 files changed, 18 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 573830b..ec9ca63 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,10 @@
+2002-12-10 James Cownie <jcownie@etnus.com>
+
+ * readelf.h (get_TAG_name, get_AT_name,
+ read_and_display_attr_value): Add support for UPC extenstions to
+ DWARF2 spec.
+ * NEWS: Mention this new support.
+
2002-12-08 Alan Modra <amodra@bigpond.net.au>
* NEWS: Mention that bfd no longer declares a "boolean" type.
diff --git a/binutils/NEWS b/binutils/NEWS
index 9a34ecb..74042b1 100644
--- a/binutils/NEWS
+++ b/binutils/NEWS
@@ -1,5 +1,8 @@
-*- text -*-
+* readelf can handle the extensions to the DWARF2 spec used by the Unified
+ Parallel C compiler.
+
* BFD no longer declares a "boolean" type, to avoid clashes with other
headers that declare the same. Users of BFD should replace boolean,
false and true, with int, 0 and 1, or define their own boolean type.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 6a5732a..461d63f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -6735,6 +6735,10 @@ get_TAG_name (tag)
case DW_TAG_unspecified_type: return "DW_TAG_unspecified_type";
case DW_TAG_partial_unit: return "DW_TAG_partial_unit";
case DW_TAG_imported_unit: return "DW_TAG_imported_unit";
+ /* UPC values. */
+ case DW_TAG_upc_shared_type: return "DW_TAG_upc_shared_type";
+ case DW_TAG_upc_strict_type: return "DW_TAG_upc_strict_type";
+ case DW_TAG_upc_relaxed_type: return "DW_TAG_upc_relaxed_type";
default:
{
static char buffer[100];
@@ -6847,6 +6851,8 @@ get_AT_name (attribute)
case DW_AT_body_begin: return "DW_AT_body_begin";
case DW_AT_body_end: return "DW_AT_body_end";
case DW_AT_GNU_vector: return "DW_AT_GNU_vector";
+ /* UPC extension. */
+ case DW_AT_upc_threads_scaled: return "DW_AT_upc_threads_scaled";
default:
{
static char buffer[100];
@@ -7933,6 +7939,8 @@ read_and_display_attr_value (attribute, form, data, cu_offset, pointer_size)
case DW_LANG_Fortran95: printf ("(Fortran 95)"); break;
/* MIPS extension. */
case DW_LANG_Mips_Assembler: printf ("(MIPS assembler)"); break;
+ /* UPC extension. */
+ case DW_LANG_Upc: printf ("(Unified Parallel C)"); break;
default:
printf ("(Unknown: %lx)", uvalue);
break;