* c-valprint.c (c_val_print): Fix printing for arrays defined

with 0 length.
This commit is contained in:
Dawn Perchik 1996-04-29 23:25:27 +00:00
parent 0cacbcbe6e
commit aad0977925
2 changed files with 6 additions and 0 deletions

View 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.

View 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)
{