dereference and actually walk the frame list.
+2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * frame.c (find_saved_register): Avoid a NULL pointer
+ dereference and actually walk the frame list.
+
2002-04-20 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (gdbarch_update_p): Keep the list of architectures
while (1)
{
QUIT;
- frame1 = get_next_frame (frame1);
- if (frame1 == 0 || frame1 == frame)
+ frame1 = get_next_frame (frame);
+ if (frame1 == 0)
break;
+ frame = frame1;
FRAME_INIT_SAVED_REGS (frame1);
if (frame1->saved_regs[regnum])
addr = frame1->saved_regs[regnum];