projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cacbcb
)
* c-valprint.c (c_val_print): Fix printing for arrays defined
author
Dawn Perchik
<dawn@cygnus>
Mon, 29 Apr 1996 23:25:27 +0000
(23:25 +0000)
committer
Dawn Perchik
<dawn@cygnus>
Mon, 29 Apr 1996 23:25:27 +0000
(23:25 +0000)
with 0 length.
gdb/ChangeLog
patch
|
blob
|
history
gdb/c-valprint.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index b15eb394f19fd322d75b36b1614e3424a9d480ad..3778e455d928e9479c65377982cc3d1649f64585 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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.
diff --git
a/gdb/c-valprint.c
b/gdb/c-valprint.c
index a16f87cf6eb3aec683171dd1201cdef373f34914..20dae22f2a7bc8c666c4a7bbfadb796c7840a8b3 100644
(file)
--- 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)
{