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/valops.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/valops.c')
-rw-r--r-- | gdb/valops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 9a90e3d..ce15c20 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -570,7 +570,7 @@ value_assign (register value_ptr toval, register value_ptr fromval) { register struct type *type; register value_ptr val; - char raw_buffer[MAX_REGISTER_RAW_SIZE]; + char *raw_buffer = (char*) alloca (MAX_REGISTER_RAW_SIZE); int use_buffer = 0; if (!toval->modifiable) @@ -1027,7 +1027,7 @@ CORE_ADDR push_word (CORE_ADDR sp, ULONGEST word) { register int len = REGISTER_SIZE; - char buffer[MAX_REGISTER_RAW_SIZE]; + char *buffer = alloca (MAX_REGISTER_RAW_SIZE); store_unsigned_integer (buffer, len, word); if (INNER_THAN (1, 2)) @@ -1665,7 +1665,7 @@ You must use a pointer to function type variable. Command ignored.", arg_name); SAVE_DUMMY_FRAME_TOS (sp); { - char retbuf[REGISTER_BYTES]; + char *retbuf = (char*) alloca (REGISTER_BYTES); char *name; struct symbol *symbol; |