From: Andrew Cagney Date: Wed, 17 Apr 2002 21:55:12 +0000 (+0000) Subject: * frame.c (find_saved_register): Find saved registers in the next X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b0d4340d71c3925a84935af4039767d0eee90c9;p=binutils-gdb.git * frame.c (find_saved_register): Find saved registers in the next not prev frame. Fix PR gdb/365. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 199749ded44..36b16b6d42b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-04-17 Andrew Cagney + + * frame.c (find_saved_register): Find saved registers in the next + not prev frame. + Fix PR gdb/365. + 2002-04-17 Andrew Cagney * gdbarch.sh (LANG): Set to ``c''. diff --git a/gdb/frame.c b/gdb/frame.c index 5886ab5ffb8..7923660e1ab 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -83,7 +83,7 @@ find_saved_register (struct frame_info *frame, int regnum) while (1) { QUIT; - frame1 = get_prev_frame (frame1); + frame1 = get_next_frame (frame1); if (frame1 == 0 || frame1 == frame) break; FRAME_INIT_SAVED_REGS (frame1);