aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-01-08 02:09:31 +0000
committerMichael Snyder <msnyder@vmware.com>2002-01-08 02:09:31 +0000
commit34c0bd933de019af43d6c8fe0bb7bdf87442eaa9 (patch)
tree5dcae8fc9fb820641aa4316a71c8661fa53cfc25 /gdb/valops.c
parentd33fc4e447bc1a277ab1e49b7a7d39e07f01f33e (diff)
downloadgdb-34c0bd933de019af43d6c8fe0bb7bdf87442eaa9.zip
gdb-34c0bd933de019af43d6c8fe0bb7bdf87442eaa9.tar.gz
gdb-34c0bd933de019af43d6c8fe0bb7bdf87442eaa9.tar.bz2
2002-01-07 Michael Snyder <msnyder@redhat.com>
* cp-valprint.c (cp_print_value): FIXME comment, alloca size. * p-valprint.c (pascal_object_print_value): Ditto. * somread.c (som_symtab_read): Ditto. * symfile.c (simple_free_overlay_region_table): Ditto. * valops.c (value_assign): Ditto.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index cb30222..f211753 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -697,6 +697,7 @@ value_assign (struct value *toval, struct value *fromval)
int amount_copied;
/* Make the buffer large enough in all cases. */
+ /* FIXME (alloca): Not safe for very large data types. */
char *buffer = (char *) alloca (amount_to_copy
+ sizeof (LONGEST)
+ MAX_REGISTER_RAW_SIZE);