Commit Graph

45 Commits

Author SHA1 Message Date
Nicholas Nethercote
7a75a9f583 Overhauled the docs. Removed all the HTML files, put in XML files as
converted by Donna.  Hooked it into the build system so they are only
built when specifically asked for, and when doing "make dist".

They're not perfect;  in particular, there are the following problems:
- The plain-text FAQ should be built from FAQ.xml, but this is not
  currently done.  (The text FAQ has been left in for now.)

- The PS/PDF building doesn't work -- it fails with an incomprehensible
  error message which I haven't yet deciphered.

Nonetheless, I'm putting it in so others can see it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3153
2004-11-30 10:43:45 +00:00
Nicholas Nethercote
ad9d745590 Reinstate Massif.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3102
2004-11-25 18:04:54 +00:00
Nicholas Nethercote
8b879989f8 Update Massif's TL_(instrument)() to work with Vex (trivial).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3070
2004-11-22 21:08:46 +00:00
Nicholas Nethercote
454ab569fe Converted the SK_ prefix to TL_ everywhere.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3060
2004-11-22 18:33:15 +00:00
Nicholas Nethercote
46ea82e68a Renamed some profiling events.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3059
2004-11-22 18:10:36 +00:00
Nicholas Nethercote
3093a1768b Renamed VG_(skin_panic) as VG_(tool_panic).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3057
2004-11-22 18:02:32 +00:00
Nicholas Nethercote
cf9cf2a220 Renamed sk_assert() as tl_assert().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3055
2004-11-22 17:18:48 +00:00
Nicholas Nethercote
40de233989 Changed name of tool shared objects from vgskin_XXX.so to vgtool_XXX.so.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3054
2004-11-22 16:58:05 +00:00
Nicholas Nethercote
a2d1e021a4 Generalised reg test script: instead of having a "delete:" line, for removing
files once a test has completed, we have a "cleanup:" line, which specifies a
cleanup command.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3039
2004-11-18 11:57:00 +00:00
Nicholas Nethercote
cc936a9c7c 64-bit cleanness: convert client requests to receive and return UWords.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2921
2004-11-04 18:22:28 +00:00
Nicholas Nethercote
528046b537 64-bit cleanness: make the hash-table have UWord keys instead of UInt keys.
Allows addresses as keys.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2916
2004-11-04 16:39:43 +00:00
Nicholas Nethercote
65b45124ad 64-bit cleanness: replace hard-wired 0xffffffff literals with something less
32-bit-specific.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2914
2004-11-04 13:49:28 +00:00
Nicholas Nethercote
c73601d666 64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2908
2004-11-02 13:29:50 +00:00
Nicholas Nethercote
e245f2aeb0 64-bit cleanness: Converted malloc() et al to use SizeT rather than Int.
This required some tricks with casting to maintain Memcheck's silly (ie.
negative) arg checking.  The allocator was also changed accordingly. It
should now be able to allocate more than 4GB blocks on 64-bit platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2906
2004-11-02 12:36:02 +00:00
Nicholas Nethercote
d343add11a Build vg_replace_malloc.c into a library, because it makes the Makefiles a bit
neater.  Also remove some dodgy CFLAGS+= lines.

I had to change the expected output of pth_once.c, because the change has
altered the order of the (non-deterministic) output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2825
2004-10-20 18:40:40 +00:00
Nicholas Nethercote
7beef528ff Don't inline large function
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2712
2004-09-13 13:27:30 +00:00
Nicholas Nethercote
13a74aa53a Arch-abstraction: renamed "vg_skin.h" as "tool.h". Kept a residual vg_skin.h
(which just #includes tool.h) for backward-compatibility.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2647
2004-09-02 08:51:43 +00:00
Nicholas Nethercote
acd57ac595 Use Makefile.am includes. This gets rid of 110 lines of repetitive Makefile.am
cruft, yay!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2641
2004-09-01 23:20:49 +00:00
Nicholas Nethercote
8b5a3a391b Avoid divisions by zero. This fixes bug 78765.
Also renamed two of the XPt fields so that things are clearer.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2628
2004-08-30 19:15:12 +00:00
Nicholas Nethercote
0db27515b1 Putting "dist_" in front of a "_DATA" variable means it is included in "make
dist".  This avoids the need to put it in "EXTRA_DIST", and saves a few lines
in all the docs Makefile.am files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2614
2004-08-25 11:40:07 +00:00
Nicholas Nethercote
1bd17a3d0f Remove a bunch of unnecessary -DVG_LIBDIR="\"$(libdir)"\" arguments in
Makefile.am files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2597
2004-08-23 14:02:03 +00:00
Nicholas Nethercote
38ff4e69d1 Comment changes only: s/skin/tool/
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2555
2004-08-03 13:29:09 +00:00
Nicholas Nethercote
854d2ec10e Fix for bug #78048.
Problem was that the malloc-replacing tools (memcheck, addrcheck, massif,
helgrind) would assert if a too-big malloc was attempted.  Now they return 0 to
the client.  I also cleaned up the code handling heap-block-metadata in Massif
and Addrcheck/Memcheck a little.

This exposed a nasty bug in VG_(client_alloc)() which wasn't checking if
find_map_space() was succeeding before attempting an mmap().  Before I added
the check, very big mallocs (eg 2GB) for Addrcheck were overwriting the client
space at address 0 and causing crashes.

Added a regtest to all the affected skins for this.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2462
2004-07-10 14:56:28 +00:00
Tom Hughes
a2a0946b8a Make VPATH builds work so that valgrind can be built in a different
directory from the source tree. This resolves bug 83040.

Based on patch from Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2450
2004-06-29 09:45:37 +00:00
Tom Hughes
414846a941 Removed all uses of nested functions as they only work with gcc and
cause the stack to be marked as executable in order for them to work.

All assembler files have also had a declaration added so that the
object they generate will be marked as not needing an executable stack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2446
2004-06-27 17:37:21 +00:00
Nicholas Nethercote
55cb3cd764 Introduced 4 macros to minimise boilerplate command line processing code.
Nicely cuts around 130 lines of code, spread over the core and several tools.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2422
2004-06-16 21:26:32 +00:00
Nicholas Nethercote
0954cfc526 Fix wishlist item 82098, thanks to Ralf Wildenhues:
ANSIfication of the hp2ps code. The most important changes are the correct
  use of the stdarg mechanism (former hacks could bite on other systems, so
  please tell upstream), inclusion of stdlib.h instead of declaring free
  yourself, adding a few missed PROTO()s and using size_t for xmalloc and
  xrealloc.:


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2399
2004-06-02 20:43:24 +00:00
Nicholas Nethercote
df5febb1a0 Fix patch from this morning -- missing commas, erk
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2397
2004-05-11 16:37:17 +00:00
Nicholas Nethercote
05167f92c1 Teach Massif about the 'nothrow' versions of new and new[].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2396
2004-05-11 09:21:08 +00:00
Nicholas Nethercote
4517a54005 Update copyright
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2395
2004-05-11 09:17:49 +00:00
Nicholas Nethercote
6c5693221e Fix for bug 79355: fix up bogus assertion that was failing when
stack_snapshot() returned 0xffffffff as one of its eip values.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2390
2004-04-27 09:51:51 +00:00
Nicholas Nethercote
2fc96dcc06 Add a "delete:" line to the regression test .vgtest files, to clean up any file
created by the test.  Added appropriate lines to the Cachegrind and Massif
tests.  Should prevent large numbers of files clogging up directories.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2372
2004-04-17 17:25:08 +00:00
Nicholas Nethercote
4f0579f5f9 Fix bug in hp2ps that caused the title to have negative numbers in it. Thanks
to Ralf.Wildenhues@gmx.de.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2349
2004-04-02 13:08:40 +00:00
Nicholas Nethercote
0233c9957d Remove Massif's version number now that it's part of the main distro.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2330
2004-03-16 19:41:14 +00:00
Jeremy Fitzhardinge
82aaa16ef9 Fix "make distcheck", and also make sure that the generated archive
contains everything needed to "make regtest".  Bump the version.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2308
2004-03-12 10:51:39 +00:00
Julian Seward
5bc30752d6 Be slightly less verbose at -v.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2292
2004-03-07 10:23:20 +00:00
Jeremy Fitzhardinge
01ba73cf7e List memalign as an allocator.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2287
2004-03-04 22:42:03 +00:00
Nicholas Nethercote
796e432228 Move the '-lm' link flag to the end of the command line, so it works for
everyone.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2271
2004-02-26 09:04:38 +00:00
Nicholas Nethercote
10ed746767 Fix 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2265
2004-02-24 23:38:17 +00:00
Nicholas Nethercote
91c730ca39 Changed bug_reports_to.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2261
2004-02-23 15:33:33 +00:00
Nicholas Nethercote
39c1f4e7fc Update and add various .cvsignore files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2260
2004-02-22 19:34:55 +00:00
Nicholas Nethercote
2c736edd5f Added copyright notice to all hp2ps source files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2251
2004-02-15 15:38:08 +00:00
Nicholas Nethercote
1b392dae5f Whoops, meant to add with Massif.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2247
2004-02-14 16:48:35 +00:00
Nicholas Nethercote
614adcef8b Whoops, meant to add this with the rest of Massif.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2246
2004-02-14 16:46:17 +00:00
Nicholas Nethercote
563c4e566a Adding Massif, the heap profiler.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2245
2004-02-14 16:40:02 +00:00