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/mips-nat.c | |
parent | 5425ca992e100d8ec52e52d6c115b18966d48b76 (diff) | |
download | gdb-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/mips-nat.c')
-rw-r--r-- | gdb/mips-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index b9d20b7..cf8a31a 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -137,8 +137,9 @@ int get_longjmp_target (CORE_ADDR *pc) { CORE_ADDR jb_addr; - char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; + char *buf; + buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT); jb_addr = read_register (A0_REGNUM); if (target_read_memory (jb_addr + JB_PC * JB_ELEMENT_SIZE, buf, |