Skip to contentSkip to conversation

Pull request for branch valgrind

GIT PULL New Thomas Petazzoni 2 participants 4 messages Jul 11, 2011

lore
Share & tools
lore
#0 lore raw

The following changes since commit bd76bc5f80b963570e8eda92efc961e683264402:

CHANGES: update with recent changes (2011-07-11 07:44:24 +0200)

are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git valgrind

Thomas Petazzoni (1):
valgrind: bump to 3.6.1 and add support for ARMv7

 package/valgrind/Config.in                         |    3 +-
 package/valgrind/valgrind-3.6.1-largefile.patch    |   56 ++++++
 ...rind.patch => valgrind-3.6.1-more-ioctls.patch} |  198 ++++++++++----------
 package/valgrind/valgrind-largefile.patch          |   27 ---
 package/valgrind/valgrind.mk                       |   99 ++--------
 package/valgrind/valgrind.sh                       |   10 -
 6 files changed, 176 insertions(+), 217 deletions(-)
 create mode 100644 package/valgrind/valgrind-3.6.1-largefile.patch
 rename package/valgrind/{valgrind.patch => valgrind-3.6.1-more-ioctls.patch} (83%)
 delete mode 100644 package/valgrind/valgrind-largefile.patch
 delete mode 100755 package/valgrind/valgrind.sh

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/1 valgrind: bump to 3.6.1 and add support for ARMv7

We removed the shell script that wrapped valgrind (not nice to install such non-standard things), and will let the user use the uclibc.supp suppression file if needed.

---
 package/valgrind/Config.in                         |    3 +-
 package/valgrind/valgrind-3.6.1-largefile.patch    |   56 ++++++
 ...rind.patch => valgrind-3.6.1-more-ioctls.patch} |  198 ++++++++++----------
 package/valgrind/valgrind-largefile.patch          |   27 ---
 package/valgrind/valgrind.mk                       |   99 ++--------
 package/valgrind/valgrind.sh                       |   10 -
 6 files changed, 176 insertions(+), 217 deletions(-)
 create mode 100644 package/valgrind/valgrind-3.6.1-largefile.patch
 rename package/valgrind/{valgrind.patch => valgrind-3.6.1-more-ioctls.patch} (83%)
 delete mode 100644 package/valgrind/valgrind-largefile.patch
 delete mode 100755 package/valgrind/valgrind.sh
package/valgrind/Config.in +2 -1
index db1bc3b..0f656dc 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_VALGRIND
 	bool "valgrind"
-	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_i386 || BR2_x86_64 || BR2_cortex_a8 || \
+		   BR2_cortex_a9 || BR2_powerpc
 	help
 	  Tool for debugging and profiling Linux programs.
 
package/valgrind/valgrind-3.6.1-largefile.patch new file +56 -0

56 lines not on this page · raw message

package/valgrind/valgrind-3.6.1-more-ioctls.patch renamed from package/valgrind/valgrind.patch +98 -100

262 lines not on this page · raw message

package/valgrind/valgrind-largefile.patch deleted +0 -27
deleted file mode 100644
index 9ef5708..0000000
@@ -1,27 +0,0 @@
-[PATCH] valgrind: don't enable largefile support unconditionally on uClibc
-
-uClibc can be compiled without largefile support (and errors out if
-_FILE_OFFSET_BITS is set to 64), so don't define it if that combination
-is detected.
-
-Signed-off-by: Peter Korsgaard <[email protected]>
----
- coregrind/m_ume.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
-Index: valgrind-3.2.3/coregrind/m_ume.c
-===================================================================
---- valgrind-3.2.3.orig/coregrind/m_ume.c
-+++ valgrind-3.2.3/coregrind/m_ume.c
-@@ -31,7 +31,11 @@
- 
- 
- #define _GNU_SOURCE
-+#include <features.h>
-+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
-+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
- #define _FILE_OFFSET_BITS 64
-+#endif
- 
- // It seems that on SuSE 9.1 (x86) something in <fcntl.h> messes up stuff
- // acquired indirectly from vki-x86-linux.h.  Therefore our headers must be
package/valgrind/valgrind.mk +20 -79

106 lines not on this page · raw message

package/valgrind/valgrind.sh deleted +0 -10
deleted file mode 100755
index 4b8eb2e..0000000
@@ -1,10 +0,0 @@
-#!/bin/sh -e
-#
-# Valgrind wrapper
-
-# Use special suppression file for uClibc
-export VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=/usr/lib/valgrind/uclibc.supp"
-
-# Use 'exec' to avoid having another shell process hanging around.
-exec $0.bin "$@"
-
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 1/1 valgrind: bump to 3.6.1 and add support for ARMv7

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> We removed the shell script that wrapped valgrind (not nice to install Thomas> such non-standard things), and will let the user use the uclibc.supp Thomas> suppression file if needed.

Committed, thanks (but see below).

Thomas> +VALGRIND_VERSION = 3.6.1
Thomas> +VALGRIND_SITE = http://valgrind.org/downloads/
Thomas> +VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2 Thomas> +
Thomas> +VALGRIND_CONF_OPT = --disable-tls

I know we had this before as well, but is that really needed nowadays with NPTL and so on? It seems to compile fine here without that option.

Thomas> +$(eval $(call AUTOTARGETS,package,valgrind)) Thomas> \ No newline at end of file

I've fixed that.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 valgrind: bump to 3.6.1 and add support for ARMv7

Le Mon, 11 Jul 2011 23:24:58 +0200,
Peter Korsgaard <[email protected]> a ?crit :

Quoted 9 lines

Thomas> +VALGRIND_VERSION = 3.6.1
Thomas> +VALGRIND_SITE = http://valgrind.org/downloads/
Thomas> +VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2 Thomas> +
Thomas> +VALGRIND_CONF_OPT = --disable-tls

I know we had this before as well, but is that really needed nowadays with NPTL and so on? It seems to compile fine here without that option.

I didn't test without this option, as I thought I had a linuxthreads toolchain. But in fact, my toolchain was NPTL, so probably it works without this option.

Maybe it needs some conditional on the thread implementation ? Or maybe the configure script guesses automatically ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com