mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
* frame.c (find_saved_register): Break out of loop once saved
register address is found. Don't mention sparc in loop comment anymore.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-08-06 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* frame.c (find_saved_register): Break out of loop once saved
|
||||||
|
register address is found. Don't mention sparc in loop comment
|
||||||
|
anymore.
|
||||||
|
|
||||||
2002-08-06 Kevin Buettner <kevinb@redhat.com>
|
2002-08-06 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
|
* mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
|
||||||
|
12
gdb/frame.c
12
gdb/frame.c
@ -94,10 +94,9 @@ find_saved_register (struct frame_info *frame, int regnum)
|
|||||||
if (frame == NULL) /* No regs saved if want current frame */
|
if (frame == NULL) /* No regs saved if want current frame */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Note that this next routine assumes that registers used in
|
/* Note that the following loop assumes that registers used in
|
||||||
frame x will be saved only in the frame that x calls and
|
frame x will be saved only in the frame that x calls and frames
|
||||||
frames interior to it. This is not true on the sparc, but the
|
interior to it. */
|
||||||
above macro takes care of it, so we should be all right. */
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
QUIT;
|
QUIT;
|
||||||
@ -107,7 +106,10 @@ find_saved_register (struct frame_info *frame, int regnum)
|
|||||||
frame = frame1;
|
frame = frame1;
|
||||||
FRAME_INIT_SAVED_REGS (frame1);
|
FRAME_INIT_SAVED_REGS (frame1);
|
||||||
if (frame1->saved_regs[regnum])
|
if (frame1->saved_regs[regnum])
|
||||||
addr = frame1->saved_regs[regnum];
|
{
|
||||||
|
addr = frame1->saved_regs[regnum];
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return addr;
|
return addr;
|
||||||
|
Reference in New Issue
Block a user