aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorDawn Perchik <dawn@cygnus>1997-02-12 10:49:20 +0000
committerDawn Perchik <dawn@cygnus>1997-02-12 10:49:20 +0000
commitbe733f58411ad908177f6bb9e215521cc3f84753 (patch)
treeee86a409d6a13b85b22b503cfd4d4e0637753acf /gdb/c-valprint.c
parent16a43bf443c8e2ab7fc9d35e131d6a3d773149b6 (diff)
downloadgdb-be733f58411ad908177f6bb9e215521cc3f84753.zip
gdb-be733f58411ad908177f6bb9e215521cc3f84753.tar.gz
gdb-be733f58411ad908177f6bb9e215521cc3f84753.tar.bz2
* c-valprint.c (c_val_print): Fix printing for arrays defined
with 0 length. A sticky tag caused this fix from revision 2.32 date: 1996/04/29 23:25:27; author: dawn; state: Exp; lines: +1 -0 branches: 2.32.34; to not make it into devo.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 7901a5f..77f4d19 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -153,6 +153,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));
+ elttype = check_typedef (TYPE_TARGET_TYPE (type));
if (TYPE_CODE (elttype) == TYPE_CODE_FUNC)
{