127 Commits

Author SHA1 Message Date
Bart Van Assche
fc97849a4c Switched from the Apache License to a BSD-style license in order to reduce the number of licences that applies to the source code of Valgrind.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9122
2009-02-08 17:42:12 +00:00
Bart Van Assche
f93d44456f 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
2009-01-30 17:52:21 +00:00
Nicholas Nethercote
ed322feb84 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
2009-01-22 21:56:32 +00:00
Nicholas Nethercote
74e8c02cea A couple more changes to fix the conditional building of DRD tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9002
2009-01-20 22:54:50 +00:00
Bart Van Assche
b10b90dd0d Added yet another output variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9001
2009-01-20 14:29:52 +00:00
Bart Van Assche
ce5fd5bf82 Added yet another output variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9000
2009-01-20 14:25:22 +00:00
Bart Van Assche
4e7dcd66bc Elaborated prereq clauses.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8999
2009-01-20 14:18:29 +00:00
Bart Van Assche
c50d8622b9 Made compilation of multiple tests conditional.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8998
2009-01-20 14:02:22 +00:00
Bart Van Assche
a20274fcb3 Only call pthread_rwlock_timedwrlock() or pthread_rwlock_timedrdlock() if supported.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8996
2009-01-20 13:57:50 +00:00
Bart Van Assche
8ba5aa108b Removed superfluous dependency.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8983
2009-01-19 19:58:32 +00:00
Bart Van Assche
78c4a2893b 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
2009-01-16 12:07:52 +00:00
Bart Van Assche
2dd0d7d87f 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
2009-01-16 11:57:50 +00:00
Nicholas Nethercote
5ad1dd61f9 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
2009-01-15 21:29:24 +00:00
Bart Van Assche
06ee727a0e Added an additional expected output file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8947
2009-01-13 08:22:05 +00:00
Bart Van Assche
9b07e92592 Runs now fine on systems for which PTHREAD_STACK_MIN > 32768.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8946
2009-01-13 08:18:59 +00:00
Bart Van Assche
fe6a1e5755 Made DRD regression pass when the glibc-debuginfo package is installed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8923
2009-01-08 12:50:57 +00:00
Bart Van Assche
fad4bf3d27 Polished manual.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8892
2009-01-02 13:29:32 +00:00
Bart Van Assche
1a82965231 Updated to do list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8887
2008-12-31 09:55:44 +00:00
Bart Van Assche
d69b1fc884 Moved two define's, such that the ABIWARNING appears immediately before the enum declaration it applies to.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8884
2008-12-25 09:31:40 +00:00
Bart Van Assche
2b296eff40 Made sure that the file bar_trivial.stdout.exp gets included in the distribution tarball.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8883
2008-12-25 09:09:59 +00:00
Bart Van Assche
fec153f2f1 Renamed a variable and removed two statements that were commented out.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8880
2008-12-24 09:45:41 +00:00
Julian Seward
7b43e1d6b0 Un-break 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8878
2008-12-23 20:46:12 +00:00
Julian Seward
5221680195 Comment out unused code so as to get a warning free build.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8868
2008-12-23 02:31:22 +00:00
Bart Van Assche
8e077fe8b1 Updated after merge of Helgrind from YARD branch to trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8862
2008-12-22 07:10:44 +00:00
Bart Van Assche
975dd0de65 Added prereq clause.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8857
2008-12-21 17:44:32 +00:00
Bart Van Assche
9fc7c603a3 circular_buffer test now passes on systems with and without built-in support for atomic operations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8856
2008-12-21 17:24:21 +00:00
Bart Van Assche
a040d2e7b4 Fixed bug in vector clock updating for semaphores with non-zero initial value.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8854
2008-12-21 17:20:22 +00:00
Bart Van Assche
a0b0f8bf1e Added command-line option -n, which allows to disable locking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8853
2008-12-21 17:19:05 +00:00
Bart Van Assche
7ee41e9982 Replaced regular increment by atomic increment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8852
2008-12-21 17:16:03 +00:00
Bart Van Assche
a7dbb0d915 Made config.h include path consistent with the other regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8851
2008-12-21 16:10:36 +00:00
Bart Van Assche
4a2635aaba Finished renaming of boost_threads into boost_thread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8849
2008-12-21 16:08:36 +00:00
Bart Van Assche
8ca92c847d Added another regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8837
2008-12-17 19:21:17 +00:00
Bart Van Assche
66d69c2025 Fixed semaphore vector clock updating / simplified semaphore tracing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8836
2008-12-17 19:20:13 +00:00
Bart Van Assche
56da8e035f Fixed grammar / split a paragraph in two.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8835
2008-12-17 19:15:58 +00:00
Bart Van Assche
1d166694b6 Added a paragraph about the Boost.Thread library.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8833
2008-12-17 19:10:06 +00:00
Bart Van Assche
7535e7be94 Fixed regression test tc20_verifywrap2, which was broken through r8829.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8830
2008-12-17 07:32:09 +00:00
Julian Seward
8a9f6dd234 Fix some format string mismatch warnings, associated with r8825.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8829
2008-12-17 01:21:06 +00:00
Bart Van Assche
98c5646427 Added more semaphore tracing info.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8825
2008-12-14 08:56:49 +00:00
Bart Van Assche
092f96902c Simplified test program.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8802
2008-11-27 17:48:36 +00:00
Bart Van Assche
8a3a752e2b Reran SPLASH2 benchmark and updated results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8799
2008-11-22 16:19:11 +00:00
Bart Van Assche
15c571b48a Updated notes section.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8797
2008-11-21 19:18:47 +00:00
Bart Van Assche
299848c52e Added prereq clause.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8789
2008-11-19 17:51:44 +00:00
Bart Van Assche
4ffcaf805d Added bar_bad and bar_trivial to the regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8779
2008-11-17 17:38:28 +00:00
Bart Van Assche
d2dac1ea80 Updated expected output after spelling fix in drd_barrier.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8778
2008-11-17 17:37:08 +00:00
Bart Van Assche
76d98e2895 Renamed boost_threads* into boost_thread*.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8777
2008-11-17 17:36:29 +00:00
Bart Van Assche
9a2e5abe9e Print an error message instead of asserting when the count argument of pthread_barrier_init() is zero. Fixed a spelling error in an error message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8776
2008-11-17 17:35:26 +00:00
Bart Van Assche
a4ddba81ca Added regression test for Boost.Threads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8763
2008-11-10 18:54:46 +00:00
Julian Seward
cac5a4e9b1 Update expected outputs following a (trivial) change in the source of
tc09 in r8753.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8756
2008-11-10 01:16:46 +00:00
Bart Van Assche
0a25936ab6 Replaced test for FILE::_lock by a more direct test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8670
2008-10-13 19:22:35 +00:00
Bart Van Assche
49456aef12 Removed #define _IO_MTSAFE_IO again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8662
2008-10-11 19:25:18 +00:00