7636 Commits

Author SHA1 Message Date
Bart Van Assche
73db3de513 Suppressed compiler warnings reported by gcc 4.4.x on the source code
of regression tests about intentionally uninitialized variables and
about intentionally freed non-heap memory.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10794
2009-08-12 12:55:56 +00:00
Bart Van Assche
5e1086e053 Fixed gcc warnings about type-punned pointers breaking strict aliasing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10793
2009-08-12 12:52:23 +00:00
Bart Van Assche
8e5dcae801 Added suppression patterns for boost 1.37 (Fedora 11).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10792
2009-08-12 09:45:54 +00:00
Bart Van Assche
fc111dbbc9 Added recently added regression test output files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10791
2009-08-12 09:45:18 +00:00
Bart Van Assche
ecfd26301f Added expected output for glibc 2.10 (Fedora 11). The test tc20_verifywrap2 has to be reviewed -- the results of this test depend on glibc internals, which is not good.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10790
2009-08-12 09:44:43 +00:00
Bart Van Assche
2b6917fab0 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10789
2009-08-12 08:22:54 +00:00
Bart Van Assche
a5b5859976 More expected output updates because of r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10788
2009-08-12 08:21:13 +00:00
Bart Van Assche
684792c22d Modified annotate_ignore_rw test such that it now verifies that
ANNOTATE_IGNORE_READS_AND_WRITES_END() really works.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10787
2009-08-12 07:03:30 +00:00
Nicholas Nethercote
c922a7201d Add a crappy wrapper for access_extended(), one of the more ridiculous
syscalls I've had the displeasure of encountering.  Due to its
ridiculousness, the wrapper misses a PRE_MEM_WRITE check and so can result
in false positives.  The POST_MEM_WRITE update is present, though, so it
shouldn't cause subsequent problems.  Fixes bug 200760.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10786
2009-08-12 02:30:20 +00:00
Nicholas Nethercote
71694b3c20 Darwin .exp fixes following r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10785
2009-08-12 00:32:44 +00:00
Nicholas Nethercote
86be4a7cf3 Update .exp files for r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10784
2009-08-12 00:14:44 +00:00
Nicholas Nethercote
829fbc977d Output tweaks:
- Always print a blank line after significant messages (eg. errors).  This
  makes the handling of blank lines much simpler.

- Don't print full stops at the end of messages.  We mostly don't do it, so
  I got rid of all the remaining ones I could find for consistency.

- Use --leak-check=full rather than --leak-check=yes, for consistency with
  docs and other messages.

- Update partiallydefinedeq.stderr.exp2 for older changes.

This commit only updates the code.  Test updates will follow shortly.  (I'm
separating them so the code changes aren't swamped by the test changes in
the SVN logs.)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10783
2009-08-12 00:14:16 +00:00
Josef Weidendorfer
09d07a0b62 Callgrind: Fix printing of "Summary:" line in finish()
The global cost counters, which are used for printing the
summary line, where zeroed before in init_exec_state(), called
by unwind_thread().

Stack unwinding (i.e. unwind_thread) is also done at instrumentation
state changes, and there, we want the cost counters to be zeroed
(was fix for bug 150606). Do this explicitly now.

PS: The correct fix for bug 150606 is not to zero the cost counters
(we do not really want this at instrumentation state changes), but
to store the current counter values in a "last_instr_state_on_cost"
counter, and use this as the global cost counter on enter for functions
which are left but were not detected to be entered.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10782
2009-08-11 20:53:59 +00:00
Josef Weidendorfer
ea40ea135a Callgrind: On zeroing costs, also set call counters to zero.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10781
2009-08-11 20:53:57 +00:00
Josef Weidendorfer
2cd5fcf5a7 Fix dumping of call cost in tail recursion optimization
When tail recursion optimization is detected (i.e. a jump to the
beginning of the function without creating a new stack frame),
Callgrind collects this as real call (ie. calculates inclusive
call costs), but forgot to dump the call information (the call
type is still left as a jump).
Fixed by also dump call information if inclusive cost is >0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10780
2009-08-11 19:21:25 +00:00
Bart Van Assche
6a68dfd48d Added regression test for ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() and
ANNOTATE_IGNORE_READS_AND_WRITES_END().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10779
2009-08-11 15:00:54 +00:00
Josef Weidendorfer
f75771cc8f Fix bug 199338: callgrind_annotate sorting/thresholds are broken
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10778
2009-08-11 14:45:03 +00:00
Josef Weidendorfer
e247747cc5 Misc fixes for callgrind_annotate
* Patch from bug 198649 (callgrind_annotate doesn't cumulate counters)
  When there were multiple call sites in one line, the aggregated
  call count/cost numbers in the source annotation were wrong
* Callgrind often produces absolute file names.
  Make it work with relative file names requested for annotation from
  the command lines.
* More in sync with parser in KCachegrind: make summary line optional.
  We can also use the "totals:" line for this.
* Count of numbers in summary can be smaller then number of events given

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10777
2009-08-11 14:45:00 +00:00
Julian Seward
abf37ff2dc Move printing of EvM-gc and VTS-gc stats from -v to --stats=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10776
2009-08-11 10:39:25 +00:00
Julian Seward
e0cf1a903c Add pthread spinlock support.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10775
2009-08-11 10:35:58 +00:00
Nicholas Nethercote
bb38e1bb9b add missing scripts
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10774
2009-08-11 01:03:55 +00:00
Nicholas Nethercote
9d2e0f9cbe Count error contexts properly in VG_(unique_error). Avoids the problem seen
of "5 errors from 0 contexts" with leak errors.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10773
2009-08-11 00:52:40 +00:00
Nicholas Nethercote
643cc753ae add a missing script
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10772
2009-08-11 00:18:31 +00:00
Julian Seward
6f3ce096ad Fix some const stuff that gcc-4.4.0 complains about.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10771
2009-08-10 19:39:02 +00:00
Julian Seward
8379ad7f3b parse_type_DIE: push incomplete structure tyents on the type stack,
since gcc-4.4 on Fedora 11 will create DW_TAG_member entries within
it, and we need to have a plausible parent type on the stack.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10770
2009-08-10 18:59:54 +00:00
Bart Van Assche
7ae907a088 Added suppression patterns for the most recent libglib and libQtCore versions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10769
2009-08-10 14:13:12 +00:00
Nicholas Nethercote
675914e025 Try to fix error_counts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10768
2009-08-10 08:25:39 +00:00
Nicholas Nethercote
49d480e3ca Count leak as errors. Fixes bug 152393.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10767
2009-08-10 07:50:00 +00:00
Nicholas Nethercote
8ecd57ded4 Remove unnecessary #includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10766
2009-08-10 07:47:43 +00:00
Nicholas Nethercote
6fd1b000e4 Allow custom blocks to overlap with malloc blocks. Fixes bug 100628.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10765
2009-08-10 07:36:54 +00:00
Nicholas Nethercote
15773b3fbe augment a comment
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10764
2009-08-10 06:47:00 +00:00
Nicholas Nethercote
c90e6fb664 add an item
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10763
2009-08-10 05:11:43 +00:00
Nicholas Nethercote
794810cd02 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10762
2009-08-10 04:07:54 +00:00
Nicholas Nethercote
4ff6260a88 Remove bad explanations of mempool requests from the core manual, just point
to the Memcheck chapter.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10761
2009-08-10 01:43:20 +00:00
Nicholas Nethercote
aeae3a302c wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10760
2009-08-10 01:34:27 +00:00
Nicholas Nethercote
4e495edf4a Make "option" terminology consistent some more. Also tweaked the mempool
Memcheck section a little.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10759
2009-08-10 01:29:14 +00:00
Nicholas Nethercote
0ea383e6b3 Be consistent in the naming of sections describing command-line options.
Also, use "option" rather than "flag" where possible, for consistency.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10758
2009-08-10 01:15:30 +00:00
Nicholas Nethercote
0db63a66bf Remove some cross-references that are broken in the man pages because they
only include a subset of the User Manual.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10757
2009-08-10 00:42:43 +00:00
Nicholas Nethercote
c149a17389 Make usage messages given by -h and man pages consistent for the scripts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10756
2009-08-09 23:27:00 +00:00
Nicholas Nethercote
e3fc6742cd Add an alternative output for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10755
2009-08-08 07:38:25 +00:00
Josef Weidendorfer
e9c296ba6d callgrind_control: be strict on parsing options
Get rid of "-v" as short form of "--version".
Also, help text for dumps/instrumentation shows only the long
versions now. However, '-i on' or '-d dump now!' is still possible.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10754
2009-08-07 23:19:09 +00:00
Nicholas Nethercote
128610128f Remove commas, for consistency with other parts of the manual.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10753
2009-08-07 22:01:49 +00:00
Vince Weaver
f974a1a2f5 Add some clarifications to the exp-bbv manual.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10752
2009-08-07 21:00:05 +00:00
Julian Seward
2c168a6128 Resync after {wq,p}thread_hijack rather than merely doing a check.
Believed to help with, although not fix, the underlying problem in
#192634.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10751
2009-08-07 20:28:58 +00:00
Josef Weidendorfer
aa85156872 callgrind_control: sync manual/man page and script help output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10750
2009-08-07 20:20:41 +00:00
Julian Seward
a5a0b4db75 Update Memcheck expected outputs following r10746 (Darwin variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10749
2009-08-07 19:47:29 +00:00
Julian Seward
428918f88e Update Memcheck expected outputs following r10746 (32-bit variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10748
2009-08-07 19:26:41 +00:00
Julian Seward
2fcd38d5f2 Update Memcheck expected outputs following r10746 (64-bit variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10747
2009-08-07 17:47:42 +00:00
Julian Seward
8ffe2fdefa Tidy up of messaging:
* For all tools and the core, don't show statistics when -v is in
  effect.  Instead, try to restrict -v to mostly user-useful
  stuff.

* A new flag --stats=no|yes [no] produces statistics output instead.

* Fix longstanding problem in that Memcheck's leak checker ran after
  the core's error manager module shut down, thereby not showing use
  counts of leak suppressions.  This fixes #186790.

* As a consequence, the leak checker text output of Memcheck has
  changed a bit -- leak check is done before the final error
  summary is done (much more logical), and the output has been
  tidied up a bit.

* Helgrind, Drd and Ptrcheck now also print "For counts of
  detected and suppressed errors, rerun with: -v", which makes
  them consistent with Memcheck in this regard.  These are
  filtered out by the regtest filter scripts.

For all tools except Memcheck, the regtests are unchanged.  On
Memcheck regtests still fail due to rearrangements of the leak
checker output.  This will be fixed by a followup commit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10746
2009-08-07 15:46:56 +00:00
Nicholas Nethercote
7c5dac3dcf Install all the new man pages. Include them in 'make dist' too (even if
BUILD_ALL_DOCS is false;  we've built them anyway).  Delete them with 'make
distclean' too (and FAQ.txt).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10745
2009-08-07 08:31:58 +00:00