diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-08-11 16:36:04 -0700 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-08-18 18:11:28 +0200 |
commit | 08412b0722301c4ffbd9fd51d4056bc436b69658 (patch) | |
tree | 8f9ed8e0ae8647e2d5656927381578f115ac393f /gdb/dwarf2expr.h | |
parent | 84754697d2ac74094af81cd484d4471c2e58117b (diff) | |
download | gdb-08412b0722301c4ffbd9fd51d4056bc436b69658.zip gdb-08412b0722301c4ffbd9fd51d4056bc436b69658.tar.gz gdb-08412b0722301c4ffbd9fd51d4056bc436b69658.tar.bz2 |
Add support for DW_OP_push_object_address.
gdb/ChangeLog:
* dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
field "get_object_address".
* dwarf2expr.c (execute_stack_op): Add handling for
DW_OP_push_object_address.
* dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
* dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
(dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
(dwarf_expr_get_obj_addr): New function.
(dwarf_expr_ctx_funcs): Add get_object_address field.
(dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
(dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
(dwarf2_evaluate_property): Add parameter "address". Use it.
(needs_get_obj_addr): New function.
(needs_frame_ctx_funcs): Add get_object_address field.
(dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
* gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
(resolve_dynamic_array): Likewise.
Diffstat (limited to 'gdb/dwarf2expr.h')
-rw-r--r-- | gdb/dwarf2expr.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index 39dadf3..8cebbe8 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -84,12 +84,8 @@ struct dwarf_expr_context_funcs This can throw an exception if the index is out of range. */ CORE_ADDR (*get_addr_index) (void *baton, unsigned int index); -#if 0 - /* Not yet implemented. */ - /* Return the `object address' for DW_OP_push_object_address. */ CORE_ADDR (*get_object_address) (void *baton); -#endif }; /* The location of a value. */ |