* Fix PR 2223. Recognize Pascal language marker in dwarf readers
authorPierre Muller <muller@sourceware.org>
Mon, 12 Feb 2007 15:19:31 +0000 (15:19 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 12 Feb 2007 15:19:31 +0000 (15:19 +0000)
gdb/ChangeLog
gdb/dwarf2read.c
gdb/dwarfread.c

index fcbc6729a7a30ab29b06a7e501b706222c0de5b9..037c06c7a0e4ddc3ecce7aa48d605ec790beb643 100644 (file)
@@ -1,3 +1,10 @@
+2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix PR pascal/2223.
+       * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
+       Pascal language marker.
+       * dwarf2read.c (set_cu_language): Likewise.
+
 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
 
        * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
index 3c61f9a0e84020660c5f1bf92ef9dd22a6180db3..4d62926400735ffdbd9cc78f4703cb51a7136c6e 100644 (file)
@@ -6325,9 +6325,11 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
     case DW_LANG_Modula2:
       cu->language = language_m2;
       break;
+    case DW_LANG_Pascal83:
+      cu->language = language_pascal;
+      break;
     case DW_LANG_Cobol74:
     case DW_LANG_Cobol85:
-    case DW_LANG_Pascal83:
     default:
       cu->language = language_minimal;
       break;
index 6171b1a1c68135a85f563c96579bf1259d2e5372..b7000e563d6e6eb9e33eb31fadff8c0f24b72728 100644 (file)
@@ -616,10 +616,12 @@ set_cu_language (struct dieinfo *dip)
     case LANG_FORTRAN90:
       cu_language = language_fortran;
       break;
+    case LANG_PASCAL83:
+      cu_language = language_pascal;
+      break;
     case LANG_ADA83:
     case LANG_COBOL74:
     case LANG_COBOL85:
-    case LANG_PASCAL83:
       /* We don't know anything special about these yet. */
       cu_language = language_unknown;
       break;