From ba2c6aec01a024592f7dce65f0628a93e39f4abe Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 15 Jul 2008 18:52:17 +0000 Subject: [PATCH] * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. --- gdb/ChangeLog | 4 ++++ gdb/mn10300-tdep.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 16028417134..21ae33586ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-07-15 Daniel Jacobowitz + + * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. + 2008-07-15 Daniel Jacobowitz * frame.c (frame_sp_unwind): Delete. diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 37d0b84b645..88cb150b735 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -324,11 +324,11 @@ set_reg_offsets (struct frame_info *fi, if (frame_in_fp) { - base = frame_unwind_register_unsigned (fi, E_A3_REGNUM); + base = get_frame_register_unsigned (fi, E_A3_REGNUM); } else { - base = frame_unwind_register_unsigned (fi, E_SP_REGNUM) + base = get_frame_register_unsigned (fi, E_SP_REGNUM) + stack_extra_size; }