aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
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 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)
{