Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: William Bader <william@nscs.fast.net>
To: ac131313@ges.redhat.com, gdb-patches@sources.redhat.com,
	 william@nscs.fast.net
Subject: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
Date: Fri, 16 Aug 2002 14:50:00 -0000	[thread overview]
Message-ID: <200208161749.aa10539@mip486.nscs.fast.net> (raw)

> 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);



             reply	other threads:[~2002-08-16 21:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-16 14:50 William Bader [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200208161749.aa10539@mip486.nscs.fast.net \
    --to=william@nscs.fast.net \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox