Move read_mem to dwarf_expr_context
authorZoran Zaric <zoran.zaric@amd.com>
Tue, 15 Sep 2020 10:37:19 +0000 (11:37 +0100)
committerZoran Zaric <zoran.zaric@amd.com>
Thu, 5 Aug 2021 15:39:59 +0000 (16:39 +0100)
commit3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708
tree84e78430ae81223e1b923ed4b7aab54cb0f90b6a
parent73e6b863308a026a5c87dc73ab2417ee39027d4c
Move read_mem to dwarf_expr_context

Following the idea of merging the evaluators, the read_mem 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::read_mem): Move from
dwarf_evaluate_loc_desc.
* dwarf2/frame.c (dwarf_expr_executor::read_mem): Remove
method.
* dwarf2/loc.c (dwarf_evaluate_loc_desc::read_mem): Move to
dwarf_expr_context.
gdb/dwarf2/expr.c
gdb/dwarf2/expr.h
gdb/dwarf2/frame.c
gdb/dwarf2/loc.c