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.h | |
parent | 4a4153dfc945701938b6f52795cf234fa0a5f5fe (diff) | |
download | fsf-binutils-gdb-336d760da60d93ce76c4560525f65339f3403914.zip fsf-binutils-gdb-336d760da60d93ce76c4560525f65339f3403914.tar.gz fsf-binutils-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.h')
-rw-r--r-- | gdb/dwarf2expr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index c7cbf32..2a92a289 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -139,7 +139,8 @@ struct dwarf_expr_context context and operations depending on DW_FORM_ref_addr are not allowed. */ int ref_addr_size; - /* Offset used to relocate DW_OP_addr and DW_OP_GNU_addr_index arguments. */ + /* Offset used to relocate DW_OP_addr, DW_OP_addrx, and + DW_OP_GNU_addr_index arguments. */ CORE_ADDR offset; /* The current depth of dwarf expression recursion, via DW_OP_call*, @@ -242,7 +243,7 @@ struct dwarf_expr_context union call_site_parameter_u kind_u, int deref_size) = 0; - /* Return the address indexed by DW_OP_GNU_addr_index. + /* Return the address indexed by DW_OP_addrx or DW_OP_GNU_addr_index. This can throw an exception if the index is out of range. */ virtual CORE_ADDR get_addr_index (unsigned int index) = 0; |