This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_25-branch] dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 11 Feb 2015 12:46:51 -0000
- Subject: [binutils-gdb/binutils-2_25-branch] dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1acf74874f82e795c3bf72d265e3f6988f5e3b01
commit 1acf74874f82e795c3bf72d265e3f6988f5e3b01
Author: Mark Wielaard <mjw@redhat.com>
Date: Mon Nov 24 21:24:25 2014 +0100
dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
binutils/ChangeLog
* dwarf.c (read_and_display_attr_value): Handle DW_LANG_C11,
DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
Diff:
---
binutils/ChangeLog | 7 +++++++
binutils/dwarf.c | 3 +++
2 files changed, 10 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f26c706..ce9f367 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-11 Alan Modra <amodra@gmail.com>
+
+ Apply from master.
+ 2014-11-24 Mark Wielaard <mjw@redhat.com>
+ * dwarf.c (read_and_display_attr_value): Handle DW_LANG_C11,
+ DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
+
2014-12-23 Tristan Gingold <gingold@adacore.com>
* configure: Regenerate.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 84e628a..abe84626 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1887,6 +1887,9 @@ read_and_display_attr_value (unsigned long attribute,
case DW_LANG_Python: printf ("(Python)"); break;
/* DWARF 5 values. */
case DW_LANG_Go: printf ("(Go)"); break;
+ case DW_LANG_C_plus_plus_11: printf ("(C++11)"); break;
+ case DW_LANG_C11: printf ("(ANSI C11)"); break;
+ case DW_LANG_C_plus_plus_14: printf ("(C++14)"); break;
/* MIPS extension. */
case DW_LANG_Mips_Assembler: printf ("(MIPS assembler)"); break;
/* UPC extension. */