This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: gdb/testsuite/gdb.code/*.exp


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
> Linus.
> 
> 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 :-)

	Andrew

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