This is the mail archive of the
mailing list for the GDB project.
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: gdb/testsuite/gdb.code/*.exp
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 24 Dec 1999 10:21:22 +1100
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <199912232312.PAA02191@makita.cygnus.com>
Michael Elizabeth Chastain wrote:
> I did something like that in the Linux kernel.
> I wrote a small perl script invoked by "make checkconfig". The script
> looks for source files that test CONFIG_* variables without #including
> "<linux/config.h>" first. (Due to the vagaries of the C standard,
> this usage silently does an unexpected thing).
I've an awk script here. What's perl ;-)
> Every so often, somebody runs "make checkconfig" and sends results to
> I think the basic idea, running some kind of script to issue more warnings,
> is good. The script has to be conservative, though: if it flags false
> positives, it quickly either becomes worthless or people come to avoid
> anything that upsets the script.
Yes. Since I'm suggesting making it part of the testsuite it would need
to be extreemly conservative :-)