]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386-tdep.c (get_longjmp_target): Dynamically allocate ``buf''.
authorKevin Buettner <kevinb@redhat.com>
Fri, 16 Aug 2002 23:54:19 +0000 (23:54 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 16 Aug 2002 23:54:19 +0000 (23:54 +0000)
gdb/i386-tdep.c

index b2ddd280675c38e8af94c5b2ee6654cb87995c60..b8265049f3c86a5bc70d127149ef50a8c2d0f949 100644 (file)
@@ -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);