[PATCH 2/3] Sync libiberty and include with GCC for get_DW_UT_name.
Alan Modra
amodra@gmail.com
Fri Sep 25 02:23:17 GMT 2020
On Thu, Sep 24, 2020 at 11:12:49PM +0200, Mark Wielaard wrote:
> BTW. It would be nice if binutils adopted the same method as GCC and
> only required the ChangeLog entries in the commit message and not
> require an actual ChangeLog file entry.
Yes, it would be nice. I guess we'd need gdb to do the same.
elfcpp/
* dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define.
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
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list