* ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
authorWilfried Moser <moser@cygnus>
Thu, 30 May 1996 11:26:24 +0000 (11:26 +0000)
committerWilfried Moser <moser@cygnus>
Thu, 30 May 1996 11:26:24 +0000 (11:26 +0000)
gdb/ChangeLog
gdb/ch-exp.c

index 3bdff31851172363135ba6af20ba6f02a7583790..a71b86b2e8504e443ae182d5599accd8e585fa28 100644 (file)
@@ -1,3 +1,7 @@
+Thu May 30 04:24:09 1996  Wilfried Moser (Alcatel)  <moser@rtl.cygnus.com>
+
+       * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
+
 Tue May 28 16:15:47 1996  Geoffrey Noer  <noer@cygnus.com>
 
        * remote-mips.c: cannot use EINVAL for breakpoint test since
index d03415b1124bf9daf92ee522cda88e705d363e80..db1188faac1eef82f37a3acdce92bbd32f9aee0a 100644 (file)
@@ -2035,6 +2035,7 @@ ch_lex ()
                break;
              case LOC_TYPEDEF:
                yylval.tsym.type = SYMBOL_TYPE (sym);
+               calculate_array_length (yylval.tsym.type);
                return TYPENAME;
              case LOC_UNDEF:
              case LOC_CONST_BYTES: