aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-02-06 20:05:42 +0000
committerMichael Snyder <msnyder@vmware.com>2001-02-06 20:05:42 +0000
commite6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b (patch)
tree876e170f720eb924e4121a1fcdb47d7d9e8ae2df /gdb/remote.c
parent713f0374c042c67cfed6110a7ce2dd852ad49500 (diff)
downloadgdb-e6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b.zip
gdb-e6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b.tar.gz
gdb-e6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b.tar.bz2
2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 2a00036..b79634d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2604,7 +2604,7 @@ remote_wait (int pid, struct target_waitstatus *status)
{
int i;
long regno;
- char regs[MAX_REGISTER_RAW_SIZE];
+ char* regs = (char*) alloca (MAX_REGISTER_RAW_SIZE);
/* Expedited reply, containing Signal, {regno, reg} repeat */
/* format is: 'Tssn...:r...;n...:r...;n...:r...;#cc', where
@@ -2825,7 +2825,7 @@ remote_async_wait (int pid, struct target_waitstatus *status)
{
int i;
long regno;
- char regs[MAX_REGISTER_RAW_SIZE];
+ char* regs = (char*) alloca (MAX_REGISTER_RAW_SIZE);
/* Expedited reply, containing Signal, {regno, reg} repeat */
/* format is: 'Tssn...:r...;n...:r...;n...:r...;#cc', where