diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-22 13:38:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-22 13:38:19 +0000 |
commit | 55066f0271b40fc765d44dfa5063c41698bee2d8 (patch) | |
tree | 73a53390059f7e6cc44bdd2148f76bd5d8362c35 /gdb | |
parent | c962cbad8818e9ad034067160b074e97f8b367cb (diff) | |
download | gdb-55066f0271b40fc765d44dfa5063c41698bee2d8.tar.gz |
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
argument of 0 specially.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2expr.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b11442854f4..1c5ef959a03 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-06-22 Tom Tromey <tromey@redhat.com> + + * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type + argument of 0 specially. + 2011-06-22 Yao Qi <yao@codesourcery.com> * infrun.c (handle_inferior_event): Remove write-only local variable diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 23389b8b31d..c5ea85da802 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -1229,7 +1229,10 @@ execute_stack_op (struct dwarf_expr_context *ctx, op_ptr = read_uleb128 (op_ptr, op_end, &type_die); - type = dwarf_get_base_type (ctx, type_die, 0); + if (type_die == 0) + type = address_type; + else + type = dwarf_get_base_type (ctx, type_die, 0); result_val = dwarf_expr_fetch (ctx, 0); dwarf_expr_pop (ctx); |