From 8b0d4340d71c3925a84935af4039767d0eee90c9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 17 Apr 2002 21:55:12 +0000 Subject: [PATCH] * frame.c (find_saved_register): Find saved registers in the next not prev frame. Fix PR gdb/365. --- gdb/ChangeLog | 6 ++++++ gdb/frame.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.30.2