* frame.c (find_saved_register): Find saved registers in the next

not prev frame.
Fix PR gdb/365.
This commit is contained in:
Andrew Cagney 2002-04-17 21:55:12 +00:00
parent 26eadf6826
commit 8b0d4340d7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-17 Andrew Cagney <ac131313@redhat.com>
* frame.c (find_saved_register): Find saved registers in the next
not prev frame.
Fix PR gdb/365.
2002-04-17 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (LANG): Set to ``c''.

View File

@ -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);