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


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


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