This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: PATCH: GNU C extention in uw-thread.c
- To: Robert Lipe <robertl at sco dot com>
- Subject: Re: PATCH: GNU C extention in uw-thread.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 14 Feb 2000 22:21:51 +1100
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <20000123153115.A7072@rjlhome.sco.com>
Robert Lipe wrote:
>
> CALL_BASE uses __FUNCTION__ which is a GNU C extension.
>
> This might not be the best way to deal with this, but it allows compilation
> on non-GNU compilers.
FYI, an equivalent patch was applied by Nick Duff.
thanks,
Andrew
>
> RJL
>
> Index: uw-thread.c
> ===================================================================
> RCS file: /cvs/gdb/gdb/gdb/uw-thread.c,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 uw-thread.c
> --- uw-thread.c 2000/01/18 00:54:24 1.1.1.1
> +++ uw-thread.c 2000/01/23 21:31:57
> @@ -152,6 +152,10 @@ do { \
> *
> * Otherwise, issue an error message and return nonlocally.
> */
> +#if !defined (__FUNCTION__)
> +# define __FUNCTION__
> +#endif
> +
> #define CALL_BASE(call) \
> do { \
> if (!lwp_infpid ()) \