aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 1f4c869..1074e1d 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2984,6 +2984,7 @@ evaluate_subexp_with_coercion (struct expression *exp,
{
(*pos) += 4;
val = address_of_variable (var, exp->elts[pc + 1].block);
+ type = value_type (val);
return value_cast (lookup_pointer_type (TYPE_TARGET_TYPE (type)),
val);
}