]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoDocument the 'cc' param of VG_(malloc) et al.
Nicholas Nethercote [Wed, 5 Aug 2009 22:51:17 +0000 (22:51 +0000)] 
Document the 'cc' param of VG_(malloc) et al.

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

16 years agoFix Lackey test breakage.
Nicholas Nethercote [Wed, 5 Aug 2009 22:13:23 +0000 (22:13 +0000)] 
Fix Lackey test breakage.

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

16 years agoMore docs build tweaks:
Nicholas Nethercote [Wed, 5 Aug 2009 08:08:18 +0000 (08:08 +0000)] 
More docs build tweaks:

- Actually remove the dead docs/images/massif*.png files (this was meant to
  happen in r10720).

- Inline $TOOL/docs/Makefile.am into $TOOL/Makefile.am for all 10 tools.  10
  fewer Makefile.am files FTW!

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

16 years agoVarious docs build tweaks:
Nicholas Nethercote [Wed, 5 Aug 2009 07:39:45 +0000 (07:39 +0000)] 
Various docs build tweaks:

- Remove roadmap.txt, as we haven't used it for a while and Bugzilla does it
  better.

- Inline docs/{internals,images,xml,lib}/Makefile.am into docs/Makefile.am,
  because they're very simple.  Fewer Makefile.am files is good.

- Remove the dead docs/images/massif*.png files and all references to them.

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

16 years agoUse actual URL links in the BBV docs.
Nicholas Nethercote [Wed, 5 Aug 2009 07:20:15 +0000 (07:20 +0000)] 
Use actual URL links in the BBV docs.

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

16 years agoTweaks to Ptrcheck's manual chapter.
Nicholas Nethercote [Wed, 5 Aug 2009 07:15:28 +0000 (07:15 +0000)] 
Tweaks to Ptrcheck's manual chapter.

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

16 years ago- Rejigged Lackey's manual
Nicholas Nethercote [Wed, 5 Aug 2009 06:57:45 +0000 (06:57 +0000)] 
- Rejigged Lackey's manual
- Made it count calls to main() by default, since _dl_runtime_resolve() no
  longer appears to exist.
- A couple of other minor Lackey things.

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

16 years agoVarious fix-ups for Memcheck's manual chapter.
Nicholas Nethercote [Wed, 5 Aug 2009 06:34:27 +0000 (06:34 +0000)] 
Various fix-ups for Memcheck's manual chapter.

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

16 years agoMove command-line option details after the description of Memcheck's error
Nicholas Nethercote [Wed, 5 Aug 2009 05:11:02 +0000 (05:11 +0000)] 
Move command-line option details after the description of Memcheck's error
messages, since that's an order that will make more sense for a newbie.

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

16 years agoAugment a comment.
Nicholas Nethercote [Wed, 5 Aug 2009 05:05:15 +0000 (05:05 +0000)] 
Augment a comment.

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

16 years agoAdded documentation for --ignore-ranges. It's not very good, though, if
Nicholas Nethercote [Wed, 5 Aug 2009 04:57:44 +0000 (04:57 +0000)] 
Added documentation for --ignore-ranges.  It's not very good, though, if
anyone can explain clearly why it's useful and wants to add that information
that would be helpful.

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

16 years agoPut Memcheck's command line options in the manual in the same order as its
Nicholas Nethercote [Wed, 5 Aug 2009 04:54:51 +0000 (04:54 +0000)] 
Put Memcheck's command line options in the manual in the same order as its
usage message.

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

16 years agoMore Massif manual tweaks.
Nicholas Nethercote [Wed, 5 Aug 2009 04:04:53 +0000 (04:04 +0000)] 
More Massif manual tweaks.

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

16 years agoComment and docs wibbles.
Nicholas Nethercote [Wed, 5 Aug 2009 02:02:31 +0000 (02:02 +0000)] 
Comment and docs wibbles.

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

16 years agoVarious minor tweaks to the distribution docs.
Nicholas Nethercote [Tue, 4 Aug 2009 07:02:54 +0000 (07:02 +0000)] 
Various minor tweaks to the distribution docs.

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

16 years agoAdd a bit more to Massif's manual chapter.
Nicholas Nethercote [Tue, 4 Aug 2009 06:48:09 +0000 (06:48 +0000)] 
Add a bit more to Massif's manual chapter.

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

16 years agoA couple of minor Massif manual improvements.
Nicholas Nethercote [Tue, 4 Aug 2009 06:10:30 +0000 (06:10 +0000)] 
A couple of minor Massif manual improvements.

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

16 years agoOverhaul Massif's manual, and a few minor related things.
Nicholas Nethercote [Tue, 4 Aug 2009 05:59:46 +0000 (05:59 +0000)] 
Overhaul Massif's manual, and a few minor related things.

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

16 years agoVarious clean-ups, mostly in chapter 3.
Nicholas Nethercote [Tue, 4 Aug 2009 05:24:46 +0000 (05:24 +0000)] 
Various clean-ups, mostly in chapter 3.

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

16 years agotweak
Nicholas Nethercote [Tue, 4 Aug 2009 02:35:09 +0000 (02:35 +0000)] 
tweak

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

16 years agoVarious option-related tweaks:
Nicholas Nethercote [Tue, 4 Aug 2009 02:32:55 +0000 (02:32 +0000)] 
Various option-related tweaks:

- Match the ordering of the non-tool-specific options in the usage message
  with the order in the user manual.  As a result, we now always print
  --alignment and --trace-malloc in the core's usage messages, which saves
  malloc-replacing tools from doing it themselves (and brings it in line
  with options that only apply to error-collecting tools).

- Improved the presentation of the Vex options with --help-debug.

- Removed documentation of -d in the manual because it's a debugging-only flag.

- Documented --read-var-info in the manual.  This fixes bug 201169.

- Renamed --auto-run-dsymutil as --dsymutil and documented it in the usage
  message.

- Fixed an XML error in manual-core-adv.xml.

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

16 years agoThis wasn't supposed to be part of r10701.
Nicholas Nethercote [Tue, 4 Aug 2009 01:16:57 +0000 (01:16 +0000)] 
This wasn't supposed to be part of r10701.

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

16 years agoVarious manual fix-ups:
Nicholas Nethercote [Tue, 4 Aug 2009 01:16:01 +0000 (01:16 +0000)] 
Various manual fix-ups:
- Use "heap blocks" rather than "malloc'd blocks" as heap blocks covers
  calloc, realloc, new, new[], memalign, etc.

- Used "GDB" and "GCC" throughout rather than "gcc" and "gdb".

- Made various tag uses more consistent.

- Greatly clarified the instructions on --xml=yes and its friends.

- Lots of other little improvements and fixes to out-of-date things and
  Linux-centric things, mostly in Section 2.

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

16 years agoThis should have been removed in r10699.
Nicholas Nethercote [Tue, 4 Aug 2009 01:08:56 +0000 (01:08 +0000)] 
This should have been removed in r10699.

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

16 years agoDon't wrap the "Command:" line, as doing so makes cutting-and-pasting the
Nicholas Nethercote [Tue, 4 Aug 2009 00:27:56 +0000 (00:27 +0000)] 
Don't wrap the "Command:" line, as doing so makes cutting-and-pasting the
command difficult.  Also, when wrapping I was failing to factor in the
escape chars needed for chars like ' ';  now I don't need to.  And this
means the 'long-command' test is no longer necessary.  In other words,
favour utility and simplicity over aesthetics.

Also, the "Command:" line wasn't being wrapped in <line></line> in XML
output.  It now is.

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

16 years agoIgnore structure members with no location - thiscan happen with static
Tom Hughes [Mon, 3 Aug 2009 14:39:54 +0000 (14:39 +0000)] 
Ignore structure members with no location - thiscan happen with static
const members in C++ code which are compile time constants that do no
exist in the class. They're not of any interest to us so we ignore them.

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

16 years agoPatch to remember/restore CFA state on DW_CFA_{remember,restore}_state.
Julian Seward [Mon, 3 Aug 2009 13:47:04 +0000 (13:47 +0000)] 
Patch to remember/restore CFA state on DW_CFA_{remember,restore}_state.
In addition to that it fixes a bug in restore_ctx handling, where it
was restoring the state from the same stack level in restore_ctx
context as is current in ctx, which is wrong, the CIE likely has no
DW_CFA_remember_state at all, while the FDE could have one.
(Jakub Jelinek).  This is #200029, patch in comment #2.

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

16 years agoUse Dwarf3 section version numbers as specified in Appendix F of the
Julian Seward [Mon, 3 Aug 2009 13:29:42 +0000 (13:29 +0000)] 
Use Dwarf3 section version numbers as specified in Appendix F of the
Dwarf3 standard.  (Jakub Jelinek).  This is #200029, patch in comment
#1.

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

16 years agoHandle some more DW_TAG_subrange_type cases which Fedora 11's
Tom Hughes [Mon, 3 Aug 2009 08:50:58 +0000 (08:50 +0000)] 
Handle some more DW_TAG_subrange_type cases which Fedora 11's
gcc 4.4.0 seems to generate.

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

16 years agoWith the recent VG_(message) change,
Nicholas Nethercote [Mon, 3 Aug 2009 01:38:56 +0000 (01:38 +0000)] 
With the recent VG_(message) change,
VALGRIND_{PRINTF,PRINTF_BACKTRACE,INTERNAL_PRINTF} were no longer appending
newlines.  This meant that --trace-malloc=yes spewed everything onto a
single line, among other things.

Rather than adding the newline back in, I chose to offically change their
behaviour to not add the newlines, as this is more flexible (and the reason
for the underlying VG_(message) change).  I updated all the relevant places
I could find.

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

16 years agoMinor improvements to printing w.r.t. sync checking / resyncing.
Julian Seward [Mon, 3 Aug 2009 01:05:18 +0000 (01:05 +0000)] 
Minor improvements to printing w.r.t. sync checking / resyncing.

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

16 years agoAdd /Applications to the list of directories in which not to try to auto-run dsymutil.
Julian Seward [Mon, 3 Aug 2009 01:04:18 +0000 (01:04 +0000)] 
Add /Applications to the list of directories in which not to try to auto-run dsymutil.

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

16 years agoForgot to add these in r10690.
Nicholas Nethercote [Mon, 3 Aug 2009 00:23:16 +0000 (00:23 +0000)] 
Forgot to add these in r10690.

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

16 years agoIn the "Command:" line in the preamble, escape special chars such as ' ' and
Nicholas Nethercote [Sun, 2 Aug 2009 23:03:06 +0000 (23:03 +0000)] 
In the "Command:" line in the preamble, escape special chars such as ' ' and
'\\'.

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

16 years agoReinstating a heavily modified version of r10402. This is to do
Julian Seward [Sun, 2 Aug 2009 12:21:31 +0000 (12:21 +0000)] 
Reinstating a heavily modified version of r10402.  This is to do
with #190429.

This patch (originally from Jakub Jelinek) makes the redir of strlen
in ld.so on amd64-linux ld.so mandatory, but only for glibc 2.10 and
above.  For glibc-2.2 (our earliest supported version) to glibc-2.9
it is still optional.

Also, makes more verbose, the message that is printed if a mandatory
ld.so redirection on Linux cannot be set up.

Is believed to fix #190429.

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

16 years agoChange name of H1 history flag from --history-level=partial (which I can
Julian Seward [Sun, 2 Aug 2009 10:16:03 +0000 (10:16 +0000)] 
Change name of H1 history flag from --history-level=partial (which I can
never remember) to --history-level=approx.

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

16 years agoAttend to space leaks, to the extent that I can.
Julian Seward [Sun, 2 Aug 2009 10:15:07 +0000 (10:15 +0000)] 
Attend to space leaks, to the extent that I can.

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

16 years agoSmall improvements, including some commenting, for the H1 history
Julian Seward [Sun, 2 Aug 2009 09:34:35 +0000 (09:34 +0000)] 
Small improvements, including some commenting, for the H1 history
mechanism.

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

16 years agoRestored two of the suppression patterns removed in the previous commit.
Bart Van Assche [Sun, 2 Aug 2009 08:35:05 +0000 (08:35 +0000)] 
Restored two of the suppression patterns removed in the previous commit.

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

16 years agoCleaned up DRD's Linux suppression patterns:
Bart Van Assche [Sun, 2 Aug 2009 07:46:43 +0000 (07:46 +0000)] 
Cleaned up DRD's Linux suppression patterns:
- Grouped the three suppression patterns for ld into a single suppression
  pattern.
- Assigned more descriptive names to the suppression patterns.
- Improved suppression pattern documentation.
- Removed suppression patterns that were added before VEX supported atomic
  instructions and that are no longer necessary with the current version
  of VEX.

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

16 years agoReverted to r10509.
Bart Van Assche [Fri, 31 Jul 2009 19:00:05 +0000 (19:00 +0000)] 
Reverted to r10509.

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

16 years agoAdded an output variant for the pth_cancel_locked regression test.
Bart Van Assche [Fri, 31 Jul 2009 18:49:29 +0000 (18:49 +0000)] 
Added an output variant for the pth_cancel_locked regression test.
Apparently when canceling a thread waiting inside pthread_cond_wait()
on Linux the specified mutex is left unlocked while on Darwin the
mutex specified in the pthread_cond_wait() call is reacquired before
the thread is terminated.

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

16 years agoReport mutex errors for each different mutex even if the call stacks are identical.
Bart Van Assche [Fri, 31 Jul 2009 18:45:49 +0000 (18:45 +0000)] 
Report mutex errors for each different mutex even if the call stacks are identical.

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

16 years agoBuilds again on Darwin.
Bart Van Assche [Fri, 31 Jul 2009 17:59:28 +0000 (17:59 +0000)] 
Builds again on Darwin.

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

16 years agoImplemented a more systematic approach for intercepting POSIX threads
Bart Van Assche [Fri, 31 Jul 2009 17:31:44 +0000 (17:31 +0000)] 
Implemented a more systematic approach for intercepting POSIX threads
functions: for each function name to intercept, intercept the function
name itself, the function name with @* appended (versioned symbols on
Linux) and the function name with $* appended (versioned symbols on
Darwin). Updated filter_stderr such that symbol versions are removed.
Updated the expected output files that contain names of intercepted
functions.

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

16 years ago(almost completely just function renaming):
Julian Seward [Fri, 31 Jul 2009 09:41:29 +0000 (09:41 +0000)] 
(almost completely just function renaming):

* VG_(find_seginfo): incrementally rearrange the DebugInfo list, like
  most of the other list-searching functions do.

* rename all VG_(*seginfo*) functions exported from m_debuginfo to
  VG_(*DebugInfo*).  "seginfo" was a historical name which was mostly
  but not completely, done away with some time back.

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

16 years agoDarwin-specific followup to r10676 (helgrind: Don't instrument any code in ld.so).
Julian Seward [Fri, 31 Jul 2009 08:52:39 +0000 (08:52 +0000)] 
Darwin-specific followup to r10676 (helgrind: Don't instrument any code in ld.so).

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

16 years agoDon't instrument any code in ld.so. Doing so merely generates a large
Julian Seward [Fri, 31 Jul 2009 08:46:35 +0000 (08:46 +0000)] 
Don't instrument any code in ld.so.  Doing so merely generates a large
number of races which have to be expensively suppressed, so it's
better not to do so.

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

16 years agoOnly consider two error contexts as equivalent if the contexts have another
Bart Van Assche [Fri, 31 Jul 2009 08:45:02 +0000 (08:45 +0000)] 
Only consider two error contexts as equivalent if the contexts have another
type than "data race error" or if both data race error contexts refer to the
same access type and the same access size.

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

16 years agoReport an error message instead of triggering an assertion failure when a non-existin...
Bart Van Assche [Fri, 31 Jul 2009 08:26:17 +0000 (08:26 +0000)] 
Report an error message instead of triggering an assertion failure when a non-existing thread ID is passed to pthread_join() or pthread_cancel().

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Fri, 31 Jul 2009 07:50:17 +0000 (07:50 +0000)] 
Updated Subversion ignore list.

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

16 years agoFix compile error.
Nicholas Nethercote [Fri, 31 Jul 2009 05:19:29 +0000 (05:19 +0000)] 
Fix compile error.

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

16 years agoPrettify the messages printed when segment mismatches happen. Also get rid
Nicholas Nethercote [Fri, 31 Jul 2009 05:06:29 +0000 (05:06 +0000)] 
Prettify the messages printed when segment mismatches happen.  Also get rid
of two unnecessary gotos.

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

16 years agowibble
Nicholas Nethercote [Fri, 31 Jul 2009 00:07:55 +0000 (00:07 +0000)] 
wibble

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

16 years agoDon't bother printing "My PID" when logging to a file or socket, as that
Nicholas Nethercote [Thu, 30 Jul 2009 23:36:43 +0000 (23:36 +0000)] 
Don't bother printing "My PID" when logging to a file or socket, as that
value is shown at the start of every output line.

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

16 years agoNow that we always print the command, no need to reprint it when logging to
Nicholas Nethercote [Thu, 30 Jul 2009 23:35:11 +0000 (23:35 +0000)] 
Now that we always print the command, no need to reprint it when logging to
file or a socket.  And tweak how the PIDs are printed.

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

16 years agoDon't print the command in the preamble with --xml=yes.
Nicholas Nethercote [Thu, 30 Jul 2009 23:14:55 +0000 (23:14 +0000)] 
Don't print the command in the preamble with --xml=yes.

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

16 years agoAvoid ampersands that seem to be causing XML-to-PDF conversion troubles.
Nicholas Nethercote [Thu, 30 Jul 2009 22:21:24 +0000 (22:21 +0000)] 
Avoid ampersands that seem to be causing XML-to-PDF conversion troubles.

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

16 years agoUse <variablelist> for ms_print's and cg_annotate's options list.
Nicholas Nethercote [Thu, 30 Jul 2009 04:48:05 +0000 (04:48 +0000)] 
Use <variablelist> for ms_print's and cg_annotate's options list.

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

16 years agoMan page fix.
Nicholas Nethercote [Thu, 30 Jul 2009 04:27:26 +0000 (04:27 +0000)] 
Man page fix.

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

16 years agoRemove some not-very useful info that tends to get out of date.
Nicholas Nethercote [Thu, 30 Jul 2009 04:25:02 +0000 (04:25 +0000)] 
Remove some not-very useful info that tends to get out of date.

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

16 years agoRemove lots of boilerplate text (tool descriptions) that tends to get out of
Nicholas Nethercote [Thu, 30 Jul 2009 04:22:09 +0000 (04:22 +0000)] 
Remove lots of boilerplate text (tool descriptions) that tends to get out of
date from the man page.

Make the man page match the ordering in the user manual.

Put Nulgrind last in the user manual.

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

16 years agoUnbreak 'make dist'.
Nicholas Nethercote [Thu, 30 Jul 2009 04:07:10 +0000 (04:07 +0000)] 
Unbreak 'make dist'.

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

16 years agoImprove the "acting on Cachegrind's info" section.
Nicholas Nethercote [Thu, 30 Jul 2009 03:21:42 +0000 (03:21 +0000)] 
Improve the "acting on Cachegrind's info" section.

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

16 years agoWe currently use a mix of <option> and <computeroutput> tags for command
Nicholas Nethercote [Thu, 30 Jul 2009 02:57:52 +0000 (02:57 +0000)] 
We currently use a mix of <option> and <computeroutput> tags for command
line options.  This commit changes them to all <option>.

Also make consistent how options with multiple names (eg. -h --help) are
shown.

Also, remove section describing --help and --version in Callgrind's chapter;
these aren't necessary and are presumably a hangover from when Callgrind was
a separate tool.

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

16 years agoImprove formatting of a command.
Nicholas Nethercote [Thu, 30 Jul 2009 02:27:17 +0000 (02:27 +0000)] 
Improve formatting of a command.

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

16 years agoPrint the command being run at startup. It wraps to avoid going over 80
Nicholas Nethercote [Wed, 29 Jul 2009 23:34:49 +0000 (23:34 +0000)] 
Print the command being run at startup.  It wraps to avoid going over 80
chars wide whenever possible.  Finishes off bug 197933.

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

16 years agoImprove futex system call support. Patch from BZ#201757 which I have
Tom Hughes [Wed, 29 Jul 2009 11:09:01 +0000 (11:09 +0000)] 
Improve futex system call support. Patch from BZ#201757 which I have
attempted to cross check against current kernel code. Reading the
futex system call code mostly just made my head hurt however...

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

16 years agoNote results of investigation into segfaulting of tc22 on H on MacOS.
Julian Seward [Wed, 29 Jul 2009 10:57:09 +0000 (10:57 +0000)] 
Note results of investigation into segfaulting of tc22 on H on MacOS.

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

16 years agoAdd a suppression apparently required by Darwin 9.7.0, 32-bit.
Julian Seward [Wed, 29 Jul 2009 07:00:01 +0000 (07:00 +0000)] 
Add a suppression apparently required by Darwin 9.7.0, 32-bit.

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

16 years agoDon't include "how to write a tool" in the user manual -- it's in the tech
Nicholas Nethercote [Wed, 29 Jul 2009 03:34:56 +0000 (03:34 +0000)] 
Don't include "how to write a tool" in the user manual -- it's in the tech
docs, and the chapter/section numbering doesn't match the rest of the
numbering in the user manual.

Also change some of the names of the links in that file to match the
filename.

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

16 years agoStarted overhauling the documentation:
Nicholas Nethercote [Wed, 29 Jul 2009 02:36:21 +0000 (02:36 +0000)] 
Started overhauling the documentation:
- There were detailed descriptions of all the tools in the Quick Start
  Guide, the Manual introduction, and the start of each tool chapter.  To
  avoid duplication/overlap, I removed these altogether from the Quick Start
  Guide, and shortened them in the intro.

- Improved the description of what errors Memcheck can find.

- Made all tool chapters start with "Overview" section, for consistency.

- Made the "run with --tool=XXX" bit consistent in each tool chapter.

- Made all tool chapter titles match the description given when running them.

- Added BBV to the User Manual intro.

- Generally clarified, updated, and future-proofed various bits of text in
  the Quick Start Guide and User Manual introduction.

Also:
- Changed Nulgrind's start-up description to "the minimal Valgrind tool".

- Fixed some punctuation in the usage message.

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

16 years agoImprove checking for pthread_mutex_cond operations: implement a check
Julian Seward [Tue, 28 Jul 2009 20:52:36 +0000 (20:52 +0000)] 
Improve checking for pthread_mutex_cond operations: implement a check
for consistent binding between the CV and the mutex, as specified by
POSIX.  Add commented out code for some other checks that could be
done but aren't, as they'd give false positives.

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

16 years agoBack out a small part of r10589 (the tick-after-recv thing). On
Julian Seward [Tue, 28 Jul 2009 20:22:18 +0000 (20:22 +0000)] 
Back out a small part of r10589 (the tick-after-recv thing).  On
contemplation it seems like a bad idea.

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

16 years agoReran SPLASH-2 benchmark.
Bart Van Assche [Tue, 28 Jul 2009 12:54:47 +0000 (12:54 +0000)] 
Reran SPLASH-2 benchmark.

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

16 years agoUn-break regression test run.
Bart Van Assche [Tue, 28 Jul 2009 08:03:31 +0000 (08:03 +0000)] 
Un-break regression test run.

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

16 years agoUpdated gcc version from 4.4.0 to 4.4.1.
Bart Van Assche [Tue, 28 Jul 2009 08:01:40 +0000 (08:01 +0000)] 
Updated gcc version from 4.4.0 to 4.4.1.

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

16 years agoRemove non-Linux code from this Linux-only test.
Nicholas Nethercote [Tue, 28 Jul 2009 05:11:42 +0000 (05:11 +0000)] 
Remove non-Linux code from this Linux-only test.

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

16 years agoMake lsframe1, lsframe2 and stack_changes Linux-only since they all fault
Nicholas Nethercote [Tue, 28 Jul 2009 05:10:33 +0000 (05:10 +0000)] 
Make lsframe1, lsframe2 and stack_changes Linux-only since they all fault
natively on Mac.

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

16 years agoMake sure the x86 direction flag is cleared again if we set it as part
Tom Hughes [Mon, 27 Jul 2009 23:09:42 +0000 (23:09 +0000)] 
Make sure the x86 direction flag is cleared again if we set it as part
of a test, as the x86 requires it to be clear when any function is called
and gcc 4.3.0 and later rely on that. Fixes #201708.

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

16 years agoClarify a comment.
Nicholas Nethercote [Mon, 27 Jul 2009 22:21:22 +0000 (22:21 +0000)] 
Clarify a comment.

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

16 years agoFollow-up of r10638 and r10639: explained in the manual that DRD is now
Bart Van Assche [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)] 
Follow-up of r10638 and r10639: explained in the manual that DRD is now
able to perform rwlock type checking.

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

16 years ago- Added more rwlock type checking.
Bart Van Assche [Mon, 27 Jul 2009 17:02:52 +0000 (17:02 +0000)] 
- Added more rwlock type checking.
- The rwlock_type_checking test should now no longer trigger a sporadic
  deadlock.

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

16 years agoImplemented type checking for reader-writer synchronization
Bart Van Assche [Mon, 27 Jul 2009 16:03:51 +0000 (16:03 +0000)] 
Implemented type checking for reader-writer synchronization
objects: complain upon attempts to use a POSIX rwlock where a
user-defined rwlock is expected and vice versa.

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

16 years agoAdded a new suppression pattern for Darwin. This is necessary because of the changes...
Bart Van Assche [Mon, 27 Jul 2009 14:48:06 +0000 (14:48 +0000)] 
Added a new suppression pattern for Darwin. This is necessary because of the changes introduced by r10634.

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

16 years agoRemoved -q from the Valgrind options for the bar_bad and bar_trivial tests.
Bart Van Assche [Mon, 27 Jul 2009 14:37:24 +0000 (14:37 +0000)] 
Removed -q from the Valgrind options for the bar_bad and bar_trivial tests.

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

16 years agoSupport epoll_create and epoll_create1 in ptrcheck. Fixes #189762.
Tom Hughes [Mon, 27 Jul 2009 14:22:25 +0000 (14:22 +0000)] 
Support epoll_create and epoll_create1 in ptrcheck. Fixes #189762.

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

16 years ago- Moved printing the thread number to the function that prints the
Bart Van Assche [Mon, 27 Jul 2009 14:17:33 +0000 (14:17 +0000)] 
- Moved printing the thread number to the function that prints the
  preamble.
- Matching suppression types with error contexts does now work properly.
- Cleanup: added more comments, renamed some functions, removed an unused
  function argument.

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

16 years agoMade the error reporting behavior of DRD similar to that of other
Bart Van Assche [Mon, 27 Jul 2009 14:04:46 +0000 (14:04 +0000)] 
Made the error reporting behavior of DRD similar to that of other
Valgrind tools: if the same kind of error has been detected a second
time with an identical call stack, count it as an error but do not print
it a second time. The total number of detected errors remains unchanged
but the number of error contexts is now reported correctly.

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

16 years agoFixed a bug in the code for reading suppression files: the line numbers
Bart Van Assche [Mon, 27 Jul 2009 12:03:03 +0000 (12:03 +0000)] 
Fixed a bug in the code for reading suppression files: the line numbers
reported in error messages were not correct. As an example, the following
output was produced before this patch (not correct):
$ ./vg-in-place --tool=helgrind --num-callers=1 /bin/true
...
FATAL: in suppressions file ".in_place/default.supp" near line 893:
   suppression must contain at least one location line which is not "..."
exiting now.
$ ./vg-in-place --tool=drd --num-callers=1 /bin/true
FATAL: in suppressions file ".in_place/default.supp" near line 475:
   suppression must contain at least one location line which is not "..."
exiting now.

After having applied this patch the above commands display line numbers
1104 and 619, referring to the first suppression pattern containing
three dots for the topmost stack frame, as expected.

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

16 years agoUpdated expected output of tc23_bogus_condwait for Darwin because the test program...
Bart Van Assche [Mon, 27 Jul 2009 08:30:52 +0000 (08:30 +0000)] 
Updated expected output of tc23_bogus_condwait for Darwin because the test program has been modified (r10623).

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

16 years agoRe-enabled the regression tests tc17_sembar and tc23_bogus_condwait for DRD on Darwin.
Bart Van Assche [Mon, 27 Jul 2009 08:29:29 +0000 (08:29 +0000)] 
Re-enabled the regression tests tc17_sembar and tc23_bogus_condwait for DRD on Darwin.

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

16 years agoMake sure the entire symbol is swapped when canonicaliseSymtab decides
Tom Hughes [Mon, 27 Jul 2009 07:52:56 +0000 (07:52 +0000)] 
Make sure the entire symbol is swapped when canonicaliseSymtab decides
that two overlapping symbols needs to be swapped. Fixes #163253.

Based on patch from John Reiser <jreiser@bitwagon.com>.

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

16 years agoRelatively inconsequential tidying of the Helgrind supps for Darwin.
Julian Seward [Sun, 26 Jul 2009 21:59:29 +0000 (21:59 +0000)] 
Relatively inconsequential tidying of the Helgrind supps for Darwin.

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

16 years agoAdd a new output file for tc12_rwl_trivial. It unfortunately can't be
Julian Seward [Sun, 26 Jul 2009 21:36:24 +0000 (21:36 +0000)] 
Add a new output file for tc12_rwl_trivial.  It unfortunately can't be
the same as the glibc one, because glibc is broken in the sense that
it doesn't return an error code for an attempt to unlock a not-locked
rwlock, and the returned error code affects Helgrind's output.

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

16 years agoUnbreak Helgrind on Linux following recent Darwin hackery.
Julian Seward [Sun, 26 Jul 2009 20:15:37 +0000 (20:15 +0000)] 
Unbreak Helgrind on Linux following recent Darwin hackery.

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

16 years agoSome more baseline suppressions for Darwin.
Julian Seward [Sun, 26 Jul 2009 19:55:18 +0000 (19:55 +0000)] 
Some more baseline suppressions for Darwin.

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

16 years agoUse correct preprocessor symbol for OS-specific code.
Julian Seward [Sun, 26 Jul 2009 19:54:43 +0000 (19:54 +0000)] 
Use correct preprocessor symbol for OS-specific code.

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

16 years agoPortability fixes for Darwin (use sem_open and sem_close rather than
Julian Seward [Sun, 26 Jul 2009 19:53:42 +0000 (19:53 +0000)] 
Portability fixes for Darwin (use sem_open and sem_close rather than
sem_init and sem_destroy).

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

16 years agoRe-check the symbol names for all pthread intercepts, to find all Linux
Julian Seward [Sun, 26 Jul 2009 19:52:06 +0000 (19:52 +0000)] 
Re-check the symbol names for all pthread intercepts, to find all Linux
and Darwin versions.  Add versions for Darwin names that are not so far
supported.  Add support for sem_open and sem_close.

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