diff options
author | Doug Evans <dje@google.com> | 2012-06-19 00:37:13 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-06-19 00:37:13 +0000 |
commit | 52baea8e662c649fa620a15df91a626be1c9f5d5 (patch) | |
tree | e713898e75a9164aa53238f54cc1e26af20fd2f4 /gdb/dwarf2expr.c | |
parent | b5d3cf49a354b5012be3cc3ed75e245d4f67f065 (diff) | |
download | gdb-52baea8e662c649fa620a15df91a626be1c9f5d5.tar.gz |
* dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
Adjust address for DW_OP_GNU_addr_index.
* dwarf2expr.h (dwarf_expr_context): Update comment.
* dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
all callers updated. Handle TLS vars described with
DW_OP_GNU_const_index.
(disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
and DW_OP_GNU_const_index.
* dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 40ce6087318..214b371e569 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -727,6 +727,12 @@ execute_stack_op (struct dwarf_expr_context *ctx, case DW_OP_GNU_addr_index: op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset); result = (ctx->funcs->get_addr_index) (ctx->baton, uoffset); + result += ctx->offset; + result_val = value_from_ulongest (address_type, result); + break; + case DW_OP_GNU_const_index: + op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset); + result = (ctx->funcs->get_addr_index) (ctx->baton, uoffset); result_val = value_from_ulongest (address_type, result); break; |