diff options
author | Tom Tromey <tromey@redhat.com> | 2011-07-13 16:51:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-07-13 16:51:22 +0000 |
commit | d1b66e6d73b81228c8c9f5016aeca59ecbe59a8c (patch) | |
tree | ec1d55888844f788a05365e3debcf0fb16fc127b /gdb/dwarf2expr.c | |
parent | 9a771b671f8b6496f8c57e94a0df82a62b869050 (diff) | |
download | gdb-d1b66e6d73b81228c8c9f5016aeca59ecbe59a8c.zip gdb-d1b66e6d73b81228c8c9f5016aeca59ecbe59a8c.tar.gz gdb-d1b66e6d73b81228c8c9f5016aeca59ecbe59a8c.tar.bz2 |
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
value_from_contents for final conversion.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index b23ad9a..21a8363 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -1221,7 +1221,9 @@ execute_stack_op (struct dwarf_expr_context *ctx, type = dwarf_get_base_type (ctx, type_die, 0); result = (ctx->read_reg) (ctx->baton, reg); - result_val = value_from_ulongest (type, result); + result_val = value_from_ulongest (address_type, result); + result_val = value_from_contents (type, + value_contents_all (result_val)); } break; |