This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/cli] s/NO_FUNCTION/NULL/
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Fernando Nasser <fnasser at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Mon, 21 Jan 2002 11:50:10 +0200 (IST)
- Subject: Re: [rfa/cli] s/NO_FUNCTION/NULL/
On Sun, 20 Jan 2002, Andrew Cagney wrote:
> Do you have any problems with the below?
>
> Andrew
>
> > Hello,
> >
> > The attached replaces the NO_FUNCTION macro with NULL. If you
> > examine the code, function.cfunc() is only sometimes assigned the
> > value NO_FUNCTION and no code actually tests for a value of
> > NO_FUNCTION. Consequently, I can't see any point in having this
> > macro.
IMHO, someone should test this change with the latest versions of GCC,
including their development line: they could have their own ideas when
you are allowed to pass NULL, especially with all the warning options
we use.