summaryrefslogtreecommitdiff
path: root/gdb/sol-thread.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2001-02-06 20:05:42 +0000
committerMichael Snyder <msnyder@specifix.com>2001-02-06 20:05:42 +0000
commit5c35eb20cd8b90b864336d8049fe266f3fbee94a (patch)
treef7130f8bbc0bcab4dbbf47d1fbd7b593004a5e24 /gdb/sol-thread.c
parente6a834665f908e23c7ee1dc9552ee4a353b63291 (diff)
downloadgdb-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/sol-thread.c')
-rw-r--r--gdb/sol-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index d4325a071f4..f7727b483d8 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -685,7 +685,7 @@ sol_thread_store_registers (int regno)
if (regno != -1)
{ /* Not writing all the regs */
/* save new register value */
- char old_value[REGISTER_SIZE];
+ char* old_value = (char*) alloca (REGISTER_SIZE);
memcpy (old_value, &registers[REGISTER_BYTE (regno)], REGISTER_SIZE);
val = p_td_thr_getgregs (&thandle, gregset);