Author Topic: Valgrind plugin  (Read 49687 times)

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Valgrind plugin
« Reply #15 on: July 14, 2008, 06:14:33 pm »
There is a missing #include in Valgrind.cpp:
Code
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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Valgrind plugin
« Reply #16 on: July 15, 2008, 09:37:57 am »
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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Valgrind plugin
« Reply #17 on: July 15, 2008, 10:07:20 am »
There is a missing #include in Valgrind.cpp:
Code
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 !!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Valgrind plugin
« Reply #18 on: July 15, 2008, 10:45:25 am »
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.

Offline elfunesto

  • Single posting newcomer
  • *
  • Posts: 5
Re: Valgrind plugin
« Reply #19 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Valgrind plugin
« Reply #20 on: July 03, 2009, 02:53:14 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).

Offline elfunesto

  • Single posting newcomer
  • *
  • Posts: 5
Re: Valgrind plugin
« Reply #21 on: July 03, 2009, 03:06:58 pm »
Thanks for your quick answer!
Hilaire

Offline AndiDog

  • Single posting newcomer
  • *
  • Posts: 6
Re: Valgrind plugin
« Reply #22 on: July 04, 2009, 01:48:35 pm »
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??

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Valgrind plugin
« Reply #23 on: July 04, 2009, 01:53:10 pm »
Read this: http://valgrind.org/info/platforms.html and you will understand.

Offline kfmfe04

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Valgrind plugin
« Reply #24 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).
« Last Edit: July 13, 2009, 06:17:09 am by kfmfe04 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Valgrind plugin
« Reply #25 on: July 13, 2009, 07:19:12 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline yakumoklesk

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: Valgrind plugin
« Reply #26 on: October 20, 2009, 06:51:41 pm »
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:

Code
valgrind-3.5.0-Debian,

that needs the parameter

Code
--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:

Code
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:

Code
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.

Offline yakumoklesk

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: Valgrind plugin
« Reply #27 on: October 20, 2009, 07:07:11 pm »
But it does nothing... The application is run, then I close it. Then nothing.

What is next?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Valgrind plugin
« Reply #28 on: October 20, 2009, 09:50:44 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Valgrind plugin
« Reply #29 on: October 20, 2009, 10:16:39 pm »
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!]