aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-14 17:01:05 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-14 17:01:05 +0000
commit751a959bb828352de7d12339268c363a0773af5f (patch)
tree89bf929b3fcceefb301376aae1b63096746e733e /gdb/eval.c
parentee4dd2c9756db42e1cdc8dd526875420143a3963 (diff)
downloadgdb-751a959bb828352de7d12339268c363a0773af5f.zip
gdb-751a959bb828352de7d12339268c363a0773af5f.tar.gz
gdb-751a959bb828352de7d12339268c363a0773af5f.tar.bz2
2000-03-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* eval.c (evaluate_subexp_with_coercion): Add call to check_typedef, to handle typedeffed vars correctly. * gdb.base/printcmds.c: Add typedeffed arrays. * gdb.base/printcmds.exp (test_print_typedef_arrays): New procedure to test arrays that are typedef'd.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index d054ac7..5a86a34 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1875,7 +1875,7 @@ evaluate_subexp_with_coercion (exp, pos, noside)
val =
locate_var_value
(var, block_innermost_frame (exp->elts[pc + 1].block));
- return value_cast (lookup_pointer_type (TYPE_TARGET_TYPE (SYMBOL_TYPE (var))),
+ return value_cast (lookup_pointer_type (TYPE_TARGET_TYPE (check_typedef (SYMBOL_TYPE (var)))),
val);
}
/* FALLTHROUGH */