diff options
author | Jim Blandy <jimb@codesourcery.com> | 2007-10-26 23:04:57 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2007-10-26 23:04:57 +0000 |
commit | 648027ccebd4461f6e38ed9e708990cf16af526d (patch) | |
tree | 07cd162818787ee7260b031f20b8115087b15d26 /gdb/ax-gdb.c | |
parent | e53668912655fc741cb2883f70164d26d84e0327 (diff) | |
download | fsf-binutils-gdb-648027ccebd4461f6e38ed9e708990cf16af526d.zip fsf-binutils-gdb-648027ccebd4461f6e38ed9e708990cf16af526d.tar.gz fsf-binutils-gdb-648027ccebd4461f6e38ed9e708990cf16af526d.tar.bz2 |
* ax-general.c (gen_traced_pop, gen_int_literal)
(gen_usual_arithmetic): Check for typedefs.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 18b7e31..27cc5b1 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -319,7 +319,7 @@ gen_traced_pop (struct agent_expr *ax, struct axs_value *value) case axs_lvalue_memory: { - int length = TYPE_LENGTH (value->type); + int length = TYPE_LENGTH (check_typedef (value->type)); /* There's no point in trying to use a trace_quick bytecode here, since "trace_quick SIZE pop" is three bytes, whereas @@ -650,7 +650,7 @@ gen_int_literal (struct agent_expr *ax, struct axs_value *value, LONGEST k, { ax_const_l (ax, k); value->kind = axs_rvalue; - value->type = type; + value->type = check_typedef (type); } @@ -854,7 +854,7 @@ gen_usual_arithmetic (struct agent_expr *ax, struct axs_value *value1, ax_simple (ax, aop_swap); } - value1->type = value2->type = target; + value1->type = value2->type = check_typedef (target); } } |