Issue an internal warning on first deprecated function call

Tom Tromey tromey@redhat.com
Wed Aug 21 10:09:00 GMT 2002


>>>>> "Andrew" == Andrew Cagney <ac131313@ges.redhat.com> writes:

Andrew> The idea is to issue an internal-warning on the first call to a
Andrew> deprecated [multi-arch] function.

Andrew> Thoughts?  Variations on the idea?

What about marking functions as deprecated at compile time using
__attribute__?  Then the burden falls on the maintainers not to call
deprecated functions.  (I'm not certain that
__attribute__((deprecated)) works if you are calling through a
function pointer.)

Tom



More information about the Gdb mailing list