]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoRemoved Makefile.core.am with some judicious refactoring. Also fix a stupid
Nicholas Nethercote [Fri, 6 Feb 2009 05:34:19 +0000 (05:34 +0000)] 
Removed Makefile.core.am with some judicious refactoring.  Also fix a stupid
typo in launcher-linux.c that was added in the last commit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9116

16 years agoRemoved Makefile.core.am with some judicious refactoring.
Nicholas Nethercote [Fri, 6 Feb 2009 04:49:14 +0000 (04:49 +0000)] 
Removed Makefile.core.am with some judicious refactoring.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9114

16 years agoAvoid unnecessary EXTRA_DIST files in Makefile.am.
Nicholas Nethercote [Fri, 6 Feb 2009 04:13:52 +0000 (04:13 +0000)] 
Avoid unnecessary EXTRA_DIST files in Makefile.am.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9112

16 years agoMerge r9110 (inline Makefile.tool-flags.am) from DARWIN branch.
Nicholas Nethercote [Fri, 6 Feb 2009 04:05:43 +0000 (04:05 +0000)] 
Merge r9110 (inline Makefile.tool-flags.am) from DARWIN branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9111

16 years agoIndex: Makefile.core.am
Nicholas Nethercote [Fri, 6 Feb 2009 03:46:50 +0000 (03:46 +0000)] 
Index: Makefile.core.am
    Factor out some includes.  Remove some unnecessary includes.

Index: configure.in
    Improve some comments.  Make the arch/platform/OS output more consistent
    and comprehensive.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9108

16 years agoFix a minor defect: only the first 14 chars of the 18 chars in the
Nicholas Nethercote [Tue, 3 Feb 2009 03:59:05 +0000 (03:59 +0000)] 
Fix a minor defect:  only the first 14 chars of the 18 chars in the
--massif-out-file= option was being checked, which meant that if you did
--massif-out-filename=foo by mistake it would accept it and produce a file
called "ame=foo".

MERGE to 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9099

16 years agoSuppression update.
Julian Seward [Sun, 1 Feb 2009 20:15:32 +0000 (20:15 +0000)] 
Suppression update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9097

16 years agoAdd support for glibc-2.10 (when it eventually appears).
Julian Seward [Sun, 1 Feb 2009 19:01:11 +0000 (19:01 +0000)] 
Add support for glibc-2.10 (when it eventually appears).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9096

16 years agoMove an assertion (pertaining to showing initial segments to the
Julian Seward [Sat, 31 Jan 2009 15:08:08 +0000 (15:08 +0000)] 
Move an assertion (pertaining to showing initial segments to the
tools) to the correct place, and add a big comment explaining why this
is necessary.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9094

16 years agoRemoved mandatory redirections for DRD since these made DRD impossible to use on...
Bart Van Assche [Fri, 30 Jan 2009 18:31:54 +0000 (18:31 +0000)] 
Removed mandatory redirections for DRD since these made DRD impossible to use on openSUSE 10.3 ppc.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9092

16 years agoGeneralized suppression patterns.
Bart Van Assche [Fri, 30 Jan 2009 17:52:39 +0000 (17:52 +0000)] 
Generalized suppression patterns.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9091

16 years agoDo not only recognize .plt and .plt.got sections inside the mapped address range...
Bart Van Assche [Fri, 30 Jan 2009 17:52:21 +0000 (17:52 +0000)] 
Do not only recognize .plt and .plt.got sections inside the mapped address range, but also outside the mapped address range (necessary for ppc).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9090

16 years agoSuppress any error whose top frame is in libc.so. While not very elegant, this is...
Bart Van Assche [Thu, 29 Jan 2009 09:57:22 +0000 (09:57 +0000)] 
Suppress any error whose top frame is in libc.so. While not very elegant, this is an effective way to suppress data race reports triggered by glibc's stdio functions (which uses inlined locking functions).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9087

16 years agoVG_(findBoundsFM): add comment re preconditions
Julian Seward [Thu, 29 Jan 2009 08:46:15 +0000 (08:46 +0000)] 
VG_(findBoundsFM): add comment re preconditions

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9085

16 years agoGeneralise zlib suppressions a bit.
Julian Seward [Thu, 29 Jan 2009 08:45:19 +0000 (08:45 +0000)] 
Generalise zlib suppressions a bit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9084

16 years ago* get_Seg_containing_addr: fix incorrect test guarding assertion
Julian Seward [Thu, 29 Jan 2009 08:44:49 +0000 (08:44 +0000)] 
* get_Seg_containing_addr: fix incorrect test guarding assertion
  (which then failed)

* support some more syscalls

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9083

16 years agoCallgrind: Remove ifdef'ed-out, non-working code.
Josef Weidendorfer [Mon, 26 Jan 2009 23:21:18 +0000 (23:21 +0000)] 
Callgrind: Remove ifdef'ed-out, non-working code.

Rechecking the diff of r9080 on the mailing list, I thought
I forgot to replace "|" with "+" in one spot. But that was part
of not-used code, so it actually does not matter.
So better get rid of this code part at all (no need to backport ;-).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9081

16 years agoCachegrind/Callgrind: allow for cache sizes other than only powers of two
Josef Weidendorfer [Mon, 26 Jan 2009 22:56:14 +0000 (22:56 +0000)] 
Cachegrind/Callgrind: allow for cache sizes other than only powers of two

The number of sets, ie. number of cache lines divided by associativity,
and the cache line size still have to be powers of two.
This change is needed for default cache parameters used on some Intel
Core 2 and Atom processors.

Includes cachegrind manual update and explicit tests with 24KB D1/3MB L2
Reverts addition of 6MB warning to {cachegrind,callgrind}/tests/filter_stderr

Backporting to VALGRIND_3_4_BRANCH needs r8912

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9080

16 years agoInitialise laog and laog__exposition even when the first lock-related
Julian Seward [Mon, 26 Jan 2009 10:45:16 +0000 (10:45 +0000)] 
Initialise laog and laog__exposition even when the first lock-related
action is a lock deletion.  Fixes a segfault reported by Ali
Jannesari.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9063

16 years agoRemove function that was made redundant by r9059.
Julian Seward [Mon, 26 Jan 2009 01:22:23 +0000 (01:22 +0000)] 
Remove function that was made redundant by r9059.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9062

16 years agoMinor refinements:
Julian Seward [Mon, 26 Jan 2009 00:09:08 +0000 (00:09 +0000)] 
Minor refinements:

* h_main.c: handle a few more syscalls

* exp-ptrcheck.supp: ignore errors in glibc's getenv -- is highly optimised

* pc_common.c: fix small error in error message printing

--> 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9061

16 years agoIntercept and replace calls to calls to strnlen in glibc, for the
Julian Seward [Mon, 26 Jan 2009 00:06:43 +0000 (00:06 +0000)] 
Intercept and replace calls to calls to strnlen in glibc, for the
usual reasons.  Also update an expected output (lines numbers in
h_intercepts.c should be removed by the regtest system, really).

--> 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9060

16 years agoPrior to this commit, exp-ptrcheck would assert if the DWARF3 data for
Julian Seward [Sun, 25 Jan 2009 23:59:24 +0000 (23:59 +0000)] 
Prior to this commit, exp-ptrcheck would assert if the DWARF3 data for
global or stack blocks described overlapping blocks (which are
nonsensical).  Unfortunately it is naive to assume compilers will
always produce correct debug info.  This commit makes exp-ptrcheck
much more robust against such (inevitable) anomalies: stack and global
blocks which overlap are simply ignored.

--> 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9059

16 years agoHandle a couple of artefacts produced by icc11: DW_TAG_reference_type
Julian Seward [Sun, 25 Jan 2009 23:50:32 +0000 (23:50 +0000)] 
Handle a couple of artefacts produced by icc11: DW_TAG_reference_type
that doesn't have a size, and DW_FORM_ref_addr (assuming my
interpretation of the standard is correct.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9058

16 years agoHandle a couple of artefacts generated by gcc-4.4: DW_OP_reg{0..31}
Julian Seward [Sun, 25 Jan 2009 23:48:31 +0000 (23:48 +0000)] 
Handle a couple of artefacts generated by gcc-4.4: DW_OP_reg{0..31}
and DW_OP_const1s.

--> 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9057

16 years agoHandle a few more syscalls, as per #179618.
Julian Seward [Sat, 24 Jan 2009 10:52:32 +0000 (10:52 +0000)] 
Handle a few more syscalls, as per #179618.
MERGE TO 3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9056

16 years agoAccept 'enum' type DIEs that do not have any names; apparently Dwarf2
Julian Seward [Sat, 24 Jan 2009 01:44:15 +0000 (01:44 +0000)] 
Accept 'enum' type DIEs that do not have any names; apparently Dwarf2
allows this.  Patch from Nuno Lopes.  #181707.
MERGE TO 3_4_BRANCH

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9055

16 years agoMake the leak checker a bit less verbose.
Julian Seward [Sat, 24 Jan 2009 01:42:20 +0000 (01:42 +0000)] 
Make the leak checker a bit less verbose.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9054

16 years agoFix aix5 build breakage following r9021.
Julian Seward [Sat, 24 Jan 2009 01:22:51 +0000 (01:22 +0000)] 
Fix aix5 build breakage following r9021.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9053

16 years agoDon't try to build m_ume on aix5.
Julian Seward [Sat, 24 Jan 2009 01:22:25 +0000 (01:22 +0000)] 
Don't try to build m_ume on aix5.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9052

16 years agoVG_(apply_StackTrace): following r8818, we should regard an entry of -1
Julian Seward [Sat, 24 Jan 2009 00:07:53 +0000 (00:07 +0000)] 
VG_(apply_StackTrace): following r8818, we should regard an entry of -1
as denoting the logical end of the stack.  This change stops printing
of a lot of junk below the logical "-1" end mark.  See added comments
for details.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9051

16 years agoML_(evaluate_trivial_GX): handle the case
Julian Seward [Sat, 24 Jan 2009 00:06:13 +0000 (00:06 +0000)] 
ML_(evaluate_trivial_GX): handle the case

   (DW_OP_addr: DW_OP_plus_uconst: ULEB < 128)

This is a really nasty kludge and should be fixed properly.

MERGE TO 3_4_BRANCH (?)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9050

16 years agoHandle the case where a Compilation Unit (CU) (or, really, the CU and
Julian Seward [Sat, 24 Jan 2009 00:04:28 +0000 (00:04 +0000)] 
Handle the case where a Compilation Unit (CU) (or, really, the CU and
its associated DIEs) occupies less space than stated in the CU's
header.  icc9 appears to produce CUs with this anomaly.  Not handling
the case causes the reader to lose sync at the start of the following
CU, since it hasn't skipped the junk bytes at the end of the current
CU, and it is basically hosed after that.
MERGE TO 3_4_BRANCH (?)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9049

16 years agoMerge from DARWIN branch recent minor .vgtest changes.
Nicholas Nethercote [Fri, 23 Jan 2009 04:14:33 +0000 (04:14 +0000)] 
Merge from DARWIN branch recent minor .vgtest changes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9045

16 years agoFix up selection of Helgrind tests (merged r9040 from DARWIN branch).
Nicholas Nethercote [Fri, 23 Jan 2009 03:40:09 +0000 (03:40 +0000)] 
Fix up selection of Helgrind tests (merged r9040 from DARWIN branch).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9041

16 years agoMove memcheck/tests/brk to the linux/ subdir, as it's Linux-specific (merged
Nicholas Nethercote [Fri, 23 Jan 2009 00:57:31 +0000 (00:57 +0000)] 
Move memcheck/tests/brk to the linux/ subdir, as it's Linux-specific (merged
from the DARWIN branch).  Also filter the output more so the .stderr.exp2
isn't needed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9038

16 years agoMerge some minor regtest updates from the DARWIN branch:
Nicholas Nethercote [Fri, 23 Jan 2009 00:02:07 +0000 (00:02 +0000)] 
Merge some minor regtest updates from the DARWIN branch:
- avoid using <malloc.h> where it's not necessary, because on DARWIN it's
  called <malloc/malloc.h>
- filter the output of brk2 more, which allows the .stderr.exp2 file to be
  removed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9037

16 years agoMove the test for __sync_bool_compare_and_swap almost to the bottom,
Julian Seward [Thu, 22 Jan 2009 22:44:30 +0000 (22:44 +0000)] 
Move the test for __sync_bool_compare_and_swap almost to the bottom,
so it can use $mflag_primary.  This makes the word size for which the
test is done (-m32 or -m64) be the same as for which it is actually
needed, and in some situations unbreaks building of the regtests in
32-bit mode on a 64-bit machine.

For the same reason, apply $mflag_primary to the test for OpenMP.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9034

16 years agoRename all the arch/OS/platform-related variables in configure.in to make it
Nicholas Nethercote [Thu, 22 Jan 2009 21:56:32 +0000 (21:56 +0000)] 
Rename all the arch/OS/platform-related variables in configure.in to make it
clearer what they mean:
- They all have VGCONF_ prefixes now, to indicate they come out of
  configure.in (and are clearly distinguished from the VGA_/VGO_/VGP_
  #defines passed in to C files).
- The ones that refer to the primary *or* secondary platform have _INCLUDES_
  in them.
- The ones that are in all-caps have a _CAPS suffix.

So, for example, what was VGP_X86_LINUX is now
VGCONF_PLATFORMS_INCLUDE_X86_LINUX, which is more verbose but also a lot
clearer.  The names of the #defines used in the C files (VGA_x86, VGO_linux,
etc) are unchanged.

cputest.c: changed to reflect the Valgrind installation's capabilities,
rather than the machine's capabilities.  In particular, if
--enable-only32bit is used on a 64-bit machine, then this program will claim
to only support 32-bits.  Also use the VGA/VGO/VGP macros which are clearer
than the __i386__ ones.  (This is partially merged from the DARWIN branch.)

configure.in: clean up the comments, distinguish different sections more
clearly, and generally make it more readable.

valgrind.pc.in: try to make this more accurate.  I doubt anyone's using it.
It doesn't appear to be set up to handle dual-architecture builds.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9031

16 years agoMinor tidyings:
Julian Seward [Thu, 22 Jan 2009 21:18:15 +0000 (21:18 +0000)] 
Minor tidyings:

search_all_symtabs: look for data symbols also in .sbss and .rodata
sections.

VG_(seginfo_sect_kind): identify addresses in .sbss sections.

VG_(pp_SectKind): handle missing case Vg_SectGOTPLT

search_all_loctabs, VG_(get_objname), VG_(find_seginfo): augment tests
"di->text_present" with "&& di->text_size > 0" (probably not
necessary, but is clearer, and more consistent in that most places
that look at DebugInfo.text_{size,avma} first perform both of those
tests).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9029

16 years agoSuppress any error at all that occurs in libpthread, without any
Julian Seward [Thu, 22 Jan 2009 20:46:51 +0000 (20:46 +0000)] 
Suppress any error at all that occurs in libpthread, without any
regard for any calling frames.  Needed to hide the fact that we can't
see stdio locking stuff and hence end up reporting a lot of errors in
multithreaded stdio working.
MERGE TO 3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9028

16 years agoMore aggressive suppression of error reports from ld.so.
Julian Seward [Thu, 22 Jan 2009 20:42:03 +0000 (20:42 +0000)] 
More aggressive suppression of error reports from ld.so.
MERGE TO 3_4_BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9027

16 years agoDon't worry about an unmapped, zero sized, bss segment. Bug #181594.
Tom Hughes [Thu, 22 Jan 2009 16:53:25 +0000 (16:53 +0000)] 
Don't worry about an unmapped, zero sized, bss segment. Bug #181594.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9026

16 years agoAccept zero size text segments. Bug #181594.
Tom Hughes [Thu, 22 Jan 2009 15:08:53 +0000 (15:08 +0000)] 
Accept zero size text segments. Bug #181594.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9025

16 years agoHandle the rodata and sbss sections and cope with variables that
Tom Hughes [Thu, 22 Jan 2009 14:14:13 +0000 (14:14 +0000)] 
Handle the rodata and sbss sections and cope with variables that
are in those sections.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9024

16 years agoBias values should be PtrdiffT now.
Tom Hughes [Thu, 22 Jan 2009 14:02:26 +0000 (14:02 +0000)] 
Bias values should be PtrdiffT now.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9023

16 years agoRemoved unused round_Addr_upwards function.
Tom Hughes [Thu, 22 Jan 2009 13:44:03 +0000 (13:44 +0000)] 
Removed unused round_Addr_upwards function.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9022

16 years agoDon't assume that all global variables are in the data section - we
Tom Hughes [Thu, 22 Jan 2009 13:40:12 +0000 (13:40 +0000)] 
Don't assume that all global variables are in the data section - we
now cope with variables in the text, data, sdata and bss sections.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9021

16 years agoImprove detection of where ELF sections have been mapped by taking
Tom Hughes [Thu, 22 Jan 2009 13:24:06 +0000 (13:24 +0000)] 
Improve detection of where ELF sections have been mapped by taking
the ELF segment table into account when deciding on the mapping
between SVMA and AVMA for a section.

This also allows the BSS kludge to be dropped, as the BSS address is
now correctly determined.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9020

16 years agoSome minor format string fixes for gcc-3.3.3 (SuSE 9.1). Not sure why
Julian Seward [Thu, 22 Jan 2009 12:24:26 +0000 (12:24 +0000)] 
Some minor format string fixes for gcc-3.3.3 (SuSE 9.1).  Not sure why
later gccs don't complain about these.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9019

16 years agoDon't hardwire @FLAG_M32@ in here, since this directory isn't arch
Julian Seward [Thu, 22 Jan 2009 01:36:51 +0000 (01:36 +0000)] 
Don't hardwire @FLAG_M32@ in here, since this directory isn't arch
specific (and so the build fails eg on a 64 bit machine that does
not have a 32-bit toolchain installed).  Use $(AM_FLAG_M3264_PRI)
instead.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9018

16 years ago- No longer using VG_ARCH_ALL to determine the DIST_SUBDIRS used for
Nicholas Nethercote [Thu, 22 Jan 2009 01:13:16 +0000 (01:13 +0000)] 
- No longer using VG_ARCH_ALL to determine the DIST_SUBDIRS used for
  arch/OS/platform-specific tool test dirs, instead writing it by hand.
  This is important because up until now if we had any arch-specific test
  dirs, we needed such dirs for all archs.  Now that we also have
  OS-specific and platform-specific test dirs, we don't want to have
  (mostly) empty dirs for every arch/OS/platform.

- Correspondingly, removed several empty directories under memcheck/tests/
  and cachegrind/tests that are no longer needed.

- Also removed VG_ARCH_ALL from configure.in.

- Also used an arch-specific guard rather than a platform-specific one where
  appropriate in cachegrind/tests/Makefile.am.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9017

16 years agoMerge part of r8943 from the Darwin branch -- use VGA_* instead of VGP_* for
Nicholas Nethercote [Wed, 21 Jan 2009 22:52:39 +0000 (22:52 +0000)] 
Merge part of r8943 from the Darwin branch -- use VGA_* instead of VGP_* for
selecting the arch-specific tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9015

16 years agoIn AC_TRY_COMPILE, only include the function body, not the surrounding "int
Nicholas Nethercote [Wed, 21 Jan 2009 22:25:50 +0000 (22:25 +0000)] 
In AC_TRY_COMPILE, only include the function body, not the surrounding "int
main { ... }".

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9010

16 years agoReplace some 4-space indents with 3-space indents. Merged from DARWIN.
Nicholas Nethercote [Wed, 21 Jan 2009 22:19:26 +0000 (22:19 +0000)] 
Replace some 4-space indents with 3-space indents.  Merged from DARWIN.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9009

16 years agoThis should have been part of r9004.
Nicholas Nethercote [Wed, 21 Jan 2009 04:11:13 +0000 (04:11 +0000)] 
This should have been part of r9004.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9008

16 years ago- Split up m_ume.c into m_ume/{main,elf,script}.c. This will make merging
Nicholas Nethercote [Wed, 21 Jan 2009 02:26:56 +0000 (02:26 +0000)] 
- Split up m_ume.c into m_ume/{main,elf,script}.c.  This will make merging
  the DARWIN branch easier later.
- Remove the disabled vgtest_ume test, it's very unlikely it'll ever work
  again.
- Move VG_(find_auxv) to initimg-linux.c, the only place it's used, and make
  it static.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9004

16 years agoA couple more changes to fix the conditional building of DRD tests.
Nicholas Nethercote [Tue, 20 Jan 2009 22:54:50 +0000 (22:54 +0000)] 
A couple more changes to fix the conditional building of DRD tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9002

16 years agoAdded yet another output variant.
Bart Van Assche [Tue, 20 Jan 2009 14:29:52 +0000 (14:29 +0000)] 
Added yet another output variant.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9001

16 years agoAdded yet another output variant.
Bart Van Assche [Tue, 20 Jan 2009 14:25:22 +0000 (14:25 +0000)] 
Added yet another output variant.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9000

16 years agoElaborated prereq clauses.
Bart Van Assche [Tue, 20 Jan 2009 14:18:29 +0000 (14:18 +0000)] 
Elaborated prereq clauses.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8999

16 years agoMade compilation of multiple tests conditional.
Bart Van Assche [Tue, 20 Jan 2009 14:02:22 +0000 (14:02 +0000)] 
Made compilation of multiple tests conditional.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8998

16 years agoAdded automake conditional HAVE_PTHREAD_MUTEX_TIMEDLOCK.
Bart Van Assche [Tue, 20 Jan 2009 14:01:16 +0000 (14:01 +0000)] 
Added automake conditional HAVE_PTHREAD_MUTEX_TIMEDLOCK.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8997

16 years agoOnly call pthread_rwlock_timedwrlock() or pthread_rwlock_timedrdlock() if supported.
Bart Van Assche [Tue, 20 Jan 2009 13:57:50 +0000 (13:57 +0000)] 
Only call pthread_rwlock_timedwrlock() or pthread_rwlock_timedrdlock() if supported.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8996

16 years agoAdded configure tests for optional POSIX threads functionality.
Bart Van Assche [Tue, 20 Jan 2009 13:45:38 +0000 (13:45 +0000)] 
Added configure tests for optional POSIX threads functionality.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8995

16 years agoGenerate default.supp at compile-time, not configure-time.
Nicholas Nethercote [Tue, 20 Jan 2009 06:56:26 +0000 (06:56 +0000)] 
Generate default.supp at compile-time, not configure-time.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8994

16 years agoThe load addresses depend on the platform, not the architecture.
Nicholas Nethercote [Tue, 20 Jan 2009 06:06:52 +0000 (06:06 +0000)] 
The load addresses depend on the platform, not the architecture.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8992

16 years agoVG_ARCH doesn't exist any more, use VG_ARCH_PRI in valgrind.pc.in.
Nicholas Nethercote [Tue, 20 Jan 2009 06:06:20 +0000 (06:06 +0000)] 
VG_ARCH doesn't exist any more, use VG_ARCH_PRI in valgrind.pc.in.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8991

16 years agoMake this file compile without warnings when the PERF_FAST_* macros are
Nicholas Nethercote [Mon, 19 Jan 2009 23:42:45 +0000 (23:42 +0000)] 
Make this file compile without warnings when the PERF_FAST_* macros are
disabled.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8987

16 years agoAdd a comment explaining this test.
Nicholas Nethercote [Mon, 19 Jan 2009 21:33:25 +0000 (21:33 +0000)] 
Add a comment explaining this test.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8984

16 years agoRemoved superfluous dependency.
Bart Van Assche [Mon, 19 Jan 2009 19:58:32 +0000 (19:58 +0000)] 
Removed superfluous dependency.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8983

16 years agoCreate memcheck/tests/linux/ and move some Linux-specific tests
Nicholas Nethercote [Mon, 19 Jan 2009 03:44:19 +0000 (03:44 +0000)] 
Create memcheck/tests/linux/ and move some Linux-specific tests
into it.  Partial merge from DARWIN branch, r8943.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8975

16 years agoCreate memcheck/tests/x86-linux/ and move some platform-specific tests (the
Nicholas Nethercote [Mon, 19 Jan 2009 03:16:59 +0000 (03:16 +0000)] 
Create memcheck/tests/x86-linux/ and move some platform-specific tests (the
scalar* ones) into it.  Partial merge from DARWIN branch, r8943.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8974

16 years agoMerged r8966 (show scanning output during leak checking with -v) from DARWIN
Nicholas Nethercote [Mon, 19 Jan 2009 00:43:34 +0000 (00:43 +0000)] 
Merged r8966 (show scanning output during leak checking with -v) from DARWIN
branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8972

16 years agoMake sure that sigalrm.c compiles correctly on systems that do not have the header...
Bart Van Assche [Fri, 16 Jan 2009 12:07:52 +0000 (12:07 +0000)] 
Make sure that sigalrm.c compiles correctly on systems that do not have the header file <asm/unistd.h>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8969

16 years agoAdded configure test for the header file <asm/unistd.h>.
Bart Van Assche [Fri, 16 Jan 2009 12:06:54 +0000 (12:06 +0000)] 
Added configure test for the header file <asm/unistd.h>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8968

16 years agoObtain current time through time() instead of through clock_gettime(CLOCK_REALTIME...
Bart Van Assche [Fri, 16 Jan 2009 11:57:50 +0000 (11:57 +0000)] 
Obtain current time through time() instead of through clock_gettime(CLOCK_REALTIME), such that this test compiles on systems that do not support CLOCK_REALTIME.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8967

16 years agoRemove an unnecessary #include that breaks the test on Darwin, and update
Nicholas Nethercote [Fri, 16 Jan 2009 07:04:26 +0000 (07:04 +0000)] 
Remove an unnecessary #include that breaks the test on Darwin, and update
the expected output line numbers accordingly.  MERGED FROM DARWIN BRANCH.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8965

16 years agoIntroduce a new type, PtrdiffT. Replace lots of uses of OffT (all those
Nicholas Nethercote [Thu, 15 Jan 2009 21:29:24 +0000 (21:29 +0000)] 
Introduce a new type, PtrdiffT.  Replace lots of uses of OffT (all those
that are memory offsets) with PtrdiffT;  OffT should only be used for file
sizes and offsets.

Change Off64T from a ULong to a Long, as it should be.  Replace some uses
of ULong in the address space manager with Off64T to match.

Also add a comment explaining the meanings of the basic types like Addr,
OffT, SizeT, etc.

Also fix the prototype for VG_(pread) -- the last arg is an OffT, not an
Int.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8959

16 years agoThe SG_GET_TIMEOUT ioctl doesn't write to memory - it returns the
Tom Hughes [Thu, 15 Jan 2009 08:49:09 +0000 (08:49 +0000)] 
The SG_GET_TIMEOUT ioctl doesn't write to memory - it returns the
timeout via it's return value.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8958

16 years agoThe SG_GET_VERSION_NUM ioctl writes to memory rather than reading it.
Tom Hughes [Thu, 15 Jan 2009 08:48:14 +0000 (08:48 +0000)] 
The SG_GET_VERSION_NUM ioctl writes to memory rather than reading it.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8957

16 years agoCompress the file passed as the third argument before attaching it to the outgoing...
Bart Van Assche [Tue, 13 Jan 2009 09:22:19 +0000 (09:22 +0000)] 
Compress the file passed as the third argument before attaching it to the outgoing e-mail.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8948

16 years agoAdded an additional expected output file.
Bart Van Assche [Tue, 13 Jan 2009 08:22:05 +0000 (08:22 +0000)] 
Added an additional expected output file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8947

16 years agoRuns now fine on systems for which PTHREAD_STACK_MIN > 32768.
Bart Van Assche [Tue, 13 Jan 2009 08:18:59 +0000 (08:18 +0000)] 
Runs now fine on systems for which PTHREAD_STACK_MIN > 32768.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8946

16 years agoDo not only intercept SIGILL during detection of the supported instruction set
Bart Van Assche [Tue, 13 Jan 2009 07:49:14 +0000 (07:49 +0000)] 
Do not only intercept SIGILL during detection of the supported instruction set
on ppc but also SIGFPE. This patch should make instruction set detection work
on the PowerPC 440EPx.
Fixes bug #176926.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8945

16 years agoSSE3 and SSSE3 are two different things, so add a proper SSSE3 feature
Tom Hughes [Mon, 12 Jan 2009 15:26:59 +0000 (15:26 +0000)] 
SSE3 and SSSE3 are two different things, so add a proper SSSE3 feature
test and use that to guard the SSSE3 tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8942

16 years agoChanged single recipient into a list of recipients and fixed mutt subject and attachm...
Bart Van Assche [Mon, 12 Jan 2009 13:06:47 +0000 (13:06 +0000)] 
Changed single recipient into a list of recipients and fixed mutt subject and attachment arguments.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8941

16 years agoAdded to repository.
Bart Van Assche [Mon, 12 Jan 2009 12:52:36 +0000 (12:52 +0000)] 
Added to repository.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8940

16 years agoMade sure that all diff files are processed.
Bart Van Assche [Mon, 12 Jan 2009 11:06:05 +0000 (11:06 +0000)] 
Made sure that all diff files are processed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8939

16 years agoUpdated machine details.
Bart Van Assche [Mon, 12 Jan 2009 11:04:42 +0000 (11:04 +0000)] 
Updated machine details.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8938

16 years agoAdded new nightly build configuration variable: ABT_EVAL.
Bart Van Assche [Mon, 12 Jan 2009 08:23:15 +0000 (08:23 +0000)] 
Added new nightly build configuration variable: ABT_EVAL.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8937

16 years agoRenamed georgia-tech-cellbuzz.* to georgia-tech-cellbuzz-cross.*.
Bart Van Assche [Sun, 11 Jan 2009 19:01:12 +0000 (19:01 +0000)] 
Renamed georgia-tech-cellbuzz.* to georgia-tech-cellbuzz-cross.*.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8934

16 years agoFixed typo (a space was lost by copying text between shell sessions).
Bart Van Assche [Sun, 11 Jan 2009 16:16:14 +0000 (16:16 +0000)] 
Fixed typo (a space was lost by copying text between shell sessions).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8933

16 years agoThe blockfault regression test now passes on 64 bit systems too.
Bart Van Assche [Sat, 10 Jan 2009 09:34:13 +0000 (09:34 +0000)] 
The blockfault regression test now passes on 64 bit systems too.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8932

16 years agoAdd signalfd4 support.
Tom Hughes [Fri, 9 Jan 2009 16:42:51 +0000 (16:42 +0000)] 
Add signalfd4 support.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8930

16 years agoSort file names alphabetically before processing the diff files.
Bart Van Assche [Thu, 8 Jan 2009 13:29:51 +0000 (13:29 +0000)] 
Sort file names alphabetically before processing the diff files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8924

16 years agoMade DRD regression pass when the glibc-debuginfo package is installed.
Bart Van Assche [Thu, 8 Jan 2009 12:50:57 +0000 (12:50 +0000)] 
Made DRD regression pass when the glibc-debuginfo package is installed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8923

16 years agotrunk/nightly/bin/nightly
Nicholas Nethercote [Thu, 8 Jan 2009 06:24:13 +0000 (06:24 +0000)] 
trunk/nightly/bin/nightly
    Use '.' instead of 'source', because that's how /bin/sh does it.  This
    should make the script more reliable on systems that don't have bash as
    the /bin/sh, eg. Ubuntu and Debian.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8920

16 years agotrunk/memcheck/tests/Makefile.am
Nicholas Nethercote [Thu, 8 Jan 2009 06:07:05 +0000 (06:07 +0000)] 
trunk/memcheck/tests/Makefile.am
trunk/memcheck/tests/vcpu_bz2.c
trunk/memcheck/tests/vcpu_bz2.vgtest
    vcpu_bz2.c was (I think) an "svn copy" of perf/bz2.c.  Because it's a
    copy, the two can get out of sync, which was a problem with Greg
    Parker's Darwin patch.  So we remove vcpu_bz2.c, and make
    vcpu_bz2.vgtest invoke perf/bz2 directly.

trunk/cachegrind/tests/wrap5.c
trunk/cachegrind/tests/Makefile.am
trunk/cachegrind/tests/wrap5.vgtest
    wrap5.c was likewise an "svn copy" of memcheck/tests/wrap5.c, so we do
    the equivalent thing with it.

trunk/Makefile.am
    Fix a typo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8919

16 years agoHandle __NR_socketpair in Ptrcheck.
Julian Seward [Wed, 7 Jan 2009 09:35:10 +0000 (09:35 +0000)] 
Handle __NR_socketpair in Ptrcheck.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8917