From: Dawn Perchik Date: Mon, 29 Apr 1996 23:25:27 +0000 (+0000) Subject: * c-valprint.c (c_val_print): Fix printing for arrays defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad0977925596c3e9baeb9c0d4d8a117911a06b5;p=binutils-gdb.git * c-valprint.c (c_val_print): Fix printing for arrays defined with 0 length. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b15eb394f19..3778e455d92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ + +Mon Apr 29 16:17:31 1996 Dawn Perchik + * c-valprint.c (c_val_print): Fix printing for arrays defined + with 0 length. + Sun Apr 28 15:08:05 1996 Stan Shebs Support for bi-endian remote breakpoints. diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index a16f87cf6eb..20dae22f2a7 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -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) {