2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 11 Feb 2009 22:30:04 +0000 (22:30 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 11 Feb 2009 22:30:04 +0000 (22:30 +0000)
* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for DW_ATE_signed_char and DW_ATE_unisgned_char
for pascal language.

gdb/ChangeLog
gdb/dwarf2read.c

index 107c3e117662f303d505e2dd5b86d4b209b52547..00eee92d073a5ae608d56aea64748e963f18731b 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-11  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
+       for DW_ATE_signed_char and DW_ATE_unisgned_char
+       for pascal language.
+
 2009-02-11  Jim Meyering  <meyering@redhat.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>
 
index 925cfd028158771a2ebaffa344e10f0abdb0c971..988c4e507665d5fe130d1aa428a0c4378234f453 100644 (file)
@@ -5098,11 +5098,13 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu)
        type_flags |= TYPE_FLAG_UNSIGNED;
        break;
       case DW_ATE_signed_char:
-       if (cu->language == language_ada || cu->language == language_m2)
+       if (cu->language == language_ada || cu->language == language_m2 
+           || cu->language == language_pascal)
          code = TYPE_CODE_CHAR;
        break;
       case DW_ATE_unsigned_char:
-       if (cu->language == language_ada || cu->language == language_m2)
+       if (cu->language == language_ada || cu->language == language_m2
+           || cu->language == language_pascal)
          code = TYPE_CODE_CHAR;
        type_flags |= TYPE_FLAG_UNSIGNED;
        break;