forked from Imagelibrary/binutils-gdb
* frame.c (find_saved_register): Avoid a NULL pointer
dereference and actually walk the frame list.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
@@ -83,9 +83,10 @@ find_saved_register (struct frame_info *frame, int regnum)
|
||||
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];
|
||||
|
||||
Reference in New Issue
Block a user