2008-09-22 Andrew Stubbs <ams@codesourcery.com>
* frame.c (get_frame_register_bytes): Comment improvments.
This commit is contained in:
parent
1ad15515cd
commit
26fae1d6e3
|
@ -1,3 +1,7 @@
|
|||
2008-09-22 Andrew Stubbs <ams@codesourcery.com>
|
||||
|
||||
* frame.c (get_frame_register_bytes): Comment improvments.
|
||||
|
||||
2008-09-22 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
|
||||
|
|
|
@ -806,13 +806,14 @@ get_frame_register_bytes (struct frame_info *frame, int regnum,
|
|||
regnum++;
|
||||
}
|
||||
|
||||
/* Detect bad debug info. */
|
||||
/* Ensure that we will not read beyond the end of the register file.
|
||||
This can only ever happen if the debug information is bad. */
|
||||
maxsize = -offset;
|
||||
for (i = regnum; i < gdbarch_num_regs (gdbarch); i++)
|
||||
{
|
||||
int thissize = register_size (gdbarch, i);
|
||||
if (thissize == 0)
|
||||
break;
|
||||
break; /* This register is not available on this architecture. */
|
||||
maxsize += thissize;
|
||||
}
|
||||
if (len > maxsize)
|
||||
|
|
Loading…
Reference in New Issue