[binutils-gdb] Re: Sync libiberty and include with GCC for get_DW_UT_name
Alan Modra
amodra@sourceware.org
Fri Sep 25 02:25:26 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cc9ea2c21cd6e2c88995a7484d2c848c7d7ce71b
commit cc9ea2c21cd6e2c88995a7484d2c848c7d7ce71b
Author: Alan Modra <amodra@gmail.com>
Date: Fri Sep 25 10:00:01 2020 +0930
Re: Sync libiberty and include with GCC for get_DW_UT_name
* dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define.
Diff:
---
elfcpp/ChangeLog | 4 ++++
elfcpp/dwarf.h | 9 +++++++++
2 files changed, 13 insertions(+)
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index e65f69b776a..87e4fc8698f 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,7 @@
+2020-09-25 Alan Modra <amodra@gmail.com>
+
+ * dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define.
+
2020-08-26 Cooper Qu <cooper.qu@linux.alibaba.com>
* elfcpp.h (enum SHT): New enum SHT_CSKY_ATTRIBUTES.
diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h
index 1221f37f8a6..d5e06d4d7d3 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
More information about the Binutils-cvs
mailing list