* c-valprint.c (c_val_print): Fix printing for arrays defined
authorDawn Perchik <dawn@cygnus>
Mon, 29 Apr 1996 23:25:27 +0000 (23:25 +0000)
committerDawn Perchik <dawn@cygnus>
Mon, 29 Apr 1996 23:25:27 +0000 (23:25 +0000)
        with 0 length.

gdb/ChangeLog
gdb/c-valprint.c

index b15eb39..3778e45 100644 (file)
@@ -1,3 +1,8 @@
+
+Mon Apr 29 16:17:31 1996  Dawn Perchik <dawn@cygnus.com>
+       * c-valprint.c (c_val_print): Fix printing for arrays defined 
+       with 0 length.
+
 Sun Apr 28 15:08:05 1996  Stan Shebs  <shebs@andros.cygnus.com>
 
        Support for bi-endian remote breakpoints.
index a16f87c..20dae22 100644 (file)
@@ -152,6 +152,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
        {
          addr = unpack_pointer (type, valaddr);
        print_unpacked_pointer:
+          elttype = check_typedef (TYPE_TARGET_TYPE (type));
 
          if (TYPE_CODE (elttype) == TYPE_CODE_FUNC)
            {