diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-02-06 20:05:42 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-02-06 20:05:42 +0000 |
commit | e6cbd02ac2c4dd07c92d152b10c03c7bb24aec2b (patch) | |
tree | 876e170f720eb924e4121a1fcdb47d7d9e8ae2df /gdb/regcache.c | |
parent | 713f0374c042c67cfed6110a7ce2dd852ad49500 (diff) | |
download | gdb-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/regcache.c')
-rw-r--r-- | gdb/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 6e5a2c1..db963f7 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -558,7 +558,7 @@ write_register_bytes (int myregstart, char *myaddr, int inlen) /* The register partially overlaps the range being written. */ else { - char regbuf[MAX_REGISTER_RAW_SIZE]; + char *regbuf = (char*) alloca (MAX_REGISTER_RAW_SIZE); /* What's the overlap between this register's bytes and those the caller wants to write? */ int overlapstart = max (regstart, myregstart); |