1086 Commits

Author SHA1 Message Date
Nicholas Nethercote
f1bde14402 Fixed overlap errors so the hacky strdup'ing of strings isn't necessary;
now passing in the relevant parameters via an 'extra' struct, as is proper.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1809
2003-09-04 20:50:47 +00:00
Nicholas Nethercote
e1d0585265 docs typo
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1808
2003-08-29 11:42:50 +00:00
Nicholas Nethercote
f6e8535d25 Minor fix: errors on MMX_MemRd instructions were erroneously being called
writes.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1807
2003-08-28 17:46:16 +00:00
Dirk Mueller
4d7ce5006f implement waitpid syscall. Patch by Benjamin Lee <benjaminlee@users.sf.net>
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1806
2003-08-26 17:36:26 +00:00
Nicholas Nethercote
9b074f685f Teach Cachegrind about SSE instructions, courtesy of Josef Weidendorfer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1805
2003-08-25 16:15:40 +00:00
Nicholas Nethercote
f563f81443 Added #17 about how to write suppressions.
MERGE TO STABLE (along with several other FAQ changes I've made recently but
forgot to write this note on)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1804
2003-08-20 11:19:17 +00:00
Nicholas Nethercote
29c92969ff Fix up the way SK_(update_extra)() is called.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1803
2003-08-19 16:14:42 +00:00
Nicholas Nethercote
f55a533a47 Comment-only change
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1802
2003-08-19 12:16:05 +00:00
Nicholas Nethercote
946e95a5b6 Fix inaccuracies in #12.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1801
2003-08-19 07:50:24 +00:00
Nicholas Nethercote
1738927994 Added FAQ #16, about that assertion failure in 'make' when building.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1800
2003-08-15 07:35:20 +00:00
Nicholas Nethercote
d4192ee3b2 comments change only
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1799
2003-08-14 15:23:55 +00:00
Nicholas Nethercote
483211c96d Another update to #12.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1798
2003-08-13 09:56:30 +00:00
Nicholas Nethercote
f824df47c3 Clarified FAQ #14.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1797
2003-08-13 08:34:42 +00:00
Dirk Mueller
ba418da664 its linux 2.6.x these days
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1796
2003-08-10 13:37:01 +00:00
Nicholas Nethercote
37f6cc0c0d Added FAQ 15, about writing to read-only memory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1795
2003-08-07 21:24:24 +00:00
Julian Seward
568fcc200b Add memcmp() to our collection of functions we do ourselves.
I don't trust the glibc not to be optimised-to-hell-and-beyond.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1794
2003-07-30 21:24:25 +00:00
Julian Seward
d9bc0c3167 more wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1792
2003-07-27 08:04:48 +00:00
Julian Seward
f35b729f82 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1791
2003-07-26 21:39:05 +00:00
Julian Seward
99ab046fe6 --> 20030725
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1790
2003-07-26 17:50:42 +00:00
Julian Seward
439cee2a05 Increase VG_N_FORKHANDLERSTACK from 2 to 4. For reasons known only to
itself, pth_atfork1 and 2 fail on R H 7.3 for a size-2 stack, but only
with certain skins.  Don't ask me.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1789
2003-07-26 17:49:58 +00:00
Julian Seward
36e7c48a43 Update for 20030725.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1788
2003-07-25 21:11:40 +00:00
Julian Seward
c924c63b20 VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): remove leading spaces and
colon created by this mechanism.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1787
2003-07-25 19:58:11 +00:00
Julian Seward
ffbedad97e Fix the strdup-of-OverlapErr-string problem better. Move the
strdup to MAC_(record_overlap_error), wherein we know that
s is a string.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1786
2003-07-24 23:50:17 +00:00
Julian Seward
2e724ba3df construct_error(): strdup the supplied s (string) param which gives
extra info about some kinds of errors.  It was being allocated on the
stack by complain2/3 in mac_malloc_wrappers.c.

If the constructed error is found to be a duplicate, free the strdup'd
space.  That limits the worst-case space leak to one strdup'd string
for each different error we keep track of, and the latter by default
is limited to 300.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1785
2003-07-24 21:29:40 +00:00
Nicholas Nethercote
1cc2127659 Moved vg_kerneliface.h from coregrind/ to include/, where it was needed for
external skin compilation to work.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1784
2003-07-24 19:35:00 +00:00
Nicholas Nethercote
c2bfdc506c Changed the behaviour of realloc() in Memcheck, Addrcheck and Helgrind.
Previously, when realloc() was asked to make a block bigger, the ExeContext
describing where that block was allocated was increased;  however, if the block
became smaller or stayed the same size, the original ExeContext remained.  This
is correct in one way (that's where the memory manager actually parcelled out
the block) but it's not very intuitive.  This commit changes things so the
ExeContext of a block is always changed upon realloc().  I added a regression
test for it too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1783
2003-07-24 17:39:59 +00:00
Nicholas Nethercote
0f871c249c A big commit size-wise, but small concept-wise: removed the ThreadState type
from skin's view, replacing all instances with ThreadId.  Much cleaner.  Had to
change the way VG_(get_ExeContext)() worked a little.  Changed the core/skin
major interface because this breaks the old version.  Also fixed a few minor
related things here and there.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1782
2003-07-24 08:45:32 +00:00
Julian Seward
53220a1cbb Use init_ExeContext_storage instead of relying (unintentionally) on
properties of 'static'.  Also, de-globalise this function.  Some days
I really yearn for a proper module system in C.  Come back Haskell,
all is forgiven :-)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1781
2003-07-23 23:01:11 +00:00
Nicholas Nethercote
ca5ea7998a Just clarified VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH)'s workings a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1780
2003-07-23 09:40:50 +00:00
Nicholas Nethercote
fa19839b93 Fix a problem in VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH)(): when removing the
added paths, it was taking out the colon between the removed entry and the
following, which meant the following was interpreted as having a big chunk of
whitespace at the start, which broke some things.

eg. was:

  "foo:bar"  --> "    bar"

now:

  "foo:bar"  --> "   :bar"

in which case "   " is considered a separate path in it's own right, albeit one
that doesn't mean anything.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1779
2003-07-23 09:22:02 +00:00
Nicholas Nethercote
aca466757f Changed behaviour of VALGRIND_COUNT_LEAKS slightly. Previously, the numbers it
returned (bytes leaked, dubious, etc) were incremented for every leak check
performed.  So if you called VALGRIND_DO_LEAK_CHECK twice in a row, the totals
would be updated twice by the same amount.  This was a bit silly.  So now
COUNT_LEAKS just returns the numbers of bytes leaked found from the previous
leak check.  I even updated the docs, and changed the regression test so old
version fail but the new version passes (by doing two DO_LEAK_CHECKS in a row).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1778
2003-07-22 22:03:58 +00:00
Nicholas Nethercote
9a5e615c4b Truncate the cachegrind.out.<pid> file, if it already exists. It wasn't doing
this, which meant that if a shorter file of the same name was written, the old
contents past the new end would remain, which would be bad.  Had (probably)
never happened because the <pid> suffix makes it very unlikely for filenames to
be reused.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1777
2003-07-22 20:45:11 +00:00
Julian Seward
39dac02699 Add to the list of new stuff in 20030716, some things I forgot.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1776
2003-07-22 17:47:42 +00:00
Nicholas Nethercote
53fcf82ef1 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1775
2003-07-22 10:50:41 +00:00
Nicholas Nethercote
ca84f991d3 Added overlap checking to Addrcheck, mostly just moving things around. In
particular, renamed mc_replace_strmem.c as mac_replace_strmem.c;  the 'mac'
prefix indicates it's shared between Memcheck and Addrcheck.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1774
2003-07-22 09:12:33 +00:00
Nicholas Nethercote
c3439e49db Installing vg_skin.h and dependent .h files, on Josef's request, as it makes
separate skins easier to install.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1773
2003-07-22 07:44:21 +00:00
Nicholas Nethercote
1060d6b3e2 Fix stupid compile error; I iz stupid.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1772
2003-07-21 11:42:27 +00:00
Nicholas Nethercote
fa2c6d8424 Fix: I thought VG_(malloc)() always zeroed memory. It does at first (because
it's mmapped in from /dev/zero), but when recycled may not.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1771
2003-07-21 10:52:07 +00:00
Nicholas Nethercote
6b57397875 This commit fixed some bugs in error and suppression handling. Basically, I
had forgotten that some errors (PThread errors) are found by the core, rather
than skins and so the skin shouldn't be involved in handling them.  This commit
fixes the problem.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1770
2003-07-21 10:38:23 +00:00
Nicholas Nethercote
fea2973bd2 Added instructions on checking out from SourceForge CVS to the README file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1769
2003-07-21 10:17:58 +00:00
Julian Seward
3473810abb Close fds to avoid fd leakage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1768
2003-07-20 22:39:58 +00:00
Julian Seward
183e356f9d Fix bugs in overlap detection. Tom Hughes <thh@cyberscience.com>
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1767
2003-07-20 22:28:42 +00:00
Dirk Mueller
50a4101bdb fix realpath for Mandrake 9.1
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1766
2003-07-18 08:06:27 +00:00
Julian Seward
93caaae89e --> 20030716
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1764
2003-07-16 20:10:51 +00:00
Julian Seward
497a6bc810 Final changes for 20030716 snapshot release.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1763
2003-07-16 20:10:26 +00:00
Julian Seward
b3ff4b514a Do the symbol substitution game for glibc-2.2.93 too (Red Hat 8).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1762
2003-07-16 19:59:59 +00:00
Julian Seward
a22d206634 Make sure all the regression tests get included in the tarball created
by 'make dist'.  Being the release dude is so exciting!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1761
2003-07-16 19:03:10 +00:00
Julian Seward
419e965cd8 --> 20030715
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1760
2003-07-15 00:28:35 +00:00
Julian Seward
ef61a183a4 Changes for snapshot 20030715.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1759
2003-07-14 23:38:40 +00:00
Julian Seward
2b50eb4a3b VG_(setup_code_redirect_table): do errno etc entry-point redirection
for glibc-2.3.1 too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1758
2003-07-14 20:50:36 +00:00