aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/expr.h
diff options
context:
space:
mode:
authorZoran Zaric <zoran.zaric@amd.com>2020-09-15 11:37:19 +0100
committerZoran Zaric <zoran.zaric@amd.com>2021-08-05 16:39:59 +0100
commit3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708 (patch)
tree84e78430ae81223e1b923ed4b7aab54cb0f90b6a /gdb/dwarf2/expr.h
parent73e6b863308a026a5c87dc73ab2417ee39027d4c (diff)
downloadgdb-3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708.zip
gdb-3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708.tar.gz
gdb-3c7c57cdc06412d9c81dcc2d89ff2ab4e4704708.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2/expr.h')
-rw-r--r--gdb/dwarf2/expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/expr.h b/gdb/dwarf2/expr.h
index d10bf9c..3a085fd 100644
--- a/gdb/dwarf2/expr.h
+++ b/gdb/dwarf2/expr.h
@@ -192,7 +192,7 @@ struct dwarf_expr_context
CORE_ADDR obj_address = 0;
/* Read LENGTH bytes at ADDR into BUF. */
- virtual void read_mem (gdb_byte *buf, CORE_ADDR addr, size_t length) = 0;
+ 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.