diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-03-14 17:01:05 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-03-14 17:01:05 +0000 |
commit | 751a959bb828352de7d12339268c363a0773af5f (patch) | |
tree | 89bf929b3fcceefb301376aae1b63096746e733e /gdb/eval.c | |
parent | ee4dd2c9756db42e1cdc8dd526875420143a3963 (diff) | |
download | gdb-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |