diff options
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r-- | gdb/m68k-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index c15a1e8..8093f8c 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 */ |