Rename "read_reg" into "read_addr_from_reg" in struct dwarf_expr_context_funcs
authorJoel Brobecker <brobecker@adacore.com>
Sat, 16 Nov 2013 03:33:36 +0000 (07:33 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 17 Nov 2013 02:59:37 +0000 (06:59 +0400)
commitb13704181fe2e5d89f95342d9a173df8b9a1a34c
tree96130579c0f9a523807f4828118d1411ce228f83
parent2acaf6f952bde5cb54ba172f0ca91bd27eeb6b6c
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.
gdb/ChangeLog
gdb/dwarf2-frame.c
gdb/dwarf2expr.c
gdb/dwarf2expr.h
gdb/dwarf2loc.c