This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5


I've just committed the change below to the 5.2 branch (just in case
it becomes necessary to release a 5.2.2 version of GDB).

Thanks, William!

Kevin

2002-08-16  William Bader  <william@nscs.fast.net>

	* i386-tdep.c (get_longjmp_target): Dynamically allocate ``buf''.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.52
diff -u -p -r1.52 i386-tdep.c
--- i386-tdep.c	19 Feb 2002 18:42:27 -0000	1.52
+++ i386-tdep.c	16 Aug 2002 23:53:07 -0000
@@ -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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]