diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-08-09 20:09:01 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-08-09 20:09:01 +0000 |
commit | 35fc82857eb04d27f93d32977bea3560d08a0230 (patch) | |
tree | 0ce3982e5f8551a2e30d36ba855128a160a4c9d6 /gdb/jv-valprint.c | |
parent | * am33.igen: Warning clean-up. (diff) | |
download | binutils-gdb-35fc82857eb04d27f93d32977bea3560d08a0230.tar.gz binutils-gdb-35fc82857eb04d27f93d32977bea3560d08a0230.tar.bz2 binutils-gdb-35fc82857eb04d27f93d32977bea3560d08a0230.zip |
2000-08-09 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c (sigtramp_saved_pc): Use dynamic allocation,
since TARGET_PTR_BIT is no longer a constant (MULTI_ARCH).
* irix4-nat.c (get_longjmp_target): Ditto.
* irix5-nat.c (get_longjmp_target): Ditto.
* jv-valprint.c (java_value_print): Ditto.
* m3-nat.c (get_cprocs): Ditto.
* m68k-tdep.c (get_longjmp_target): Ditto.
* mips-nat.c (get_longjmp_target): Ditto.
* mipsv4-nat.c(get_longjmp_target): Ditto.
* pa64solib.c (read_dynamic_info): Ditto.
* solib.c (elf_locate_base): Ditto.
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r-- | gdb/jv-valprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index 6fd1691b2e7..f0614fa4523 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -96,8 +96,9 @@ java_value_print (value_ptr val, struct ui_file *stream, int format, while (i < length && things_printed < print_max) { - char buf[TARGET_PTR_BIT / HOST_CHAR_BIT]; + char *buf; + buf = alloca (TARGET_PTR_BIT / HOST_CHAR_BIT); fputs_filtered (", ", stream); wrap_here (n_spaces (2)); |