diff options
author | Zoran Zaric <zoran.zaric@amd.com> | 2020-09-15 11:55:55 +0100 |
---|---|---|
committer | Zoran Zaric <zoran.zaric@amd.com> | 2021-08-05 16:40:06 +0100 |
commit | 0a2b69d04bbb0b5d69ae93da998b65d44fc7612b (patch) | |
tree | 81fd0e8c389cd655910f03359045913db396bafd /gdb/dwarf2/expr.h | |
parent | 3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708 (diff) | |
download | fsf-binutils-gdb-0a2b69d04bbb0b5d69ae93da998b65d44fc7612b.zip fsf-binutils-gdb-0a2b69d04bbb0b5d69ae93da998b65d44fc7612b.tar.gz fsf-binutils-gdb-0a2b69d04bbb0b5d69ae93da998b65d44fc7612b.tar.bz2 |
Move push_dwarf_reg_entry_value to expr.c
Following the idea of merging the evaluators, the
push_dwarf_reg_entry_value method can be moved from
dwarf_expr_executor and dwarf_evaluate_loc_desc classes
to their base class dwarf_expr_context.
gdb/ChangeLog:
* dwarf2/expr.c
(dwarf_expr_context::push_dwarf_reg_entry_value): Move from
dwarf_evaluate_loc_desc.
* dwarf2/frame.c
(dwarf_expr_executor::push_dwarf_reg_entry_value): Remove
method.
* dwarf2/loc.c (dwarf_expr_reg_to_entry_parameter): Expose
function.
(dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Move to
dwarf_expr_context.
* dwarf2/loc.h (dwarf_expr_reg_to_entry_parameter): Expose
function.
Diffstat (limited to 'gdb/dwarf2/expr.h')
-rw-r--r-- | gdb/dwarf2/expr.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/dwarf2/expr.h b/gdb/dwarf2/expr.h index 3a085fd..70c887b 100644 --- a/gdb/dwarf2/expr.h +++ b/gdb/dwarf2/expr.h @@ -194,14 +194,6 @@ struct dwarf_expr_context /* Read LENGTH bytes at ADDR into BUF. */ virtual void read_mem (gdb_byte *buf, CORE_ADDR addr, size_t length); - /* Push on DWARF stack an entry evaluated for DW_TAG_call_site's - parameter matching KIND and KIND_U at the caller of specified BATON. - If DEREF_SIZE is not -1 then use DW_AT_call_data_value instead of - DW_AT_call_value. */ - virtual void push_dwarf_reg_entry_value (enum call_site_parameter_kind kind, - union call_site_parameter_u kind_u, - int deref_size) = 0; - /* Return the `object address' for DW_OP_push_object_address. */ virtual CORE_ADDR get_object_address () { @@ -240,6 +232,14 @@ private: STACK while it being passed to and returned from the called DWARF subroutine. */ void dwarf_call (cu_offset die_cu_off); + + /* Push on DWARF stack an entry evaluated for DW_TAG_call_site's + parameter matching KIND and KIND_U at the caller of specified BATON. + If DEREF_SIZE is not -1 then use DW_AT_call_data_value instead of + DW_AT_call_value. */ + void push_dwarf_reg_entry_value (call_site_parameter_kind kind, + call_site_parameter_u kind_u, + int deref_size); }; /* Return the value of register number REG (a DWARF register number), |