aboutsummaryrefslogtreecommitdiff
path: root/gdb/pa64solib.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-08-09 20:09:01 +0000
committerMichael Snyder <msnyder@vmware.com>2000-08-09 20:09:01 +0000
commit35fc82857eb04d27f93d32977bea3560d08a0230 (patch)
tree0ce3982e5f8551a2e30d36ba855128a160a4c9d6 /gdb/pa64solib.c
parent5425ca992e100d8ec52e52d6c115b18966d48b76 (diff)
downloadgdb-35fc82857eb04d27f93d32977bea3560d08a0230.zip
gdb-35fc82857eb04d27f93d32977bea3560d08a0230.tar.gz
gdb-35fc82857eb04d27f93d32977bea3560d08a0230.tar.bz2
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/pa64solib.c')
-rw-r--r--gdb/pa64solib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/pa64solib.c b/gdb/pa64solib.c
index 7a78136..459302a 100644
--- a/gdb/pa64solib.c
+++ b/gdb/pa64solib.c
@@ -1019,8 +1019,9 @@ read_dynamic_info (asection *dyninfo_sect, dld_cache_t *dld_cache_p)
Elf64_Dyn *x_dynp = (Elf64_Dyn*)buf;
Elf64_Sxword dyn_tag;
CORE_ADDR dyn_ptr;
- char pbuf[TARGET_PTR_BIT / HOST_CHAR_BIT];
+ char *pbuf;
+ pbuf = alloca (TARGET_PTR_BIT / HOST_CHAR_BIT);
dyn_tag = bfd_h_get_64 (symfile_objfile->obfd,
(bfd_byte*) &x_dynp->d_tag);