diff options
author | Michael Snyder <msnyder@specifix.com> | 2001-02-06 20:05:42 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2001-02-06 20:05:42 +0000 |
commit | 5c35eb20cd8b90b864336d8049fe266f3fbee94a (patch) | |
tree | f7130f8bbc0bcab4dbbf47d1fbd7b593004a5e24 /gdb/regcache.c | |
parent | e6a834665f908e23c7ee1dc9552ee4a353b63291 (diff) | |
download | gdb-5c35eb20cd8b90b864336d8049fe266f3fbee94a.tar.gz |
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 6e5a2c19580..db963f769dc 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); |