Commit Graph

7577 Commits

Author SHA1 Message Date
Nicholas Nethercote
ec5c7aa4e5 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
2009-08-07 05:23:31 +00:00
Nicholas Nethercote
56c2654c04 Overhauled the how-to-write-a-new-tool chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10734
2009-08-07 04:55:15 +00:00
Nicholas Nethercote
c1a82c95fb Overhaul design+implementation chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10733
2009-08-07 04:07:20 +00:00
Nicholas Nethercote
41876dfd59 Went over the FAQ. Also tweaked vg-entities.xml a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10732
2009-08-07 02:58:11 +00:00
Nicholas Nethercote
789339fe6f Overhaul Helgrind's manual chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10731
2009-08-07 02:18:00 +00:00
Nicholas Nethercote
88a2f8bed1 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
2009-08-07 00:18:25 +00:00
Josef Weidendorfer
ca4dc72ef9 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
2009-08-06 18:13:17 +00:00
Nicholas Nethercote
d570c48793 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
2009-08-06 02:30:26 +00:00
Nicholas Nethercote
12e1a2d601 Minor update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10727
2009-08-06 01:26:14 +00:00
Nicholas Nethercote
acd9f85b48 - 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
2009-08-06 00:46:59 +00:00
Nicholas Nethercote
c4dbcca8b5 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
2009-08-06 00:31:28 +00:00
Nicholas Nethercote
48152e7a48 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
2009-08-05 23:59:05 +00:00
Nicholas Nethercote
2645747abc Document the 'cc' param of VG_(malloc) et al.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10723
2009-08-05 22:51:17 +00:00
Nicholas Nethercote
949c858f4e Fix Lackey test breakage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10722
2009-08-05 22:13:23 +00:00
Nicholas Nethercote
dbcea71779 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
2009-08-05 08:08:18 +00:00
Nicholas Nethercote
3514eb673b 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
2009-08-05 07:39:45 +00:00
Nicholas Nethercote
e0495bd769 Use actual URL links in the BBV docs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10719
2009-08-05 07:20:15 +00:00
Nicholas Nethercote
368c05d77d Tweaks to Ptrcheck's manual chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10718
2009-08-05 07:15:28 +00:00
Nicholas Nethercote
109043c349 - 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
2009-08-05 06:57:45 +00:00
Nicholas Nethercote
439594978f Various fix-ups for Memcheck's manual chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10716
2009-08-05 06:34:27 +00:00
Nicholas Nethercote
8da3d6fbc0 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
2009-08-05 05:11:02 +00:00
Nicholas Nethercote
36e289ca64 Augment a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10714
2009-08-05 05:05:15 +00:00
Nicholas Nethercote
ec073bad3d 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
2009-08-05 04:57:44 +00:00
Nicholas Nethercote
e06d3b4893 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
2009-08-05 04:54:51 +00:00
Nicholas Nethercote
d25bd715c1 More Massif manual tweaks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10711
2009-08-05 04:04:53 +00:00
Nicholas Nethercote
e16d2be3f4 Comment and docs wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10710
2009-08-05 02:02:31 +00:00
Nicholas Nethercote
f7198c4858 Various minor tweaks to the distribution docs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10709
2009-08-04 07:02:54 +00:00
Nicholas Nethercote
b6b2867271 Add a bit more to Massif's manual chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10708
2009-08-04 06:48:09 +00:00
Nicholas Nethercote
05820177ef A couple of minor Massif manual improvements.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10707
2009-08-04 06:10:30 +00:00
Nicholas Nethercote
74c920d729 Overhaul Massif's manual, and a few minor related things.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10706
2009-08-04 05:59:46 +00:00
Nicholas Nethercote
daa35cac73 Various clean-ups, mostly in chapter 3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10705
2009-08-04 05:24:46 +00:00
Nicholas Nethercote
1c53541c15 tweak
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10704
2009-08-04 02:35:09 +00:00
Nicholas Nethercote
8026c4766f 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
2009-08-04 02:32:55 +00:00
Nicholas Nethercote
fa2605d672 This wasn't supposed to be part of r10701.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10702
2009-08-04 01:16:57 +00:00
Nicholas Nethercote
d5b384f852 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
2009-08-04 01:16:01 +00:00
Nicholas Nethercote
0c1733b18a This should have been removed in r10699.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10700
2009-08-04 01:08:56 +00:00
Nicholas Nethercote
9c4252c6a1 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
2009-08-04 00:27:56 +00:00
Tom Hughes
213ac85a98 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
2009-08-03 14:39:54 +00:00
Julian Seward
c0d8b0fce5 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
2009-08-03 13:47:04 +00:00
Julian Seward
7a04b26015 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
2009-08-03 13:29:42 +00:00
Tom Hughes
688d43d18d 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
2009-08-03 08:50:58 +00:00
Nicholas Nethercote
5dfe01a847 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
2009-08-03 01:38:56 +00:00
Julian Seward
1bce42d94e Minor improvements to printing w.r.t. sync checking / resyncing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10693
2009-08-03 01:05:18 +00:00
Julian Seward
99691de870 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
2009-08-03 01:04:18 +00:00
Nicholas Nethercote
635d2ba794 Forgot to add these in r10690.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10691
2009-08-03 00:23:16 +00:00
Nicholas Nethercote
c20ba72234 In the "Command:" line in the preamble, escape special chars such as ' ' and
'\\'.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10690
2009-08-02 23:03:06 +00:00
Julian Seward
b39a007b53 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
2009-08-02 12:21:31 +00:00
Julian Seward
f4c2898676 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
2009-08-02 10:16:03 +00:00
Julian Seward
5204eb3398 Attend to space leaks, to the extent that I can.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10687
2009-08-02 10:15:07 +00:00
Julian Seward
896110462a Small improvements, including some commenting, for the H1 history
mechanism.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10686
2009-08-02 09:34:35 +00:00