diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:46:09 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:46:09 +0000 |
commit | ad010def8947cff19c8fbc2678fbf8b2dc6935e9 (patch) | |
tree | 805406eeb5028c0014949da60f1e8c75b316e14e /gdb/dwarf2loc.c | |
parent | 214e098a2a3bf57e25b443e2972a65a7e151b0ed (diff) | |
download | gdb-ad010def8947cff19c8fbc2678fbf8b2dc6935e9.zip gdb-ad010def8947cff19c8fbc2678fbf8b2dc6935e9.tar.gz gdb-ad010def8947cff19c8fbc2678fbf8b2dc6935e9.tar.bz2 |
2007-10-08 Markus Deuling <deuling@de.ibm.com>
* dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
(dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
current_gdbarch by gdbarch.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 76d7f6e..e9d1709 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -230,7 +230,7 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame, { bfd_byte regval[MAX_REGISTER_SIZE]; int gdb_regnum = gdbarch_dwarf2_reg_to_regnum - (current_gdbarch, p->value); + (arch, p->value); get_frame_register (frame, gdb_regnum, regval); memcpy (contents + offset, regval, p->size); } @@ -245,7 +245,7 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame, { CORE_ADDR dwarf_regnum = dwarf_expr_fetch (ctx, 0); int gdb_regnum = gdbarch_dwarf2_reg_to_regnum - (current_gdbarch, dwarf_regnum); + (arch, dwarf_regnum); retval = value_from_register (SYMBOL_TYPE (var), gdb_regnum, frame); } else |