diff options
author | Joel Brobecker <brobecker@adacore.com> | 2013-11-16 07:33:36 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2013-11-17 06:59:37 +0400 |
commit | b13704181fe2e5d89f95342d9a173df8b9a1a34c (patch) | |
tree | 96130579c0f9a523807f4828118d1411ce228f83 /gdb/dwarf2loc.c | |
parent | 2acaf6f952bde5cb54ba172f0ca91bd27eeb6b6c (diff) | |
download | gdb-b13704181fe2e5d89f95342d9a173df8b9a1a34c.zip gdb-b13704181fe2e5d89f95342d9a173df8b9a1a34c.tar.gz gdb-b13704181fe2e5d89f95342d9a173df8b9a1a34c.tar.bz2 |
Rename "read_reg" into "read_addr_from_reg" in struct dwarf_expr_context_funcs
This is to help make it slightly clearer how this method is expected
to extract data from the given register.
gdb/ChangeLog:
* dwarf2expr.h (struct dwarf_expr_context_funcs)
<read_addr_from_reg>: Renames "read_reg".
* dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
Adjust comment.
(dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
Use read_addr_from_reg in place of read_reg.
* dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
in place of read_reg.
* dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
dwarf_expr_read_reg.
(dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
with dwarf_expr_read_addr_from_reg.
(needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
(needs_frame_ctx_funcs): Replace needs_frame_read_reg with
needs_frame_read_addr_from_reg.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 2879ead..1664f6a 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -313,7 +313,7 @@ struct dwarf_expr_baton /* Using the frame specified in BATON, return the value of register REGNUM, treated as a pointer. */ static CORE_ADDR -dwarf_expr_read_reg (void *baton, int dwarf_regnum) +dwarf_expr_read_addr_from_reg (void *baton, int dwarf_regnum) { struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton; struct gdbarch *gdbarch = get_frame_arch (debaton->frame); @@ -2194,7 +2194,7 @@ static const struct lval_funcs pieced_value_funcs = { static const struct dwarf_expr_context_funcs dwarf_expr_ctx_funcs = { - dwarf_expr_read_reg, + dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value, dwarf_expr_read_mem, dwarf_expr_frame_base, @@ -2441,7 +2441,7 @@ struct needs_frame_baton /* Reads from registers do require a frame. */ static CORE_ADDR -needs_frame_read_reg (void *baton, int regnum) +needs_frame_read_addr_from_reg (void *baton, int regnum) { struct needs_frame_baton *nf_baton = baton; @@ -2541,7 +2541,7 @@ needs_get_addr_index (void *baton, unsigned int index) static const struct dwarf_expr_context_funcs needs_frame_ctx_funcs = { - needs_frame_read_reg, + needs_frame_read_addr_from_reg, needs_frame_get_reg_value, needs_frame_read_mem, needs_frame_frame_base, |