This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
- From: Kevin Buettner <kevinb at redhat dot com>
- To: William Bader <william at nscs dot fast dot net>, ac131313 at ges dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Fri, 16 Aug 2002 15:08:13 -0700
- Subject: Re: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
- References: <200208161749.aa10539@mip486.nscs.fast.net>
On Aug 16, 5:49pm, William Bader wrote:
> +#if GDB_MULTI_ARCH
> + /* TARGET_PTR_BIT evaluates to a function call */
> + char *buf = alloca(TARGET_PTR_BIT / TARGET_CHAR_BIT);
I think that all you need is this line (but put a space between ``alloca''
and the left paren).
> +#else
> char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
> +#endif
I.e, you can get rid of the preprocessor statements and the old
declaration.
Kevin