aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.h
diff options
context:
space:
mode:
authorAli Tamur <tamur@google.com>2019-03-29 19:29:24 -0700
committerAli Tamur <tamur@google.com>2019-04-22 18:15:59 -0700
commit336d760da60d93ce76c4560525f65339f3403914 (patch)
tree046540585a0d50120caa44e4ff530acc16c70f67 /gdb/dwarf2expr.h
parent4a4153dfc945701938b6f52795cf234fa0a5f5fe (diff)
downloadfsf-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.h5
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;