This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
- From: Mark Wielaard <mjw at redhat dot com>
- To: binutils at sourceware dot org
- Date: Wed, 26 Nov 2014 17:24:58 +0100
- Subject: Re: [PATCH] dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
- Authentication-results: sourceware.org; auth=none
- References: <1416860956-29285-1-git-send-email-mjw at redhat dot com>
On Mon, 2014-11-24 at 21:29 +0100, Mark Wielaard wrote:
> The following patch is needed to recognize the new DW_LANG constants
> that GCC 5 might emit as implemented by this GCC patch:
> https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02852.html
>
> 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.
>
> include/ChangeLog
>
> * dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
> DW_LANG_C_plus_plus_14.
>
> OK to commit?
The change is already in GCC and GDB. So the include part isn't
necessary anymore. Rebased patch attached.
OK to commit?
Thanks,
Mark
From 90c1e0bb384e5dddce8b47f98cffafbaef7627eb Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Mon, 24 Nov 2014 21:24:25 +0100
Subject: [PATCH] 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.
---
binutils/ChangeLog | 5 +++++
binutils/dwarf.c | 3 +++
2 files changed, 8 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 542d788..131925a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+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-11-26 Nick Clifton <nickc@redhat.com>
PR binutils/17512
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 622fe91..e2bac1f 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1935,6 +1935,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. */
--
1.8.3.1