|
From: <sv...@va...> - 2014-11-26 15:43:21
|
Author: mjw
Date: Wed Nov 26 15:43:14 2014
New Revision: 14791
Log:
Bug 341238. Recognize GCC5/DWARFv5 DW_LANG constants Go, C11, C++11, C++14.
Modified:
trunk/NEWS
trunk/coregrind/m_debuginfo/priv_d3basics.h
trunk/coregrind/m_debuginfo/readdwarf3.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Wed Nov 26 15:43:14 2014
@@ -86,6 +86,7 @@
340807 disInstr(arm): unhandled instruction: 0xEE989B20
340856 disInstr(arm64): unhandled instruction 0x1E634C45 (fcsel)
340922 arm64: unhandled getgroups/setgroups syscalls
+341238 Recognize GCC5/DWARFv5 DW_LANG constants (Go, C11, C++11, C++14)
n-i-bz Provide implementations of certain compiler builtins to support
compilers who may not provide those
n-i-bz Old STABS code is still being compiled, but never used. Remove it.
Modified: trunk/coregrind/m_debuginfo/priv_d3basics.h
==============================================================================
--- trunk/coregrind/m_debuginfo/priv_d3basics.h (original)
+++ trunk/coregrind/m_debuginfo/priv_d3basics.h Wed Nov 26 15:43:14 2014
@@ -166,6 +166,11 @@
DW_LANG_D = 0x0013,
/* DWARF 4. */
DW_LANG_Python = 0x0014,
+ /* DWARF 5-pre. Only what GCC already outputs. */
+ DW_LANG_Go = 0x0016,
+ DW_LANG_C_plus_plus_11 = 0x001a,
+ DW_LANG_C11 = 0x001d,
+ DW_LANG_C_plus_plus_14 = 0x0021,
/* MIPS. */
DW_LANG_Mips_Assembler = 0x8001,
/* UPC. */
Modified: trunk/coregrind/m_debuginfo/readdwarf3.c
==============================================================================
--- trunk/coregrind/m_debuginfo/readdwarf3.c (original)
+++ trunk/coregrind/m_debuginfo/readdwarf3.c Wed Nov 26 15:43:14 2014
@@ -3032,7 +3032,8 @@
case DW_LANG_C89: case DW_LANG_C:
case DW_LANG_C_plus_plus: case DW_LANG_ObjC:
case DW_LANG_ObjC_plus_plus: case DW_LANG_UPC:
- case DW_LANG_Upc: case DW_LANG_C99:
+ case DW_LANG_Upc: case DW_LANG_C99: case DW_LANG_C11:
+ case DW_LANG_C_plus_plus_11: case DW_LANG_C_plus_plus_14:
parser->language = 'C'; break;
case DW_LANG_Fortran77: case DW_LANG_Fortran90:
case DW_LANG_Fortran95:
@@ -3043,7 +3044,7 @@
case DW_LANG_Cobol85: case DW_LANG_Pascal83:
case DW_LANG_Modula2: case DW_LANG_Java:
case DW_LANG_PLI:
- case DW_LANG_D: case DW_LANG_Python:
+ case DW_LANG_D: case DW_LANG_Python: case DW_LANG_Go:
case DW_LANG_Mips_Assembler:
parser->language = '?'; break;
default:
|