* frame.c (find_saved_register): Find saved registers in the next
authorAndrew Cagney <cagney@redhat.com>
Wed, 17 Apr 2002 21:55:12 +0000 (21:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 17 Apr 2002 21:55:12 +0000 (21:55 +0000)
not prev frame.
Fix PR gdb/365.

gdb/ChangeLog
gdb/frame.c

index 199749ded445f640314cbcc2114ef6fefccba979..36b16b6d42b8515beef69f794e00aced4fb4c549 100644 (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''.
index 5886ab5ffb83542de605261eb786239d7e1ef3b6..7923660e1ab03848bc8e3138e326fa324f0be71a 100644 (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);