diff options
-rw-r--r-- | gdb/i386-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b2ddd280675..b8265049f3c 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -858,7 +858,7 @@ i386_pop_frame (void) int get_longjmp_target (CORE_ADDR *pc) { - char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; + char *buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT); CORE_ADDR sp, jb_addr; sp = read_register (SP_REGNUM); |