diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-15 09:52:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-15 09:52:30 +0000 |
commit | f876efd349e92a7e8a62797e8d18921419c07434 (patch) | |
tree | 5279f5990b594413d3524526fabe5fa975510b61 | |
parent | ec0a71bd70d8f9db8534c708c5c76952d87294a7 (diff) |
Update valgrind to 1.0.4
-rw-r--r-- | make/valgrind.mk | 12 | ||||
-rw-r--r-- | sources/valgrind.patch | 153 | ||||
-rw-r--r-- | sources/valgrind.patch.bz2 | bin | 0 -> 59828 bytes |
3 files changed, 8 insertions, 157 deletions
diff --git a/make/valgrind.mk b/make/valgrind.mk index 9ee6dd708..3a0da7914 100644 --- a/make/valgrind.mk +++ b/make/valgrind.mk @@ -5,9 +5,9 @@ ############################################################# VALGRIND_SITE:=http://developer.kde.org/~sewardj -VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0.1 -VALGRIND_SOURCE:=valgrind-1.0.1.tar.bz2 -VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch +VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0.4 +VALGRIND_SOURCE:=valgrind-1.0.4.tar.bz2 +VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch.bz2 $(DL_DIR)/$(VALGRIND_SOURCE): $(WGET) -P $(DL_DIR) $(VALGRIND_SITE)/$(VALGRIND_SOURCE) @@ -17,7 +17,7 @@ $(VALGRIND_DIR)/.unpacked: $(DL_DIR)/$(VALGRIND_SOURCE) touch $(VALGRIND_DIR)/.unpacked $(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked - cat $(VALGRIND_PATCH) | patch -d $(VALGRIND_DIR) -p1 + bzcat $(VALGRIND_PATCH) | patch -d $(VALGRIND_DIR) -p1 touch $(VALGRIND_DIR)/.patched $(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched @@ -54,6 +54,10 @@ $(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/valgrind.so includedir=$(TARGET_DIR)/usr/include \ -C $(VALGRIND_DIR) install; rm -rf $(TARGET_DIR)/usr/share/doc/valgrind + mkdir -p $(TARGET_DIR)/etc/default + cp $(VALGRIND_DIR)/valgrind.default $(TARGET_DIR)/etc/default/valgrind + mkdir -p $(TARGET_DIR)/usr/lib/valgrind + cp $(VALGRIND_DIR)/woody.supp $(TARGET_DIR)/usr/lib/valgrind/ touch -c $(TARGET_DIR)/usr/bin/valgrind valgrind: $(TARGET_DIR)/usr/bin/valgrind diff --git a/sources/valgrind.patch b/sources/valgrind.patch deleted file mode 100644 index a728940bf..000000000 --- a/sources/valgrind.patch +++ /dev/null @@ -1,153 +0,0 @@ ---- valgrind-1.0pre6.orig/vg_libpthread.c Sat Jul 13 06:59:27 2002 -+++ valgrind-1.0pre6/vg_libpthread.c Sat Jul 27 02:50:53 2002 -@@ -2821,6 +2821,7 @@ - - /* I've no idea what these are, but they get called quite a lot. - Anybody know? */ -+#ifndef __UCLIBC__ - - #undef _IO_flockfile - void _IO_flockfile ( _IO_FILE * file ) -@@ -2837,6 +2838,7 @@ - } - weak_alias(_IO_funlockfile, funlockfile); - -+#endif - - /* This doesn't seem to be needed to simulate libpthread.so's external - interface, but many people complain about its absence. */ ---- valgrind-1.0pre6.orig/vg_clientfuncs.c Mon Jul 15 19:44:21 2002 -+++ valgrind-1.0pre6/vg_clientfuncs.c Sat Jul 27 02:59:33 2002 -@@ -560,12 +560,14 @@ - void VG_(__libc_freeres_wrapper)( void ) - { - int res; -+#ifndef __UCLIBC__ - extern void __libc_freeres(void); - __libc_freeres(); - VALGRIND_MAGIC_SEQUENCE(res, 0 /* default */, - VG_USERREQ__LIBC_FREERES_DONE, 0, 0, 0, 0); - /*NOTREACHED*/ - vg_assert(12345+54321 == 999999); -+#endif - } - - ---- valgrind-1.0pre6.orig/vg_unsafe.h Thu Jun 13 10:02:37 2002 -+++ valgrind-1.0pre6/vg_unsafe.h Tue Jul 23 23:36:45 2002 -@@ -51,9 +51,13 @@ - - #include <linux/isdn.h> /* for ISDN ioctls */ - #include <scsi/sg.h> /* for the SG_* ioctls */ -+#include <scsi/scsi.h> /* for a few SCSI ioctls */ -+#include <scsi/scsi_ioctl.h>/* for even more SCSI ioctls */ - #include <sched.h> /* for struct sched_param */ - #include <linux/sysctl.h> /* for struct __sysctl_args */ - #include <linux/cdrom.h> /* for cd-rom ioctls */ -+#include <linux/hdreg.h> /* for ide ioctls */ -+#include <sys/mtio.h> /* for tape drive junk */ - - #define __USE_LARGEFILE64 - #include <sys/stat.h> /* for struct stat */ ---- valgrind-1.0pre6.orig/vg_syscall_mem.c Sat Jul 13 06:44:39 2002 -+++ valgrind-1.0pre6/vg_syscall_mem.c Tue Jul 23 23:44:39 2002 -@@ -2050,6 +2050,99 @@ - sizeof(struct cdrom_msf)); - KERNEL_DO_SYSCALL(tid,res); - break; -+ -+ /* Stuff added by Erik Andersen for general device probing/handling */ -+ case CDROM_DRIVE_STATUS: -+ KERNEL_DO_SYSCALL(tid,res); -+ break; -+#define BLKSSZGET _IO(0x12,104) -+ case BLKSSZGET: -+ must_be_writable(tst, "ioctl(BLKSSZGET)", arg3, sizeof(int)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(int)); -+ break; -+#define BLKGETSIZE64 _IOR(0x12,114,sizeof(unsigned long long*)) -+ case BLKGETSIZE64: -+ must_be_writable(tst, "ioctl(BLKGETSIZE64)", arg3, sizeof(unsigned long long)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(unsigned long long)); -+ break; -+ case HDIO_GETGEO: -+ { -+ struct hd_geometry { -+ unsigned char heads; -+ unsigned char sectors; -+ unsigned short cylinders; -+ unsigned long start; -+ }; -+ -+ must_be_writable(tst, "ioctl(HDIO_GETGEO)", arg3, sizeof(struct hd_geometry)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(struct hd_geometry)); -+ } -+ break; -+ case HDIO_GET_IDENTITY: -+ must_be_writable(tst, "ioctl(HDIO_GET_IDENTITY)", arg3, sizeof(struct hd_driveid)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(struct hd_driveid)); -+ break; -+ case SCSI_IOCTL_GET_IDLUN: -+ { -+ struct scsi_idlun -+ { -+ int mux4; -+ int host_unique_id; -+ -+ }; -+ must_be_writable(tst, "ioctl(SCSI_IOCTL_GET_IDLUN)", arg3, sizeof(struct scsi_idlun)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(struct scsi_idlun)); -+ } -+ break; -+ case SCSI_IOCTL_SEND_COMMAND: -+ must_be_writable(tst, "ioctl(SCSI_IOCTL_SEND_COMMAND)", arg3, -+ ((2 * sizeof(unsigned int)) + 6 + 512)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, ((2 * sizeof(unsigned int)) + 6 + 512)); -+ break; -+ case SCSI_IOCTL_GET_BUS_NUMBER: -+ must_be_writable(tst, "ioctl(SCSI_IOCTL_GET_BUS_NUMBER)", arg3, sizeof(int)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(int)); -+ break; -+ case SCSI_IOCTL_PROBE_HOST: -+ { -+ int xxxx; -+ char *array = (char*)arg3; -+ xxxx = array[0] + (array[1]<<8) + (array[2]<<16) + (array[3]<<24); -+ must_be_writable(tst, "ioctl(SCSI_IOCTL_PROBE_HOST)", arg3, xxxx); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, xxxx); -+ } -+ break; -+#define BLKFLSBUF _IO(0x12,97) -+ case BLKFLSBUF: -+ KERNEL_DO_SYSCALL(tid,res); -+ break; -+#define BLKRRPART _IO(0x12,95) -+ case BLKRRPART: -+ KERNEL_DO_SYSCALL(tid,res); -+ break; -+ case MTIOCTOP: -+ must_be_writable(tst, "ioctl(MTIOCTOP)", arg3, sizeof(struct mtop)); -+ KERNEL_DO_SYSCALL(tid,res); -+ if (!VG_(is_kerror)(res) && res == 0) -+ make_readable (arg3, sizeof(struct mtop)); -+ break; -+ - /* We don't have any specific information on it, so - try to do something reasonable based on direction and - size bits. The encoding scheme is described in diff --git a/sources/valgrind.patch.bz2 b/sources/valgrind.patch.bz2 Binary files differnew file mode 100644 index 000000000..313fd226c --- /dev/null +++ b/sources/valgrind.patch.bz2 |