PDA

View Full Version : my simple vallgrind front-end



napsy
April 12th, 2009, 06:15 PM
Hello.

I've written a very small gtk+ front-end for valgrind XML output using python.

- supports multiple threads
- colored tree
- can open backtrace source in integrate vim

Here's an example session:

http://img136.imageshack.us/img136/7932/screenshot1jts.th.png (http://img136.imageshack.us/my.php?image=screenshot1jts.png)

You can get the script source here (http://napotnik.info/valhalla.py).

Note that this is version 0.0.2 and some output messages are not yet supported.

v.cecchetto
May 14th, 2009, 12:05 PM
Hello,
thanks for your work.

I'm trying to use your tool without success for now.

I compiled a simple test.c code.

..................................................
#include <stdio.h>

int main(int argc , char *argv[])

{
printf("OK! \n");
return 0;
}
..................................................

gcc test.c -o test

I execute this command to produce valgrind xml output:

valgrind --xml=yes test 2> test.xml

is it correct? When i open test.xml i see all the usual valgrind output in xml format.

Then i execute your tool and select this file (test.xml) but nothing appens.

Some suggestions?

Zugzwang
May 14th, 2009, 01:06 PM
I execute this command to produce valgrind xml output:

valgrind --xml=yes test 2> test.xml

is it correct?

Not quite. You have to reference the executable correctly:


valgrind --xml=yes ./test 2> test.xml


If it still does not work, try looking at the output in the xml-file with "cat":


cat test.xml

It might contain errors that the GUI cannot handle.

v.cecchetto
May 15th, 2009, 10:40 AM
Thx for the reply,

but same results as before. Nothing appens.

Doh...

Zugzwang
May 15th, 2009, 10:43 AM
but same results as before. Nothing appens.


So what's in the XML file?