Recognize new DWARFv5 C11, C++11 and C++14 DW_LANG constants.
authorMark Wielaard <mjw@redhat.com>
Mon, 24 Nov 2014 19:51:06 +0000 (20:51 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 26 Nov 2014 11:47:29 +0000 (12:47 +0100)
gdb/ChangeLog

* dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
DW_LANG_C_plus_plus_11, 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.

gdb/ChangeLog
gdb/dwarf2read.c
include/ChangeLog
include/dwarf2.h

index de98b3cb1515ed40f62c2e3e29b6e8a572b75ac4..624b57237c63e70ab670838e769af22ae59f92b8 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-24  Mark Wielaard  <mjw@redhat.com>
+
+       * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
+       DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
+
 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
 
        * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
index 079038899d173da8e37a9f78cfcf99e5e4241f9b..36cbbd90b7ff66fcfc24919448cba8c06be93bc2 100644 (file)
@@ -16711,11 +16711,14 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
     {
     case DW_LANG_C89:
     case DW_LANG_C99:
+    case DW_LANG_C11:
     case DW_LANG_C:
     case DW_LANG_UPC:
       cu->language = language_c;
       break;
     case DW_LANG_C_plus_plus:
+    case DW_LANG_C_plus_plus_11:
+    case DW_LANG_C_plus_plus_14:
       cu->language = language_cplus;
       break;
     case DW_LANG_D:
index 4c3d652c54ba810dd7084524d6530da00774e891..ea72295487644a8f0aac2e8189171996d77de283 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-24  Mark Wielaard  <mjw@redhat.com>
+
+       * dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
+       DW_LANG_C_plus_plus_14.
+
 2014-11-21  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>
 
        * dwarf2.def (DW_AT_APPLE_optimized, DW_AT_APPLE_flags)
index 120e2c16b4820f823c75ab8b2aa7c00bab6291fa..ca440dd42b535ad9665afdc73a57f8da7be4e690 100644 (file)
@@ -309,6 +309,10 @@ enum dwarf_source_language
     /* DWARF 5.  */
     DW_LANG_Go = 0x0016,
 
+    DW_LANG_C_plus_plus_11 = 0x001a, /* dwarf5.20141029.pdf DRAFT */
+    DW_LANG_C11 = 0x001d,
+    DW_LANG_C_plus_plus_14 = 0x0021,
+
     DW_LANG_lo_user = 0x8000,  /* Implementation-defined range start.  */
     DW_LANG_hi_user = 0xffff,  /* Implementation-defined range start.  */