Re: [gnome-love] Hi, which way ?



On Tue, Jan 28, 2003 at 11:56:58AM +0000, Bastien Nocera wrote:
On Tue, 2003-01-28 at 12:33, Telsa Gwynne wrote:
On Thu, Jan 23, 2003 at 10:45:52AM +0200 or thereabouts, Aschwin van der Woude wrote:
Hi Artiom,
If you are interested in doing some testing, you are more than welcome
to do so. Testing with tools like Valgrind will probably find some more
problems in the various parts of Gnome.

I have had several emails from Julian Seward which I constantly
fail to forward onto more knowledge people (sorry, Julian!) in
which he has said that he would love to hear about places where
Valgrind can be made better for GNOME. Any places where it
doesn't work nicely are not deliberate but just a consequence
of his being less familiar with GNOME. 

  Valgrind is a really cool tool. It also allows profiling.
The KDE guys made what looks nice front-end to valgrind reporting
capabilities.

Summarising what I remember of what he said, he was talking
about how he hoped it would be a good tool not only for "something
is broken, reach for debugging tool" (ie for valgrind) but also
for running routinely to find things that were broken anywhere
and working out what common errors were being made that could
be fixed all over the place.

I think :) 

Compiling software with -Wall can also be an easy way to fix bugs.
Missing prototypes, wrong type of arguments, missing return values, etc.

  I use 

   -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts 
-Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return 
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls

  in addition to -Wall and it has avoided quite a few bugs, or debugging
sessions, really...

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]