[PATCH 3/9] libdw: Add new DWARF5 character encodings.

Mark Wielaard mark@klomp.org
Wed Jul 26 22:08:00 GMT 2017


Add DW_ATE_UCS and DW_ATE_ASCII for Fortran 2003 string kinds ASCII
(ISO/IEC 646:1991) and ISO_10646 (UCS-4 in ISO/IEC 10646:2000).

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 ChangeLog       | 3 ++-
 NEWS            | 3 ++-
 libdw/ChangeLog | 4 ++++
 libdw/dwarf.h   | 2 ++
 4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 09c8d14..cd91c5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2017-07-25  Mark Wielaard  <mark@klomp.org>
 
-	* NEWS: Mention new DWARF5 attributes and tags in dwarf.h.
+	* NEWS: Mention new DWARF5 attributes, tags and character encodings
+	in dwarf.h.
 
 2017-07-18  Mark Wielaard  <mark@klomp.org>
 
diff --git a/NEWS b/NEWS
index 6a5ee0d..9437061 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 Version 0.170
 
-libdw: Added new DWARF5 attribute and tag constants to dwarf.h.
+libdw: Added new DWARF5 attribute, tag and character encodings constants
+       to dwarf.h.
 
 strip: Add -R, --remove-section=SECTION and --keep-section=SECTION.
 
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 4bf46c0..25a9648 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2017-07-26  Mark Wielaard  <mark@klomp.org>
+
+	* dwarf.h: Add DW_ATE_UCS and DW_ATE_ASCII.
+
 2017-07-25  Mark Wielaard  <mark@klomp.org>
 
 	* dwarf.h: Add DW_TAG_coarray_type, DW_TAG_generic_subrange,
diff --git a/libdw/dwarf.h b/libdw/dwarf.h
index c998784..4072272 100644
--- a/libdw/dwarf.h
+++ b/libdw/dwarf.h
@@ -571,6 +571,8 @@ enum
     DW_ATE_unsigned_fixed = 0xe,
     DW_ATE_decimal_float = 0xf,
     DW_ATE_UTF = 0x10,
+    DW_ATE_UCS = 0x11,
+    DW_ATE_ASCII = 0x12,
 
     DW_ATE_lo_user = 0x80,
     DW_ATE_hi_user = 0xff
-- 
1.8.3.1



More information about the Elfutils-devel mailing list