[RFA/dwarf 1/2]: Add DW_LANG_UPC support in set_cu_language.

Joel Brobecker brobecker@adacore.com
Wed May 15 13:20:00 GMT 2013


Hello,

Pretty straightforward patch that could probably be checked in
as obvious, but since 2/2 is an RFA, no real harm in getting
more eyes on it.

gdb/ChangeLog:

        * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.

Tested on x86_64-linux. No regression.  OK to commit?

Thanks,
-- 
Joel

---
 gdb/dwarf2read.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index ed5aea3..a17cd9d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -14983,6 +14983,7 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
     case DW_LANG_C89:
     case DW_LANG_C99:
     case DW_LANG_C:
+    case DW_LANG_UPC:
       cu->language = language_c;
       break;
     case DW_LANG_C_plus_plus:
-- 
1.7.10.4



More information about the Gdb-patches mailing list