diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-11-24 20:51:06 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2014-11-26 12:47:29 +0100 |
commit | 0cfd832fc7d4f1b5633248754dcc75fa90b5475b (patch) | |
tree | c469a668dca8c77e54349a989d7c8df1952199a1 /gdb/dwarf2read.c | |
parent | 601a03ba3d521989584a1f8abd5678040e0218cf (diff) | |
download | gdb-0cfd832fc7d4f1b5633248754dcc75fa90b5475b.zip gdb-0cfd832fc7d4f1b5633248754dcc75fa90b5475b.tar.gz gdb-0cfd832fc7d4f1b5633248754dcc75fa90b5475b.tar.bz2 |
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 0790388..36cbbd9 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: |