diff options
author | Dawn Perchik <dawn@cygnus> | 1996-04-29 23:25:27 +0000 |
---|---|---|
committer | Dawn Perchik <dawn@cygnus> | 1996-04-29 23:25:27 +0000 |
commit | aad0977925596c3e9baeb9c0d4d8a117911a06b5 (patch) | |
tree | 8e978ad642bdbeb6b7067bc6d53531d5518b9689 /gdb/c-valprint.c | |
parent | 0cacbcbe6e68ad0e2bc18f396d35365abdaa825a (diff) | |
download | gdb-aad0977925596c3e9baeb9c0d4d8a117911a06b5.zip gdb-aad0977925596c3e9baeb9c0d4d8a117911a06b5.tar.gz gdb-aad0977925596c3e9baeb9c0d4d8a117911a06b5.tar.bz2 |
* c-valprint.c (c_val_print): Fix printing for arrays defined
with 0 length.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index a16f87c..20dae22 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) { |