2001-05-16 Michael Snyder <msnyder@redhat.com>
* infcmd.c (do_registers_info): Move alloca outside of loop.
This commit is contained in:
parent
31b6fca668
commit
b8adfa9f55
@ -1,3 +1,7 @@
|
|||||||
|
2001-05-16 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
|
* infcmd.c (do_registers_info): Move alloca outside of loop.
|
||||||
|
|
||||||
2001-05-15 Mark Kettenis <kettenis@gnu.org>
|
2001-05-15 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
|
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
|
||||||
|
@ -1467,12 +1467,11 @@ do_registers_info (int regnum, int fpregs)
|
|||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
int numregs = NUM_REGS + NUM_PSEUDO_REGS;
|
int numregs = NUM_REGS + NUM_PSEUDO_REGS;
|
||||||
|
|
||||||
for (i = 0; i < numregs; i++)
|
|
||||||
{
|
|
||||||
char *raw_buffer = (char*) alloca (MAX_REGISTER_RAW_SIZE);
|
char *raw_buffer = (char*) alloca (MAX_REGISTER_RAW_SIZE);
|
||||||
char *virtual_buffer = (char*) alloca (MAX_REGISTER_VIRTUAL_SIZE);
|
char *virtual_buffer = (char*) alloca (MAX_REGISTER_VIRTUAL_SIZE);
|
||||||
|
|
||||||
|
for (i = 0; i < numregs; i++)
|
||||||
|
{
|
||||||
/* Decide between printing all regs, nonfloat regs, or specific reg. */
|
/* Decide between printing all regs, nonfloat regs, or specific reg. */
|
||||||
if (regnum == -1)
|
if (regnum == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user