* dwarf2read.c (set_cu_language): Set language to Ada for
authorJoel Brobecker <brobecker@gnat.com>
Sat, 16 Oct 2004 00:41:00 +0000 (00:41 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 16 Oct 2004 00:41:00 +0000 (00:41 +0000)
        DW_LANG_Ada83 and DW_LANG_Ada95.

gdb/ChangeLog
gdb/dwarf2read.c

index c65ecee491b9f01cf280ce30a6d0d9cc7e5fe1e2..5ddba9ee5b195cab1be94cbcec91307f380a1774 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-15  Joel Brobecker  <brobecker@gnat.com>
+
+       * dwarf2read.c (set_cu_language): Set language to Ada for
+       DW_LANG_Ada83 and DW_LANG_Ada95.
+
 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
 
        From Andreas Schwab <schwab@suse.de>:
index 9e1bbb909c19ae0ec5724ce4d0c70e4e8d26e307..420bea094bdac08565a29a5836544b3d6cb23d14 100644 (file)
@@ -6094,6 +6094,8 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
       break;
     case DW_LANG_Ada83:
     case DW_LANG_Ada95:
+      cu->language = language_ada;
+      break;
     case DW_LANG_Cobol74:
     case DW_LANG_Cobol85:
     case DW_LANG_Pascal83: