summaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-01-08 02:09:31 +0000
committerMichael Snyder <msnyder@specifix.com>2002-01-08 02:09:31 +0000
commit392ec364e2b7741c8bcb844edfe3331dbd944d78 (patch)
tree4e40d45bd497d0cd7e5ae42d52c2c99363e591be /gdb/p-valprint.c
parentebb86bf37348f4561586a9bcc2eb8184f801d230 (diff)
downloadgdb-392ec364e2b7741c8bcb844edfe3331dbd944d78.tar.gz
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/p-valprint.c')
-rw-r--r--gdb/p-valprint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 08a862eb2ca..0b89c727e88 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -970,6 +970,7 @@ pascal_object_print_value (struct type *type, char *valaddr, CORE_ADDR address,
if (boffset != -1 && (boffset < 0 || boffset >= TYPE_LENGTH (type)))
{
+ /* FIXME (alloc): not safe is baseclass is really really big. */
base_valaddr = (char *) alloca (TYPE_LENGTH (baseclass));
if (target_read_memory (address + boffset, base_valaddr,
TYPE_LENGTH (baseclass)) != 0)