This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Recognize new DWARF5/GCC5 DW_LANG Fortran 2003 and Fortran 2008 standards.
- From: Mark Wielaard <mark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 10 Feb 2015 09:15:36 -0000
- Subject: [binutils-gdb] Recognize new DWARF5/GCC5 DW_LANG Fortran 2003 and Fortran 2008 standards.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f7de9aab902f68a79e83954d2645daf90f9eae33
commit f7de9aab902f68a79e83954d2645daf90f9eae33
Author: Mark Wielaard <mjw@redhat.com>
Date: Mon Feb 9 23:14:38 2015 +0100
Recognize new DWARF5/GCC5 DW_LANG Fortran 2003 and Fortran 2008 standards.
DWARFv5 defines and GCC5 may output two new DW_LANG constants for the
Fortran 2003 and Fortran 2008 standards. Recognize both as variants of
language_fortran.
gdb/ChangeLog:
* dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
DW_LANG_Fortran08 as language_fortran.
http://dwarfstd.org/ShowIssue.php?issue=141121.1
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/dwarf2read.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index be32f3e..305b4b2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-09 Mark Wielaard <mjw@redhat.com>
+
+ * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
+ DW_LANG_Fortran08 as language_fortran.
+
2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
PR remote/17946
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index f7b9b90..db35e7e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -16925,6 +16925,8 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
case DW_LANG_Fortran77:
case DW_LANG_Fortran90:
case DW_LANG_Fortran95:
+ case DW_LANG_Fortran03:
+ case DW_LANG_Fortran08:
cu->language = language_fortran;
break;
case DW_LANG_Go: