summaryrefslogtreecommitdiff
path: root/gdb/m68k-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-08-09 20:09:01 +0000
committerMichael Snyder <msnyder@specifix.com>2000-08-09 20:09:01 +0000
commit92501f2dc7e2973ba13aadad32ddf65bfe836448 (patch)
treeaea4d1f3ebda08929a3545891490c8fe3729a249 /gdb/m68k-tdep.c
parent3a6850249812746f7ccbfe13b996762c1294df8d (diff)
downloadgdb-92501f2dc7e2973ba13aadad32ddf65bfe836448.tar.gz
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/m68k-tdep.c')
-rw-r--r--gdb/m68k-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index c15a1e8a679..8093f8c0215 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -646,9 +646,10 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
int
get_longjmp_target (CORE_ADDR *pc)
{
- char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
+ char *buf;
CORE_ADDR sp, jb_addr;
+ buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT);
sp = read_register (SP_REGNUM);
if (target_read_memory (sp + SP_ARG0, /* Offset of first arg on stack */