diff options
author | Ali Tamur <tamur@google.com> | 2019-03-29 19:29:24 -0700 |
---|---|---|
committer | Ali Tamur <tamur@google.com> | 2019-04-22 18:15:59 -0700 |
commit | 336d760da60d93ce76c4560525f65339f3403914 (patch) | |
tree | 046540585a0d50120caa44e4ff530acc16c70f67 /gdb/dwarf2expr.c | |
parent | 4a4153dfc945701938b6f52795cf234fa0a5f5fe (diff) | |
download | gdb-336d760da60d93ce76c4560525f65339f3403914.zip gdb-336d760da60d93ce76c4560525f65339f3403914.tar.gz gdb-336d760da60d93ce76c4560525f65339f3403914.tar.bz2 |
Support for DW_OP_addrx and DW_FORM_addrx tags
DW_OP_addrx is the new name of DW_OP_GNU_addr_index, and DW_FORM_addrx
is the name of DW_FORM_addr_index in the Dwarf 5 standard. This is a small
step towards supporting Dwarf 5 in gdb.
Note: I could not find any tests specifically for *_GNU_addr_index, and
I did not add any new tests, please advise.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index e412e18..3bd9abc 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -634,6 +634,7 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr, result_val = value_from_ulongest (address_type, result); break; + case DW_OP_addrx: case DW_OP_GNU_addr_index: op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset); result = this->get_addr_index (uoffset); |