mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-16 04:18:50 +00:00
2001-05-16 Michael Snyder <msnyder@redhat.com>
* infcmd.c (do_registers_info): Move alloca outside of loop.
This commit is contained in:
@@ -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>
|
||||
|
||||
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
|
||||
|
||||
@@ -1467,12 +1467,11 @@ do_registers_info (int regnum, int fpregs)
|
||||
{
|
||||
register int i;
|
||||
int numregs = NUM_REGS + NUM_PSEUDO_REGS;
|
||||
char *raw_buffer = (char*) alloca (MAX_REGISTER_RAW_SIZE);
|
||||
char *virtual_buffer = (char*) alloca (MAX_REGISTER_VIRTUAL_SIZE);
|
||||
|
||||
for (i = 0; i < numregs; i++)
|
||||
{
|
||||
char *raw_buffer = (char*) alloca (MAX_REGISTER_RAW_SIZE);
|
||||
char *virtual_buffer = (char*) alloca (MAX_REGISTER_VIRTUAL_SIZE);
|
||||
|
||||
/* Decide between printing all regs, nonfloat regs, or specific reg. */
|
||||
if (regnum == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user