From: Mark Wielaard Date: Mon, 24 Nov 2014 19:51:06 +0000 (+0100) Subject: Recognize new DWARFv5 C11, C++11 and C++14 DW_LANG constants. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=0cfd832fc7d4f1b5633248754dcc75fa90b5475b;p=deliverable%2Fbinutils-gdb.git Recognize new DWARFv5 C11, C++11 and C++14 DW_LANG constants. 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de98b3cb15..624b57237c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-11-24 Mark Wielaard + + * 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 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 079038899d..36cbbd90b7 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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: diff --git a/include/ChangeLog b/include/ChangeLog index 4c3d652c54..ea72295487 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2014-11-24 Mark Wielaard + + * dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and + DW_LANG_C_plus_plus_14. + 2014-11-21 Shinichiro Hamaji * dwarf2.def (DW_AT_APPLE_optimized, DW_AT_APPLE_flags) diff --git a/include/dwarf2.h b/include/dwarf2.h index 120e2c16b4..ca440dd42b 100644 --- a/include/dwarf2.h +++ b/include/dwarf2.h @@ -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. */