]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoAdd a crappy wrapper for access_extended(), one of the more ridiculous
Nicholas Nethercote [Wed, 12 Aug 2009 02:30:20 +0000 (02:30 +0000)] 
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

16 years agoDarwin .exp fixes following r10783.
Nicholas Nethercote [Wed, 12 Aug 2009 00:32:44 +0000 (00:32 +0000)] 
Darwin .exp fixes following r10783.

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

16 years agoUpdate .exp files for r10783.
Nicholas Nethercote [Wed, 12 Aug 2009 00:14:44 +0000 (00:14 +0000)] 
Update .exp files for r10783.

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

16 years agoOutput tweaks:
Nicholas Nethercote [Wed, 12 Aug 2009 00:14:16 +0000 (00:14 +0000)] 
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

16 years agoCallgrind: Fix printing of "Summary:" line in finish()
Josef Weidendorfer [Tue, 11 Aug 2009 20:53:59 +0000 (20:53 +0000)] 
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

16 years agoCallgrind: On zeroing costs, also set call counters to zero.
Josef Weidendorfer [Tue, 11 Aug 2009 20:53:57 +0000 (20:53 +0000)] 
Callgrind: On zeroing costs, also set call counters to zero.

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

16 years agoFix dumping of call cost in tail recursion optimization
Josef Weidendorfer [Tue, 11 Aug 2009 19:21:25 +0000 (19:21 +0000)] 
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

16 years agoAdded regression test for ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() and
Bart Van Assche [Tue, 11 Aug 2009 15:00:54 +0000 (15:00 +0000)] 
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

16 years agoFix bug 199338: callgrind_annotate sorting/thresholds are broken
Josef Weidendorfer [Tue, 11 Aug 2009 14:45:03 +0000 (14:45 +0000)] 
Fix bug 199338: callgrind_annotate sorting/thresholds are broken

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

16 years agoMisc fixes for callgrind_annotate
Josef Weidendorfer [Tue, 11 Aug 2009 14:45:00 +0000 (14:45 +0000)] 
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

16 years agoMove printing of EvM-gc and VTS-gc stats from -v to --stats=yes.
Julian Seward [Tue, 11 Aug 2009 10:39:25 +0000 (10:39 +0000)] 
Move printing of EvM-gc and VTS-gc stats from -v to --stats=yes.

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

16 years agoAdd pthread spinlock support.
Julian Seward [Tue, 11 Aug 2009 10:35:58 +0000 (10:35 +0000)] 
Add pthread spinlock support.

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

16 years agoadd missing scripts
Nicholas Nethercote [Tue, 11 Aug 2009 01:03:55 +0000 (01:03 +0000)] 
add missing scripts

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

16 years agoCount error contexts properly in VG_(unique_error). Avoids the problem seen
Nicholas Nethercote [Tue, 11 Aug 2009 00:52:40 +0000 (00:52 +0000)] 
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

16 years agoadd a missing script
Nicholas Nethercote [Tue, 11 Aug 2009 00:18:31 +0000 (00:18 +0000)] 
add a missing script

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

16 years agoFix some const stuff that gcc-4.4.0 complains about.
Julian Seward [Mon, 10 Aug 2009 19:39:02 +0000 (19:39 +0000)] 
Fix some const stuff that gcc-4.4.0 complains about.

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

16 years agoparse_type_DIE: push incomplete structure tyents on the type stack,
Julian Seward [Mon, 10 Aug 2009 18:59:54 +0000 (18:59 +0000)] 
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

16 years agoAdded suppression patterns for the most recent libglib and libQtCore versions.
Bart Van Assche [Mon, 10 Aug 2009 14:13:12 +0000 (14:13 +0000)] 
Added suppression patterns for the most recent libglib and libQtCore versions.

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

16 years agoTry to fix error_counts.
Nicholas Nethercote [Mon, 10 Aug 2009 08:25:39 +0000 (08:25 +0000)] 
Try to fix error_counts.

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

16 years agoCount leak as errors. Fixes bug 152393.
Nicholas Nethercote [Mon, 10 Aug 2009 07:50:00 +0000 (07:50 +0000)] 
Count leak as errors.  Fixes bug 152393.

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

16 years agoRemove unnecessary #includes.
Nicholas Nethercote [Mon, 10 Aug 2009 07:47:43 +0000 (07:47 +0000)] 
Remove unnecessary #includes.

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

16 years agoAllow custom blocks to overlap with malloc blocks. Fixes bug 100628.
Nicholas Nethercote [Mon, 10 Aug 2009 07:36:54 +0000 (07:36 +0000)] 
Allow custom blocks to overlap with malloc blocks.  Fixes bug 100628.

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

16 years agoaugment a comment
Nicholas Nethercote [Mon, 10 Aug 2009 06:47:00 +0000 (06:47 +0000)] 
augment a comment

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

16 years agoadd an item
Nicholas Nethercote [Mon, 10 Aug 2009 05:11:43 +0000 (05:11 +0000)] 
add an item

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

16 years agowibble
Nicholas Nethercote [Mon, 10 Aug 2009 04:07:54 +0000 (04:07 +0000)] 
wibble

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

16 years agoRemove bad explanations of mempool requests from the core manual, just point
Nicholas Nethercote [Mon, 10 Aug 2009 01:43:20 +0000 (01:43 +0000)] 
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

16 years agowibble
Nicholas Nethercote [Mon, 10 Aug 2009 01:34:27 +0000 (01:34 +0000)] 
wibble

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

16 years agoMake "option" terminology consistent some more. Also tweaked the mempool
Nicholas Nethercote [Mon, 10 Aug 2009 01:29:14 +0000 (01:29 +0000)] 
Make "option" terminology consistent some more.  Also tweaked the mempool
Memcheck section a little.

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

16 years agoBe consistent in the naming of sections describing command-line options.
Nicholas Nethercote [Mon, 10 Aug 2009 01:15:30 +0000 (01:15 +0000)] 
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

16 years agoRemove some cross-references that are broken in the man pages because they
Nicholas Nethercote [Mon, 10 Aug 2009 00:42:43 +0000 (00:42 +0000)] 
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

16 years agoMake usage messages given by -h and man pages consistent for the scripts.
Nicholas Nethercote [Sun, 9 Aug 2009 23:27:00 +0000 (23:27 +0000)] 
Make usage messages given by -h and man pages consistent for the scripts.

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

16 years agoAdd an alternative output for Darwin.
Nicholas Nethercote [Sat, 8 Aug 2009 07:38:25 +0000 (07:38 +0000)] 
Add an alternative output for Darwin.

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

16 years agocallgrind_control: be strict on parsing options
Josef Weidendorfer [Fri, 7 Aug 2009 23:19:09 +0000 (23:19 +0000)] 
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

16 years agoRemove commas, for consistency with other parts of the manual.
Nicholas Nethercote [Fri, 7 Aug 2009 22:01:49 +0000 (22:01 +0000)] 
Remove commas, for consistency with other parts of the manual.

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

16 years agoAdd some clarifications to the exp-bbv manual.
Vince Weaver [Fri, 7 Aug 2009 21:00:05 +0000 (21:00 +0000)] 
Add some clarifications to the exp-bbv manual.

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

16 years agoResync after {wq,p}thread_hijack rather than merely doing a check.
Julian Seward [Fri, 7 Aug 2009 20:28:58 +0000 (20:28 +0000)] 
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

16 years agocallgrind_control: sync manual/man page and script help output.
Josef Weidendorfer [Fri, 7 Aug 2009 20:20:41 +0000 (20:20 +0000)] 
callgrind_control: sync manual/man page and script help output.

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

16 years agoUpdate Memcheck expected outputs following r10746 (Darwin variants only).
Julian Seward [Fri, 7 Aug 2009 19:47:29 +0000 (19:47 +0000)] 
Update Memcheck expected outputs following r10746 (Darwin variants only).

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

16 years agoUpdate Memcheck expected outputs following r10746 (32-bit variants only).
Julian Seward [Fri, 7 Aug 2009 19:26:41 +0000 (19:26 +0000)] 
Update Memcheck expected outputs following r10746 (32-bit variants only).

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

16 years agoUpdate Memcheck expected outputs following r10746 (64-bit variants only).
Julian Seward [Fri, 7 Aug 2009 17:47:42 +0000 (17:47 +0000)] 
Update Memcheck expected outputs following r10746 (64-bit variants only).

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

16 years agoTidy up of messaging:
Julian Seward [Fri, 7 Aug 2009 15:46:56 +0000 (15:46 +0000)] 
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

16 years agoInstall all the new man pages. Include them in 'make dist' too (even if
Nicholas Nethercote [Fri, 7 Aug 2009 08:31:58 +0000 (08:31 +0000)] 
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

16 years agoAdd a manpage for cg_annotate. Now only valgrind-listener and cg_merge lack
Nicholas Nethercote [Fri, 7 Aug 2009 07:56:20 +0000 (07:56 +0000)] 
Add a manpage for cg_annotate.  Now only valgrind-listener and cg_merge lack
a manpage, and they're so simple I can't be bothered doing ones for them
(they don't even have sections in the manual).

Also fixed a few minor things relating to manpages.

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

16 years agoUpdated DRD's to do list.
Bart Van Assche [Fri, 7 Aug 2009 07:49:36 +0000 (07:49 +0000)] 
Updated DRD's to do list.

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

16 years ago- Documented callgrind_{annotate,control} in the Callgrind manual chapter
Nicholas Nethercote [Fri, 7 Aug 2009 07:44:31 +0000 (07:44 +0000)] 
- Documented callgrind_{annotate,control} in the Callgrind manual chapter
  and created man pages for them.  Renamed the XML files in the process for
  consistency.

- Inlined cg-entities.xml into vg-entities.xml.

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

16 years agoUpdate. Fortunately it's gotten a little simpler.
Nicholas Nethercote [Fri, 7 Aug 2009 07:31:15 +0000 (07:31 +0000)] 
Update.  Fortunately it's gotten a little simpler.

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

16 years agoManpage improvements:
Nicholas Nethercote [Fri, 7 Aug 2009 06:54:44 +0000 (06:54 +0000)] 
Manpage improvements:

- Added a manpage for ms_print.

- Added docs/xml/manpages-index.xml, which is just used as a convenient
  single file to hang all the man pages off so they can be generated in a
  single command.

- Added facility whereby manpage generation will attempt to find the
  stylesheet in multiple places.  This means I don't have to constantly edit
  XSL_MAN_STYLE to build manpages on my machine.

- Changed vg-docs-path to start with $INSTALL instead of /usr/, because we
  can't assume that's the installation dir.

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

16 years agoUpdated after r10688.
Bart Van Assche [Fri, 7 Aug 2009 06:47:52 +0000 (06:47 +0000)] 
Updated after r10688.

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

16 years agoRemove a broken Cachegrind link, and include some extra DRD options.
Nicholas Nethercote [Fri, 7 Aug 2009 06:08:51 +0000 (06:08 +0000)] 
Remove a broken Cachegrind link, and include some extra DRD options.

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

16 years agoRemove some text that shouldn't be there.
Nicholas Nethercote [Fri, 7 Aug 2009 05:58:00 +0000 (05:58 +0000)] 
Remove some text that shouldn't be there.

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

16 years agoMinor changes to Callgrind file format docs.
Nicholas Nethercote [Fri, 7 Aug 2009 05:40:26 +0000 (05:40 +0000)] 
Minor changes to Callgrind file format docs.

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

16 years agoMinor formatting and grammar changes to the DRD manual chapter, to make it
Nicholas Nethercote [Fri, 7 Aug 2009 05:23:31 +0000 (05:23 +0000)] 
Minor formatting and grammar changes to the DRD manual chapter, to make it
consistent with the rest of the documentation.

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

16 years agoOverhauled the how-to-write-a-new-tool chapter.
Nicholas Nethercote [Fri, 7 Aug 2009 04:55:15 +0000 (04:55 +0000)] 
Overhauled the how-to-write-a-new-tool chapter.

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

16 years agoOverhaul design+implementation chapter.
Nicholas Nethercote [Fri, 7 Aug 2009 04:07:20 +0000 (04:07 +0000)] 
Overhaul design+implementation chapter.

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

16 years agoWent over the FAQ. Also tweaked vg-entities.xml a bit.
Nicholas Nethercote [Fri, 7 Aug 2009 02:58:11 +0000 (02:58 +0000)] 
Went over the FAQ.  Also tweaked vg-entities.xml a bit.

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

16 years agoOverhaul Helgrind's manual chapter.
Nicholas Nethercote [Fri, 7 Aug 2009 02:18:00 +0000 (02:18 +0000)] 
Overhaul Helgrind's manual chapter.

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

16 years agoThoroughly overhauled the Cachegrind manual chapter, mostly by putting
Nicholas Nethercote [Fri, 7 Aug 2009 00:18:25 +0000 (00:18 +0000)] 
Thoroughly overhauled the Cachegrind manual chapter, mostly by putting
things in a more sensible order.  Also tweaked the Massif chapter a bit
more.

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

16 years agoAdded some text for --simulate-wb/--cacheuse options of Callgrind.
Josef Weidendorfer [Thu, 6 Aug 2009 18:13:17 +0000 (18:13 +0000)] 
Added some text for --simulate-wb/--cacheuse options of Callgrind.

For cacheuse, it actually got quite large...

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

16 years agoClean up Callgrind docs. Josef, I added brief entries for --collect-systime,
Nicholas Nethercote [Thu, 6 Aug 2009 02:30:26 +0000 (02:30 +0000)] 
Clean up Callgrind docs.  Josef, I added brief entries for --collect-systime,
--cacheuse and --simulate-wb but you might like to expand them.

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

16 years agoMinor update.
Nicholas Nethercote [Thu, 6 Aug 2009 01:26:14 +0000 (01:26 +0000)] 
Minor update.

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

16 years ago- Remove unused Callgrind documentation entities.
Nicholas Nethercote [Thu, 6 Aug 2009 00:46:59 +0000 (00:46 +0000)] 
- Remove unused Callgrind documentation entities.
- Link to Cachegrind docs within the current set, not the version on the
  website.

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

16 years agoRemove man-callgrind.xml, because Callgrind no longer has a separate man
Nicholas Nethercote [Thu, 6 Aug 2009 00:31:28 +0000 (00:31 +0000)] 
Remove man-callgrind.xml, because Callgrind no longer has a separate man
page (it hasn't for a long time).

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

16 years agoOverhaul the BBV manual chapter, mostly. Also tweak BBV's usage message to
Nicholas Nethercote [Wed, 5 Aug 2009 23:59:05 +0000 (23:59 +0000)] 
Overhaul the BBV manual chapter, mostly.  Also tweak BBV's usage message to
match the docs better.

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

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