aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/expr.h
diff options
context:
space:
mode:
authorZoran Zaric <Zoran.Zaric@amd.com>2020-10-09 11:22:23 +0100
committerZoran Zaric <zoran.zaric@amd.com>2021-08-05 16:39:27 +0100
commit6c7779b34b38ca71df9460c07bc4c03d01dfaa0b (patch)
tree4a2d0ea8953c4544e6c23f6cc36c206df391e611 /gdb/dwarf2/expr.h
parent62e37eac1c5b9e4805d40715e7570f7146caa788 (diff)
downloadfsf-binutils-gdb-6c7779b34b38ca71df9460c07bc4c03d01dfaa0b.zip
fsf-binutils-gdb-6c7779b34b38ca71df9460c07bc4c03d01dfaa0b.tar.gz
fsf-binutils-gdb-6c7779b34b38ca71df9460c07bc4c03d01dfaa0b.tar.bz2
Remove get_frame_cfa from dwarf_expr_context
Following the idea of merging the evaluators, the get_frame_cfa method can be moved from dwarf_expr_executor and dwarf_evaluate_loc_desc classes to their base class dwarf_expr_context. Once this is done, it becomes apparent that the method is only called once and it can be inlined. It is also necessary to check if the frame context information was provided before the DW_OP_call_frame_cfa operation is executed. gdb/ChangeLog: * dwarf2/expr.c (dwarf_expr_context::get_frame_cfa): Remove method. (dwarf_expr_context::execute_stack_op): Call frame context info check for DW_OP_call_frame_cfa. Remove use of get_frame_cfa. * dwarf2/expr.h (dwarf_expr_context::get_frame_cfa): Remove method. * dwarf2/frame.c (dwarf_expr_context::get_frame_cfa): Remove method. * dwarf2/loc.c (dwarf_expr_context::get_frame_cfa): Remove method.
Diffstat (limited to 'gdb/dwarf2/expr.h')
-rw-r--r--gdb/dwarf2/expr.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/dwarf2/expr.h b/gdb/dwarf2/expr.h
index b227690..f1c931e 100644
--- a/gdb/dwarf2/expr.h
+++ b/gdb/dwarf2/expr.h
@@ -192,9 +192,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) = 0;
- /* Return the CFA for the frame. */
- virtual CORE_ADDR get_frame_cfa () = 0;
-
/* Return the PC for the frame. */
virtual CORE_ADDR get_frame_pc ()
{