From e6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 6 Feb 2001 20:05:42 +0000 Subject: 2001-02-06 Michael Snyder Submitted by Paul Hilfinger (hilfingr@gnat.com) and Andrei Petrov (and@genesyslab.com). * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES must be allocated dynamically, since these are no longer constants. * infcmd.c: Ditto. * regcache.c: Ditto. * remote.c: Ditto. * sol-thread.c: Ditto. * valops.c: Ditto. * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a work-around for a missing Sun header file in solaris for sparc64. --- gdb/infcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 6f43eba..6eb3d83 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1467,8 +1467,8 @@ do_registers_info (int regnum, int fpregs) for (i = 0; i < numregs; i++) { - char raw_buffer[MAX_REGISTER_RAW_SIZE]; - char virtual_buffer[MAX_REGISTER_VIRTUAL_SIZE]; + 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) -- cgit v1.1