Bart Van Assche
b24f4e99f1
Added another POSIX reader/writer lock test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8031
2008-05-10 12:52:02 +00:00
Bart Van Assche
eb6202ecdb
Changed return type of some of the bitmap functions from UWord to Bool.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8030
2008-05-10 11:19:10 +00:00
Bart Van Assche
6397ddafb3
Added -Winline to the compiler flags. Made sure that all functions in drd_bitmap_test.c that can be inlined are actually inlined.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8029
2008-05-10 11:07:14 +00:00
Bart Van Assche
a79d26b8df
Added -Winline to the compiler flags.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8028
2008-05-10 11:06:35 +00:00
Bart Van Assche
3d024d8acd
Added regression test for the C++ operators new, new[], delete and delete[].
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8027
2008-05-10 08:48:14 +00:00
Bart Van Assche
7219fd25ab
Reordered declarations.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8026
2008-05-10 08:22:45 +00:00
Bart Van Assche
446364b774
Bug fix: bm_equal() now also works if the first argument contains one or more bitmap structures that are entirely zero.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8025
2008-05-10 08:22:20 +00:00
Bart Van Assche
ae3d166080
Added more tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8024
2008-05-10 08:21:07 +00:00
Bart Van Assche
4fe91a3d6f
Added -O2 to the compilation flags of drd_bitmap_test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8023
2008-05-10 08:20:22 +00:00
Bart Van Assche
2d73424f8d
Converted VG_(assert_fail)() to ANSI C.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8022
2008-05-10 05:49:58 +00:00
Julian Seward
4a6be60077
Oops. Don't die on {x86,amd64}-linux when doing --track-origins=yes
...
and --smc-check=all.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8021
2008-05-09 23:26:19 +00:00
Julian Seward
e33553414e
Add a regression test for fxsave.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8019
2008-05-09 21:38:12 +00:00
Julian Seward
cf46146797
Add a test case for #157748 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8018
2008-05-09 19:46:55 +00:00
Julian Seward
ac73e42a1f
Update the list of bugs to be fixed.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8017
2008-05-08 14:02:56 +00:00
Julian Seward
c66a1fd660
Use $(AM_FLAG_M3264_PRI) everywhere CFLAGS is explicitly set.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8016
2008-05-07 22:16:50 +00:00
Julian Seward
1cfc256f1d
Add missing words to comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8015
2008-05-07 00:23:28 +00:00
Julian Seward
5c6a8cc4dc
Make sure compilation of pth_cancel1.c gets $(AM_FLAG_M3264_PRI).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8014
2008-05-07 00:22:47 +00:00
Julian Seward
15dfc7886d
Build fixes for AIX5.3.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013
2008-05-06 23:01:05 +00:00
Julian Seward
c2de8fa58b
Suppress stack-switching message in XML mode.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8012
2008-05-06 21:01:19 +00:00
Julian Seward
35695d8b1a
Un-break signal frame delivery on ppc64 following recent Memcheck
...
origin tracking changes. This is believed to fix #161628 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8011
2008-05-06 18:14:27 +00:00
Julian Seward
111294590f
Add an expected output for ppc64-linux; probably required due to dodgyness in
...
line number info, either in writing on gcc's part or reading on Valgrind's part.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8010
2008-05-06 16:54:53 +00:00
Julian Seward
f1aae08c46
Why doesn't this sodding language have a half-decent type system?
...
This took me all day to track down. Gimme Haskell any day.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8009
2008-05-06 15:40:32 +00:00
Julian Seward
b012d72856
Add a test for origin tracking through large floating point arrays.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8008
2008-05-06 08:14:57 +00:00
Julian Seward
79c14a0983
Add comments giving an overview of the origin tracking implementation.
...
Also, rename "ocache" to "ocacheL1" to be more consistent with the
comments and the rest of the otag cache code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8007
2008-05-05 09:48:56 +00:00
Julian Seward
edb789f73a
Add documentation on the new --track-origins=no|yes [no] flag.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8006
2008-05-04 23:06:28 +00:00
Bart Van Assche
97036e3ad9
Make sure that the return value of highest_used_stack_address() is a valid stack pointer.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8005
2008-05-04 11:59:01 +00:00
Bart Van Assche
6e2e200228
Fixed compiler warnings.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8004
2008-05-04 08:10:24 +00:00
Bart Van Assche
57478205c9
Disable gcc warnings about shadowed variables when compiling varinfo2.c.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8003
2008-05-04 08:09:44 +00:00
Bart Van Assche
eeb4e09fce
Suppressed most output while the regression test is run.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8002
2008-05-04 07:47:21 +00:00
Bart Van Assche
283d0d3d12
Renamed bm_compare() into bm_equal(). Fixed a bug in bm_equal().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8001
2008-05-04 07:46:20 +00:00
Bart Van Assche
a6c19077a8
Print name of Fedora package that contains /usr/bin/getconf in case /usr/bin/getconf is not found.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8000
2008-05-03 09:35:01 +00:00
Bart Van Assche
95a4f94211
Changed #if defined(platform) tests into #if defined(HAVE_...) tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7999
2008-05-03 09:15:25 +00:00
Bart Van Assche
27e6ce8d8c
Added configure tests for PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_RECURSIVE_NP and PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7998
2008-05-03 09:12:15 +00:00
Bart Van Assche
6e5ecf039e
Reverted last commit since it does not fix anything (unfortunately).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7997
2008-05-03 09:00:40 +00:00
Bart Van Assche
9977e2ee92
Print an error message if /usr/bin/getconf is not found.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7996
2008-05-03 08:34:52 +00:00
Julian Seward
39371c85a5
Remove a bit of unused code.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7995
2008-05-03 05:24:57 +00:00
Julian Seward
f9f7ad0a45
Make sure sp[0] and fp[0] are set in a rarely-taken path. Thanks to
...
Bart for spotting this.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7994
2008-05-02 22:27:07 +00:00
Bart Van Assche
502dbc9d0c
Refined assert statements.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7993
2008-05-02 19:21:02 +00:00
Bart Van Assche
903a3b320a
Added yet another assertion statement.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7992
2008-05-02 19:12:43 +00:00
Bart Van Assche
79247715a5
Postponed call of vg_set_main_thread_state() from /lib/ld-*.so:_start() to the call of main(), the program entry point.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7991
2008-05-02 18:53:33 +00:00
Bart Van Assche
675142af40
Added an assert statement to check the validity of the computed highest used stack address.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7990
2008-05-02 17:27:08 +00:00
Julian Seward
32a83b165a
Dynamically allocate the origin tracking cache as needed (only for
...
runs with --track-origins=yes), rather than having it statically
allocated. This is important because the cache is large (100MB) and
soaking up 100MB of address space for a non-tracking run is not good.
Unfortunately this slows down the origin tracker by 1 to 2 %.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7989
2008-05-02 13:35:29 +00:00
Julian Seward
8c61ca1c09
Re-check complex and fragile bit-twiddling pertaining to indexing into
...
the primary map on 64-bit systems. Add extensive comments and
startup-time assertions.
As a result of this, fix two off-by-one errors in
MC_(helperc_MAKE_STACK_UNINIT) (unlikely to be of much significance,
but still ..). No other errors were found.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7988
2008-05-02 12:35:48 +00:00
Julian Seward
0d5557aee9
Minor cleanups:
...
* remove 'extern' in all the headers, as that is irrelevant and wastes
horizontal space
* fix some 64-bit uncleanness in client(-defined) block handling
* remove unneeded #includes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7987
2008-05-02 11:25:17 +00:00
Julian Seward
4d1716321e
Move the error management code for Memcheck into a new file,
...
mc_errors.c, as it is relatively self contained. This reduces the
size of mc_main.c by about 1350 lines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7986
2008-05-02 10:33:15 +00:00
Julian Seward
f35eb37648
Update expected outputs following merge of branches/OTRACK_BY_INSTRUMENTATION.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7985
2008-05-01 22:34:16 +00:00
Julian Seward
a1289fb4ca
Bump the core/tool iface version number, since the just-merged-in
...
changes for Memcheck origin tracking change the interface (slightly).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7984
2008-05-01 21:43:17 +00:00
Julian Seward
3c25a48a0c
Temporarily work around compilation failures caused by non-definition
...
of __NR_timerfd, pending proper resolution. See
http://bugs.kde.org/show_bug.cgi?id=160907
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7983
2008-05-01 21:22:38 +00:00
Julian Seward
4cae5c3ed5
Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
...
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.
This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output. This
will be fixed.
The core-tool interface is slightly changed. The version number for
the interface needs to be incremented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00
Julian Seward
f3274344b6
Update (minor).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7981
2008-05-01 20:18:39 +00:00