Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
@ 2002-08-16 14:50 William Bader
  2002-08-16 15:08 ` Kevin Buettner
  0 siblings, 1 reply; 5+ messages in thread
From: William Bader @ 2002-08-16 14:50 UTC (permalink / raw)
  To: ac131313, gdb-patches, william

> Just use alloca(), its use is accepted in cases like the above.  Would 
> you have a changeLog entry?
> Andrew

How is this:

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

	* gdb/i386-tdep.c: Dymanically allocate buf;
	TARGET_PTR_BIT is not a constant.

--- gdb-5.2/gdb/i386-tdep.c-	Tue Feb 19 13:42:27 2002
+++ gdb-5.2/gdb/i386-tdep.c	Fri Aug 16 17:37:19 2002
@@ -858,7 +858,12 @@
 int
 get_longjmp_target (CORE_ADDR *pc)
 {
+#if GDB_MULTI_ARCH
+  /* TARGET_PTR_BIT evaluates to a function call */
+  char *buf = alloca(TARGET_PTR_BIT / TARGET_CHAR_BIT);
+#else
   char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
+#endif
   CORE_ADDR sp, jb_addr;
 
   sp = read_register (SP_REGNUM);



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-17  0:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-16 14:50 ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5 William Bader
2002-08-16 15:08 ` Kevin Buettner
2002-08-16 15:19   ` william
2002-08-16 15:50     ` Kevin Buettner
2002-08-16 17:08     ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox