From 11411de309ed70574799872f9b3bec1b18bb66cf Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 17 Oct 2007 13:36:45 +0000 Subject: * frame.c (frame_unwind_unsigned_register): Delete. (frame_sp_unwind): Use frame_unwind_register_unsigned instead. * frame.h (frame_unwind_unsigned_register): Delete prototype. * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c, mt-tdep.c: Replace frame_unwind_unsigned_register with frame_unwind_register_unsigned. * gdbint.texinfo (Target Conditionals): Use frame_unwind_register_unsigned in examples instead of frame_unwind_unsigned_register. --- gdb/m68hc11-tdep.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gdb/m68hc11-tdep.c') diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index bd64a43c488..68ec49ae056 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -763,8 +763,7 @@ m68hc11_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame) { ULONGEST pc; - frame_unwind_unsigned_register (next_frame, gdbarch_pc_regnum (gdbarch), - &pc); + pc = frame_unwind_register_unsigned (next_frame, gdbarch_pc_regnum (gdbarch)); return pc; } @@ -799,7 +798,7 @@ m68hc11_frame_unwind_cache (struct frame_info *next_frame, /* The SP was moved to the FP. This indicates that a new frame was created. Get THIS frame's FP value by unwinding it from the next frame. */ - frame_unwind_unsigned_register (next_frame, SOFT_FP_REGNUM, &this_base); + this_base = frame_unwind_register_unsigned (next_frame, SOFT_FP_REGNUM); if (this_base == 0) { info->base = 0; @@ -815,7 +814,7 @@ m68hc11_frame_unwind_cache (struct frame_info *next_frame, if (info->sp_offset != (CORE_ADDR) -1) { info->saved_regs[HARD_PC_REGNUM].addr = info->sp_offset; - frame_unwind_unsigned_register (next_frame, HARD_SP_REGNUM, &this_base); + this_base = frame_unwind_register_unsigned (next_frame, HARD_SP_REGNUM); prev_sp = this_base + info->sp_offset + 2; this_base += STACK_CORRECTION; } @@ -980,7 +979,7 @@ static CORE_ADDR m68hc11_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame) { ULONGEST sp; - frame_unwind_unsigned_register (next_frame, HARD_SP_REGNUM, &sp); + sp = frame_unwind_register_unsigned (next_frame, HARD_SP_REGNUM); return sp; } @@ -995,7 +994,7 @@ m68hc11_unwind_dummy_id (struct gdbarch *gdbarch, struct frame_info *next_frame) ULONGEST tos; CORE_ADDR pc = frame_pc_unwind (next_frame); - frame_unwind_unsigned_register (next_frame, SOFT_FP_REGNUM, &tos); + tos = frame_unwind_register_unsigned (next_frame, SOFT_FP_REGNUM); tos += 2; return frame_id_build (tos, pc); } -- cgit v1.2.1