]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoFix bogus asm constraints in jm-insns.c. Fixes #263919.
Julian Seward [Wed, 27 Apr 2011 11:33:44 +0000 (11:33 +0000)] 
Fix bogus asm constraints in jm-insns.c.  Fixes #263919.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoAdd alternative expected output cases for more recent glibcs (eg,
Julian Seward [Wed, 27 Apr 2011 11:11:22 +0000 (11:11 +0000)] 
Add alternative expected output cases for more recent glibcs (eg,
2.12), which print a minus sign for NaNs.  Fixes #262989.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoFix a bunch of printf format-string warnings when compiling this "-m64".
Julian Seward [Wed, 27 Apr 2011 08:09:37 +0000 (08:09 +0000)] 
Fix a bunch of printf format-string warnings when compiling this "-m64".

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

14 years agoFix a type mismatch that gcc-4.6 warns about.
Julian Seward [Tue, 26 Apr 2011 10:23:54 +0000 (10:23 +0000)] 
Fix a type mismatch that gcc-4.6 warns about.

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

14 years agoRemove some unused code that gcc-4.6 warns about.
Julian Seward [Tue, 26 Apr 2011 10:23:33 +0000 (10:23 +0000)] 
Remove some unused code that gcc-4.6 warns about.

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

14 years agoFix a couple of bogus asm constraints observed when trying to build
Julian Seward [Tue, 26 Apr 2011 07:52:44 +0000 (07:52 +0000)] 
Fix a couple of bogus asm constraints observed when trying to build
V with clang-2.9.

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

14 years agoFix a couple of warnings when building the regtests.
Julian Seward [Thu, 21 Apr 2011 23:05:49 +0000 (23:05 +0000)] 
Fix a couple of warnings when building the regtests.

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

14 years agoMake reading of line number info from LLVM-2.9-generated Dwarf3 work.
Julian Seward [Thu, 21 Apr 2011 08:55:51 +0000 (08:55 +0000)] 
Make reading of line number info from LLVM-2.9-generated Dwarf3 work.

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

14 years agoChange a bunch of < > style includes to " " style.
Julian Seward [Wed, 20 Apr 2011 11:54:32 +0000 (11:54 +0000)] 
Change a bunch of < > style includes to " " style.

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

14 years agoLinux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards <bradh...
Bart Van Assche [Mon, 18 Apr 2011 10:37:56 +0000 (10:37 +0000)] 
Linux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards <bradh@frogmouth.net>).

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

14 years agoFix bogus .size directives which are now rejected by binutils 2.21.
Julian Seward [Fri, 15 Apr 2011 21:21:27 +0000 (21:21 +0000)] 
Fix bogus .size directives which are now rejected by binutils 2.21.
Fixes #271043.  (Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoUn-break configure check for VSX (a POWER7 extension). Fixes #271042.
Julian Seward [Fri, 15 Apr 2011 21:16:00 +0000 (21:16 +0000)] 
Un-break configure check for VSX (a POWER7 extension).  Fixes #271042.

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

14 years agoMark this as executable. Followup for #267630.
Julian Seward [Fri, 15 Apr 2011 12:33:14 +0000 (12:33 +0000)] 
Mark this as executable.  Followup for #267630.

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

14 years agoAdd support for IBM Power ISA 2.06 -- stage 1. Valgrind-side changes
Julian Seward [Fri, 15 Apr 2011 11:57:05 +0000 (11:57 +0000)] 
Add support for IBM Power ISA 2.06 -- stage 1.  Valgrind-side changes
and test cases. Bug #267630 and followup fix #270794.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoFollowup fix for r11693: add a file that was missed.
Julian Seward [Wed, 13 Apr 2011 16:05:35 +0000 (16:05 +0000)] 
Followup fix for r11693: add a file that was missed.
Related to #270115.    (Florian Krohm, britzel@acm.org)

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

14 years agos390x: reconsider "long displacement" requirement -- hwcaps detection
Julian Seward [Wed, 13 Apr 2011 15:40:10 +0000 (15:40 +0000)] 
s390x: reconsider "long displacement" requirement -- hwcaps detection
changes.  See #268620.  (Florian Krohm, britzel@acm.org)

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

14 years agoTest cases for #270082 (s390x: Make sure to point the PSW address to
Julian Seward [Wed, 13 Apr 2011 15:15:52 +0000 (15:15 +0000)] 
Test cases for #270082 (s390x: Make sure to point the PSW address to
the next address on SIGILL)
(Christian Borntraeger <borntraeger@de.ibm.com>)

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

14 years agos390x: rewrite some testcases. To make my testing and debugging life
Julian Seward [Wed, 13 Apr 2011 14:57:44 +0000 (14:57 +0000)] 
s390x: rewrite some testcases.  To make my testing and debugging life
simpler, I've rewritten those testcases from none/tests/s390x that
require binutils to recognize opcodes defined in the
extended-immediate and general-instruction-extension facilities. As a
side effect this change removes the special casing in
none/tests/s390x/Makefile.am and the configury bits to support it.
Fixes #270115.  (Florian Krohm, britzel@acm.org)

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

14 years agotimerfd-syscall regression test: Allow even more scheduler variation.
Bart Van Assche [Tue, 12 Apr 2011 10:28:31 +0000 (10:28 +0000)] 
timerfd-syscall regression test: Allow even more scheduler variation.

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

14 years agoGet rid of shadowing causing a perl warning. Minor fallout from
Julian Seward [Mon, 11 Apr 2011 22:14:03 +0000 (22:14 +0000)] 
Get rid of shadowing causing a perl warning.  Minor fallout from
r11686.

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

14 years agoMake MacOS builds work again following fixes for #259977
Julian Seward [Mon, 11 Apr 2011 22:08:06 +0000 (22:08 +0000)] 
Make MacOS builds work again following fixes for #259977
(revs 11687,8,9)

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

14 years agoAdd an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
Julian Seward [Mon, 11 Apr 2011 21:26:27 +0000 (21:26 +0000)] 
Add an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
for ppc32-linux, that works for gcc >= 4.4.  Related to #259977.
(modified version of patch from Maynard Johnson <maynardj@us.ibm.com>)

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

14 years agoAdd an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
Julian Seward [Mon, 11 Apr 2011 18:36:34 +0000 (18:36 +0000)] 
Add an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
for ppc32-linux, that works for gcc >= 4.4.  Related to #259977.

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

14 years agoCreate new module m_libcsetjmp, which wraps up uses of
Julian Seward [Mon, 11 Apr 2011 16:17:51 +0000 (16:17 +0000)] 
Create new module m_libcsetjmp, which wraps up uses of
__builtin_setjmp and __builtin_longjmp so that they can be selectively
replaced, on a platform by platform basis.  Does not change any
functionality.  Related to #259977.

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

14 years agoOn OSX, post-process the tool executables to adjust the Mach-O headers
Julian Seward [Wed, 6 Apr 2011 11:17:16 +0000 (11:17 +0000)] 
On OSX, post-process the tool executables to adjust the Mach-O headers
in certain circumstances.  This works around a bug in the linker that
ships in Xcode 4.0.0 and 4.0.1 causing the 64-bit tool executables to
segfault at startup.  Fixes #267997.

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

14 years agoTestcases for s390x conditional load and store. See #269209.
Julian Seward [Tue, 5 Apr 2011 13:20:53 +0000 (13:20 +0000)] 
Testcases for s390x conditional load and store.  See #269209.
(Christian Borntraeger, borntraeger@de.ibm.com)

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

14 years agoAdd s390x-esque test for folding Iop_And16. From #268513 comment 3.
Julian Seward [Tue, 5 Apr 2011 11:15:28 +0000 (11:15 +0000)] 
Add s390x-esque test for folding Iop_And16.  From #268513 comment 3.
(Florian Krohm, britzel@acm.org)

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

14 years agoMade the line numbers in exp-ptrcheck/tests/partial.c and the regression test output...
Bart Van Assche [Mon, 4 Apr 2011 10:15:33 +0000 (10:15 +0000)] 
Made the line numbers in exp-ptrcheck/tests/partial.c and the regression test output match again.

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

14 years agogit-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682
Bart Van Assche [Sun, 3 Apr 2011 17:42:19 +0000 (17:42 +0000)] 
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682

14 years agoAlso consider libpthread when testing for functions. Removed test for floor().
Bart Van Assche [Sun, 3 Apr 2011 16:46:01 +0000 (16:46 +0000)] 
Also consider libpthread when testing for functions. Removed test for floor().

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 30 Mar 2011 18:59:56 +0000 (18:59 +0000)] 
Updated Subversion ignore list.

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

14 years agoGeneralized Subversion ignore lists.
Bart Van Assche [Wed, 30 Mar 2011 18:58:40 +0000 (18:58 +0000)] 
Generalized Subversion ignore lists.

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

14 years agoFix yet another gcc-4.6 assigned-to-but-not-used warning.
Julian Seward [Tue, 29 Mar 2011 17:05:09 +0000 (17:05 +0000)] 
Fix yet another gcc-4.6 assigned-to-but-not-used warning.

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

14 years agotimerfd-syscall regression test: Allow even more scheduler variation.
Bart Van Assche [Tue, 29 Mar 2011 10:56:32 +0000 (10:56 +0000)] 
timerfd-syscall regression test: Allow even more scheduler variation.

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

14 years agoRemove a bunch more warnings generated by gcc-4.6 about dead
Julian Seward [Mon, 28 Mar 2011 21:19:00 +0000 (21:19 +0000)] 
Remove a bunch more warnings generated by gcc-4.6 about dead
assignments ("[-Wunused-but-set-variable]"), in the test suite.

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

14 years agoRemove a bunch more warnings generated by gcc-4.6 about dead
Julian Seward [Mon, 28 Mar 2011 20:33:52 +0000 (20:33 +0000)] 
Remove a bunch more warnings generated by gcc-4.6 about dead
assignments ("[-Wunused-but-set-variable]"), on ppc32-linux and
ppc64-linux.

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

14 years agoFix up most but not all warnings generated by gcc-4.6 about
Julian Seward [Mon, 28 Mar 2011 16:26:42 +0000 (16:26 +0000)] 
Fix up most but not all warnings generated by gcc-4.6 about
dead assignments ("[-Wunused-but-set-variable]").

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

14 years agoUse two separate assembler argument bindings for loading or storing
Tom Hughes [Mon, 28 Mar 2011 13:51:41 +0000 (13:51 +0000)] 
Use two separate assembler argument bindings for loading or storing
a value in an xmm register as trying to do it with offsets from a
single argument apparently causes problems in newer gcc versions.

Fix to bug #266931.

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

14 years agoFix generated assembler which writes the result to memory to correctly
Tom Hughes [Mon, 28 Mar 2011 13:08:52 +0000 (13:08 +0000)] 
Fix generated assembler which writes the result to memory to correctly
use an =m constraint to indicate that the address will be written to.

Partial fix to bug #266931.

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

14 years agoFix broken inline assembly preventing compilation on RHEL6.
Julian Seward [Mon, 28 Mar 2011 09:12:55 +0000 (09:12 +0000)] 
Fix broken inline assembly preventing compilation on RHEL6.
Fixes #256703.  (Jakub Jelinek, jakub@redhat.com)

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

14 years agoFix broken inline asm in these tests. Fixes #256726.
Julian Seward [Mon, 28 Mar 2011 08:37:19 +0000 (08:37 +0000)] 
Fix broken inline asm in these tests.  Fixes #256726.
(Jakub Jelinek, jakub@redhat.com)

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

14 years agoIntercept strlen in ld.so on x86. Fixes #266961.
Julian Seward [Mon, 28 Mar 2011 08:22:55 +0000 (08:22 +0000)] 
Intercept strlen in ld.so on x86.  Fixes #266961.
(Jakub Jelinek, jakub@redhat.com)

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

14 years agoAdd a test case for non-overwriting of CC_NDEP in shifts by zero.
Julian Seward [Sat, 26 Mar 2011 07:30:39 +0000 (07:30 +0000)] 
Add a test case for non-overwriting of CC_NDEP in shifts by zero.
See #269354.  (Stephen McCamant, smcc@CS.Berkeley.EDU)

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

14 years agoAdd VALGRIND_RESIZEINPLACE_BLOCK() and hence close #267819.
Bart Van Assche [Fri, 25 Mar 2011 20:07:25 +0000 (20:07 +0000)] 
Add VALGRIND_RESIZEINPLACE_BLOCK() and hence close #267819.

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

14 years agoTest separately whether g++ and/or gcc support built-in functions for atomic
Bart Van Assche [Thu, 24 Mar 2011 20:27:54 +0000 (20:27 +0000)] 
Test separately whether g++ and/or gcc support built-in functions for atomic
memory access. Apparently for some distributions gcc 4.2 has that support but
g++ 4.2 doesn't. This patch has been supplied by Florian Krohm.

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

14 years agoAdd support for sys_ptrace. Fixes #269079.
Julian Seward [Thu, 24 Mar 2011 11:34:12 +0000 (11:34 +0000)] 
Add support for sys_ptrace.  Fixes #269079.
(Ulrich Weigand, uweigand@de.ibm.com)

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

14 years agoDefinitions relating to ptrace: replace bogus x86 versions with
Julian Seward [Thu, 24 Mar 2011 11:33:00 +0000 (11:33 +0000)] 
Definitions relating to ptrace: replace bogus x86 versions with
arm specific versions.  Partial fix for #269079.
(Ulrich Weigand, uweigand@de.ibm.com)

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

14 years agoTest improvements for FLOGR. Part of #268715.
Julian Seward [Thu, 24 Mar 2011 08:58:42 +0000 (08:58 +0000)] 
Test improvements for FLOGR.  Part of #268715.
(Florian Krohm, britzel@acm.org)

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 18 Mar 2011 18:42:52 +0000 (18:42 +0000)] 
Updated Subversion ignore list.

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

14 years agoLinux/ppc: Added support for the ppoll() system call.
Bart Van Assche [Fri, 18 Mar 2011 17:47:38 +0000 (17:47 +0000)] 
Linux/ppc: Added support for the ppoll() system call.

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

14 years agoWhen handling client munmaps and mprotects with r=0 & w=0, actually
Julian Seward [Thu, 17 Mar 2011 19:39:55 +0000 (19:39 +0000)] 
When handling client munmaps and mprotects with r=0 & w=0, actually
paint the relevant address range as NoAccess rather than ignoring the
event.  This is important for avoiding VTS leaks in libhb_core.
More details in comments in the code.

Also rename the _noaccess_ painters that do nothing to make it clearer
that they do nothing :-)

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

14 years agoRemoved an obsolete configure test.
Bart Van Assche [Thu, 17 Mar 2011 11:01:00 +0000 (11:01 +0000)] 
Removed an obsolete configure test.

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

14 years agoReplaced a Unicode character by an ASCII character in a source code comment.
Bart Van Assche [Thu, 17 Mar 2011 11:00:11 +0000 (11:00 +0000)] 
Replaced a Unicode character by an ASCII character in a source code comment.

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

14 years agoMoved two Linux-specific syscalls to the linux subdirectory.
Bart Van Assche [Thu, 17 Mar 2011 10:57:49 +0000 (10:57 +0000)] 
Moved two Linux-specific syscalls to the linux subdirectory.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Thu, 17 Mar 2011 10:50:33 +0000 (10:50 +0000)] 
Updated Subversion ignore list.

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

14 years agoFixed a recently introduced compiler warning.
Bart Van Assche [Thu, 17 Mar 2011 10:24:53 +0000 (10:24 +0000)] 
Fixed a recently introduced compiler warning.

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

14 years agoUn-break drd/tests/tc23_bogus_condwait.
Bart Van Assche [Thu, 17 Mar 2011 10:18:22 +0000 (10:18 +0000)] 
Un-break drd/tests/tc23_bogus_condwait.

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

14 years agoYet another attempt to make the timerfd-syscall test reliable.
Bart Van Assche [Thu, 17 Mar 2011 07:45:46 +0000 (07:45 +0000)] 
Yet another attempt to make the timerfd-syscall test reliable.

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

14 years agoReplaced busy-waiting by waiting on a condition variable.
Bart Van Assche [Thu, 17 Mar 2011 07:39:00 +0000 (07:39 +0000)] 
Replaced busy-waiting by waiting on a condition variable.

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

14 years agoFix compile warnings (missing prototypes for malloc, or some such).
Julian Seward [Wed, 16 Mar 2011 10:44:13 +0000 (10:44 +0000)] 
Fix compile warnings (missing prototypes for malloc, or some such).

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

14 years agoSome fixes for the faultstatus testcase. Fixes #253206.
Julian Seward [Tue, 15 Mar 2011 08:13:08 +0000 (08:13 +0000)] 
Some fixes for the faultstatus testcase.  Fixes #253206.
(Christian Borntraeger, borntraeger@de.ibm.com)

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

14 years agoBuild fix for older s390x-linux assemblers. Fixes #264800.
Julian Seward [Mon, 14 Mar 2011 09:53:44 +0000 (09:53 +0000)] 
Build fix for older s390x-linux assemblers.  Fixes #264800.
(Florian Krohm, britzel@acm.org)

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

14 years agoUpdated modeline and copyright statement in DRD source files.
Bart Van Assche [Sun, 13 Mar 2011 12:02:44 +0000 (12:02 +0000)] 
Updated modeline and copyright statement in DRD source files.

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

14 years agoAvoid that small time variations make the timerfd-syscall regression test fail.
Bart Van Assche [Sun, 13 Mar 2011 09:42:56 +0000 (09:42 +0000)] 
Avoid that small time variations make the timerfd-syscall regression test fail.

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

14 years agoDRD: Report an error if --free-is-write=yes is used on a program invoking custom...
Bart Van Assche [Sun, 13 Mar 2011 09:08:10 +0000 (09:08 +0000)] 
DRD: Report an error if --free-is-write=yes is used on a program invoking custom memory allocator client requests.

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

14 years agoAdded yet another regression test.
Bart Van Assche [Sun, 13 Mar 2011 09:04:21 +0000 (09:04 +0000)] 
Added yet another regression test.

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

14 years agoread_and_free_race test: Reduced number of stack frames to three.
Bart Van Assche [Sat, 12 Mar 2011 16:28:29 +0000 (16:28 +0000)] 
read_and_free_race test: Reduced number of stack frames to three.

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

14 years agoAdded more regression tests.
Bart Van Assche [Sat, 12 Mar 2011 16:10:33 +0000 (16:10 +0000)] 
Added more regression tests.

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

14 years agoDRD: Restored --free-is-write support and fixed the bug that was present in the previ...
Bart Van Assche [Sat, 12 Mar 2011 14:26:01 +0000 (14:26 +0000)] 
DRD: Restored --free-is-write support and fixed the bug that was present in the previous implementation. Still needs further testing though.

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

14 years agoDRD: Added command-line option --trace-hb for tracing ANNOTATE_HAPPENS_BEFORE()/AFTER().
Bart Van Assche [Sat, 12 Mar 2011 14:07:09 +0000 (14:07 +0000)] 
DRD: Added command-line option --trace-hb for tracing ANNOTATE_HAPPENS_BEFORE()/AFTER().

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

14 years agoAdded --free-is-write stress test.
Bart Van Assche [Sat, 12 Mar 2011 14:02:06 +0000 (14:02 +0000)] 
Added --free-is-write stress test.

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

14 years agoDRD: Always invoke VG_(cli_free)() before the stop_using_mem callback.
Bart Van Assche [Sat, 12 Mar 2011 12:43:39 +0000 (12:43 +0000)] 
DRD: Always invoke VG_(cli_free)() before the stop_using_mem callback.

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

14 years agoDRD: Fixed an assertion failure triggered by setting the environment variable DRD_VER...
Bart Van Assche [Sat, 12 Mar 2011 12:37:46 +0000 (12:37 +0000)] 
DRD: Fixed an assertion failure triggered by setting the environment variable DRD_VERIFY_CONFLICT_SET. This environment variable is a debugging help.

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

14 years agoDRD: More source code cleanup (constant propagation).
Bart Van Assche [Sat, 12 Mar 2011 12:34:44 +0000 (12:34 +0000)] 
DRD: More source code cleanup (constant propagation).

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

14 years agoDRD: Allocate thread arguments again on the stack.
Bart Van Assche [Sat, 12 Mar 2011 11:01:06 +0000 (11:01 +0000)] 
DRD: Allocate thread arguments again on the stack.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Sat, 12 Mar 2011 10:37:18 +0000 (10:37 +0000)] 
Updated Subversion ignore list.

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

14 years agoAdded AC_LANG_SOURCE() invocations where appropriate.
Bart Van Assche [Sat, 12 Mar 2011 10:36:35 +0000 (10:36 +0000)] 
Added AC_LANG_SOURCE() invocations where appropriate.

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

14 years agoAdd free-is-write functionality (experimental, not enabled by default).
Julian Seward [Fri, 11 Mar 2011 21:06:59 +0000 (21:06 +0000)] 
Add free-is-write functionality (experimental, not enabled by default).

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

14 years agoUse DRD's annotate_smart_pointer regtest to check against regressions
Julian Seward [Fri, 11 Mar 2011 20:02:47 +0000 (20:02 +0000)] 
Use DRD's annotate_smart_pointer regtest to check against regressions
of #243935.

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

14 years agoNB: this is an temporary fix, until such time as bug 243935 is fully
Julian Seward [Fri, 11 Mar 2011 19:10:48 +0000 (19:10 +0000)] 
NB: this is an temporary fix, until such time as bug 243935 is fully
resolved.

Add a client request, ANNOTATE_HAPPENS_BEFORE_FORGET_ALL, to notify
Helgrind that it can forget about any h-b edges previously associated
with the specified tag, and release associated resources.

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

14 years agoChange the semantics of ANNOTATE_HAPPENS_BEFORE from 'overwrite' to
Julian Seward [Fri, 11 Mar 2011 18:38:12 +0000 (18:38 +0000)] 
Change the semantics of ANNOTATE_HAPPENS_BEFORE from 'overwrite' to
'add' behaviour, w.r.t. any h-b edges associated with the
synchronisation object prior to the call.  This brings the behaviour
into line with DRD and TSan, and is required for correct annotation of
thread safe reference counting.  It fixes #243935 -- at least, the
original bug as discussed in comments 0 and 2.

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

14 years agoFollowup to r11619: more tidying up w.r.t. the renaming of
Julian Seward [Thu, 10 Mar 2011 21:34:21 +0000 (21:34 +0000)] 
Followup to r11619: more tidying up w.r.t. the renaming of
'struct _Thr :: opaque' to 'struct _Thr :: hgthread'.

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

14 years agoCleanup: get rid of univ_tsets as it is no longer needed.
Julian Seward [Thu, 10 Mar 2011 17:40:22 +0000 (17:40 +0000)] 
Cleanup: get rid of univ_tsets as it is no longer needed.

Also, fix bug in del_LockN (segfault when the deleted lock is
the last in the list) exposed by r11620.  (Prior to r11620,
the last lock in the list was never deleted.)

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

14 years agoCleanup: get rid of 'last lock lossage' mechanism, which is commented
Julian Seward [Thu, 10 Mar 2011 15:21:40 +0000 (15:21 +0000)] 
Cleanup: get rid of 'last lock lossage' mechanism, which is commented
out and no longer relevant.

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

14 years agoCleanup: get rid of all mention of a Hardware Bus Lock. This
Julian Seward [Thu, 10 Mar 2011 15:20:10 +0000 (15:20 +0000)] 
Cleanup: get rid of all mention of a Hardware Bus Lock.  This
no longer exists.

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

14 years agoMinor cleanup (no functional change): rename 'struct _Thr :: opaque'
Julian Seward [Thu, 10 Mar 2011 15:14:37 +0000 (15:14 +0000)] 
Minor cleanup (no functional change): rename 'struct _Thr :: opaque'
to 'hgthread', since that's what it is really.

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

14 years agoBring avg translation size statement closer to reality, for
Julian Seward [Thu, 10 Mar 2011 15:01:14 +0000 (15:01 +0000)] 
Bring avg translation size statement closer to reality, for
amd64-linux with --smc-check=all.  350 would be better, but H already
soaks up so much space that a low-side of 320 seems prudent.

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

14 years agoProcess PDB files with a path that contains spaces properly.
Bart Van Assche [Thu, 10 Mar 2011 12:49:50 +0000 (12:49 +0000)] 
Process PDB files with a path that contains spaces properly.

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

14 years ago'make dist' fixes following s390x-linux merge. (Christian Borntraeger
Julian Seward [Thu, 10 Mar 2011 12:36:09 +0000 (12:36 +0000)] 
'make dist' fixes following s390x-linux merge.  (Christian Borntraeger
<borntraeger@de.ibm.com>)

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

14 years agoDRD: Added an output variant for test pth_detached3.
Bart Van Assche [Wed, 9 Mar 2011 18:27:25 +0000 (18:27 +0000)] 
DRD: Added an output variant for test pth_detached3.

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

14 years agoDRD: Report an error if an invalid argument is passed to pthread_detach(). Do not...
Bart Van Assche [Wed, 9 Mar 2011 17:53:28 +0000 (17:53 +0000)] 
DRD: Report an error if an invalid argument is passed to pthread_detach(). Do not assume that pthread_detach() returns an error code if its argument is invalid. Should fix #267968.

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

14 years agoDRD: Added a regression test.
Bart Van Assche [Wed, 9 Mar 2011 17:50:34 +0000 (17:50 +0000)] 
DRD: Added a regression test.

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

14 years agoDRD: Fixed a race condition triggered by invoking pthread_detach() with an argument...
Bart Van Assche [Tue, 8 Mar 2011 18:34:44 +0000 (18:34 +0000)] 
DRD: Fixed a race condition triggered by invoking pthread_detach() with an argument not equal to pthread_self(). Potential fix for #267968.

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

14 years agoDRD: Removed an obsolete comment.
Bart Van Assche [Tue, 8 Mar 2011 18:32:36 +0000 (18:32 +0000)] 
DRD: Removed an obsolete comment.

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

14 years agoDRD: Source code cleanup.
Bart Van Assche [Tue, 8 Mar 2011 17:53:45 +0000 (17:53 +0000)] 
DRD: Source code cleanup.

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

14 years agoReplace the structural equality function for WordVecs with a more
Julian Seward [Mon, 7 Mar 2011 19:13:33 +0000 (19:13 +0000)] 
Replace the structural equality function for WordVecs with a more
efficient one.  n-i-bz.
(Philippe Waroquiers, philippe.waroquiers@skynet.be).

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Mon, 7 Mar 2011 18:28:38 +0000 (18:28 +0000)] 
Updated Subversion ignore list.

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

14 years agoAdded file header and adjusted indentation.
Bart Van Assche [Mon, 7 Mar 2011 18:00:26 +0000 (18:00 +0000)] 
Added file header and adjusted indentation.

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

14 years agoMake this executable.
Julian Seward [Mon, 7 Mar 2011 16:48:15 +0000 (16:48 +0000)] 
Make this executable.

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

14 years agoUnbreak 'make dist' following recent commits.
Julian Seward [Mon, 7 Mar 2011 16:42:02 +0000 (16:42 +0000)] 
Unbreak 'make dist' following recent commits.

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