aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-25 10:00:01 +0930
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-01-23 20:22:07 +0200
commit7d4b14fecc73574daaf7b3ef97540cf7e7fc518b (patch)
treec4eae9cd43cbaa5e27879926a02f3ce0c02f7260
parentAccept the DW_FORM_ref8 type when parsing DWARF types. (diff)
downloadbinutils-gdb-7d4b14fecc73574daaf7b3ef97540cf7e7fc518b.tar.gz
binutils-gdb-7d4b14fecc73574daaf7b3ef97540cf7e7fc518b.tar.bz2
binutils-gdb-7d4b14fecc73574daaf7b3ef97540cf7e7fc518b.zip
Re: Sync libiberty and include with GCC for get_DW_UT_name
* dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define. (cherry picked from commit cc9ea2c21cd6e2c88995a7484d2c848c7d7ce71b) (cherry picked from commit c33430a9e758aa3314483b96c358dba79dac9834)
-rw-r--r--elfcpp/ChangeLog7
-rw-r--r--elfcpp/dwarf.h9
2 files changed, 16 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index efb82c5770..fa1d20e5d9 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,10 @@
+2020-11-16 Mark Wielaard <mark@klomp.org>
+
+ Backport from the mainline:
+ 2020-09-25 Alan Modra <amodra@gmail.com>
+
+ * dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define.
+
2020-07-04 Nick Clifton <nickc@redhat.com>
Binutils 2.35 branch created.
diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h
index 1221f37f8a..d5e06d4d7d 100644
--- a/elfcpp/dwarf.h
+++ b/elfcpp/dwarf.h
@@ -81,6 +81,11 @@ namespace elfcpp
#define DW_IDX_DUP(name, value) , name = value
#define DW_END_IDX };
+#define DW_FIRST_UT(name, value) enum dwarf_unit_type { \
+ name = value
+#define DW_UT(name, value) , name = value
+#define DW_END_UT };
+
#include "dwarf2.def"
#undef DW_FIRST_TAG
@@ -117,6 +122,10 @@ namespace elfcpp
#undef DW_IDX_DUP
#undef DW_END_IDX
+#undef DW_FIRST_UT
+#undef DW_UT
+#undef DW_END_UT
+
// Frame unwind information.
enum DW_EH_PE