News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Valgrind plugin

Started by killerbot, August 12, 2007, 08:57:04 PM

Previous topic - Next topic

Der Meister

There is a missing #include in Valgrind.cpp:

Index: src/plugins/contrib/Valgrind/Valgrind.cpp
===================================================================
--- src/plugins/contrib/Valgrind/Valgrind.cpp (revision 5126)
+++ src/plugins/contrib/Valgrind/Valgrind.cpp (working copy)
@@ -13,6 +13,7 @@
#include <wx/fs_zip.h>
#include <wx/intl.h>
#include <wx/string.h>
+#include <wx/menu.h>
#include <wx/xrc/xmlres.h>
#include "cbproject.h"
#include "manager.h"

Without this compilation failes with wxGTK 2.8.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

killerbot

Quote from: jens on July 14, 2008, 04:07:54 PM
Here it is.

It seems to be an error message of my executable (or better from linux), not from Valgrind.

and this shows the thing I was afraid of :-(, program output and valgrind xml get mixed

killerbot

Quote from: Der Meister on July 14, 2008, 06:14:33 PM
There is a missing #include in Valgrind.cpp:

Index: src/plugins/contrib/Valgrind/Valgrind.cpp
===================================================================
--- src/plugins/contrib/Valgrind/Valgrind.cpp (revision 5126)
+++ src/plugins/contrib/Valgrind/Valgrind.cpp (working copy)
@@ -13,6 +13,7 @@
#include <wx/fs_zip.h>
#include <wx/intl.h>
#include <wx/string.h>
+#include <wx/menu.h>
#include <wx/xrc/xmlres.h>
#include "cbproject.h"
#include "manager.h"

Without this compilation failes with wxGTK 2.8.

done : thanks !!

Jenna

Quote from: killerbot on July 15, 2008, 09:37:57 AM
Quote from: jens on July 14, 2008, 04:07:54 PM
Here it is.

It seems to be an error message of my executable (or better from linux), not from Valgrind.

and this shows the thing I was afraid of :-(, program output and valgrind xml get mixed

I can not test it at the moment, but it might be an error output using the error-stream.
In this case it should be possible to filter it.

elfunesto

Sorry,
Were can I download the plugin: it seems that it has been deleted by the administrator.
Thanks by advance. Cheers,
Hilaire

Jenna

Quote from: elfunesto on July 03, 2009, 02:29:52 PM
Sorry,
Were can I download the plugin: it seems that it has been deleted by the administrator.
Thanks by advance. Cheers,
Hilaire
The valgrind plugin is part of the contrib-plugins and therefore included in the sources and nightlies since svn r5113 (2008-07-09).

elfunesto

Thanks for your quick answer!
Hilaire

AndiDog

I just downloaded the recent C::B nightly build for Windows and couldn't find the Valgrind plugin.

A search in the forum didn't give me any hints, and neither did I find it on http://svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/, http://valgrind.org/ or the Wiki. Really a lack of information here :wink: Anway, I'm sure that I've seen the Valgrind plugin on a recent CodeBlocks installation on Linux, though.

Where can I get that plugin for Windows??

Jenna


kfmfe04

#24
What is the status of this Valgrind plugin?

I would like to try it on an Ubuntu/Amd64 set-up (never used Valgrind before) for profiling, mostly, but I don't want the attempt to turn into a massive time-sink...

Has anyone tried it recently?  What works?  What doesn't?
Thanks in advance.

- Ken
(BTW, I am running 8.02, Build: Jul 24 2008, 15:20:21, and I can't seem to find the plug-in under Plug-Ins... > Manage Plugins.)

Quote
The valgrind plugin is part of the contrib-plugins and therefore included in the sources and nightlies since svn r5113 (2008-07-09).

stahta01

Quote from: kfmfe04 on July 13, 2009, 06:11:26 AM
What is the status of this Valgrind plugin?

I would like to try it on an Ubuntu/Amd64 set-up (never used Valgrind before) for profiling, mostly, but I don't want the attempt to turn into a massive time-sink...

Has anyone tried it recently?  What works?  What doesn't?
Thanks in advance.

- Ken
(BTW, I am running 8.02, Build: Jul 24 2008, 15:20:21, and I can't seem to find the plug-in under Plug-Ins... > Manage Plugins.)

Quote
The valgrind plugin is part of the contrib-plugins and therefore included in the sources and nightlies since svn r5113 (2008-07-09).

Feb 2008 (8.02) is before July 2008 that is why you do not see the plugin.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

yakumoklesk

I posted this in a wrong thread, so I put it here and the solution I found:


I am trying to run valgrind plugin, but it says that it needs to specify a XML file.

I have the valgrind version:

valgrind-3.5.0-Debian,


that needs the parameter

--xml-file=<file>         XML output to <file>

Is there any place where I can specify it?

Thanks in advance.

Workaround

Ok. I needed to find an older version. I did the following after installing apt-show-versions:

apt-show-versions -a valgrind
valgrind 1:3.5.0-2 install ok installed
valgrind 1:3.3.1-3 lenny   http.us.debian.org
valgrind 1:3.5.0-2 testing http.us.debian.org
valgrind 1:3.5.0-2 sid     ftp.de.debian.org
valgrind/testing uptodate 1:3.5.0-2


Then downgrade:

sudo apt-get install valgrind=1:3.3.1-3

This is just in case other people may have the same problem that me.

Now it launches.

yakumoklesk

But it does nothing... The application is run, then I close it. Then nothing.

What is next?

killerbot

It is well possible that it might not correctly run with valgrind 3.5, since a few things have changed in valgrind.
Currently I am still at 3.2.3 and 3.3.0.
And there i have been using it in august/september and it still worked ;-)

In a few weeks i will be at valgrind 3.5.0, I will look into the issues at that time. Unless people can already give hints on what is going wrong.

oBFusCATed

You need to pass -xml-fd=0 or 2 (stdout or stderr) to make it happy
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]