Commit Graph

30 Commits

Author SHA1 Message Date
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