]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: Sync libiberty and include with GCC for get_DW_UT_name
authorAlan Modra <amodra@gmail.com>
Fri, 25 Sep 2020 00:30:01 +0000 (10:00 +0930)
committerMark Wielaard <mark@klomp.org>
Mon, 16 Nov 2020 19:41:54 +0000 (20:41 +0100)
* dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define.

(cherry picked from commit cc9ea2c21cd6e2c88995a7484d2c848c7d7ce71b)

elfcpp/ChangeLog
elfcpp/dwarf.h

index efb82c5770396a941e0302e732f84cdd604d9b44..fa1d20e5d9ad1c17e293eb9dd3380bbdc292e41c 100644 (file)
@@ -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.
index 1221f37f8a60f18fb23a718e430d7e16867000bb..d5e06d4d7d30a19b9de283de79b830137b4b6aca 100644 (file)
@@ -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