Commit Graph

669 Commits

Author SHA1 Message Date
Julian Seward
75d5c9fbd4 %u -> %lu
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4813
2005-09-28 20:00:30 +00:00
Julian Seward
40f6598ba4 Increase some sizes to deal better with the new multigigabyte world:
- on 64-bit platforms, double the size of the supported address
  space to 32G.

- Increase the size of the ExeContext table 6 times.  Some very
  large apps have been observed to have been doing a lot of 
  searching in the old 4999 entry table.  This table may be
  OSetified in the fullness of time.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4808
2005-09-28 11:50:20 +00:00
Nicholas Nethercote
60aae81ae6 Remove now-unused "shadow_memory" need.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4797
2005-09-27 21:35:01 +00:00
Nicholas Nethercote
01ace453bb Record an observation about addr_is_in_MAC_Chunk().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4796
2005-09-27 20:51:12 +00:00
Nicholas Nethercote
97f1d67fb7 Disable vgtest_ume, which is broken.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4791
2005-09-27 19:52:02 +00:00
Nicholas Nethercote
11dfb2e8a0 Fix scalar and cmdline[12].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4790
2005-09-27 19:46:46 +00:00
Julian Seward
cc8ccbbfb4 This commit merges in changes from branches/ASPACEM (specifically,
changes from r4341 through r4787 inclusive).  That branch is now dead.
Please do not commit anything else to it.

For the most part the merge was not troublesome.  The main areas of
uncertainty are:

- build system: I had to import by hand Makefile.core-AM_CPPFLAGS.am
  and include it in a couple of places.  Building etc seems to still
  work, but I haven't tried building the documentation.

- syscall wrappers: Following analysis by Greg & Nick, a whole lot of
  stuff was moved from -generic to -linux after the branch was created.
  I think that is satisfactorily glued back together now.

- Regtests: although this appears to work, no .out files appear, which
  is strange, and makes it hard to diagnose regtest failures.  In
  particular memcheck/tests/x86/scalar.stderr.exp remains in a 
  conflicted state.

- amd64 is broken (slightly), and ppc32 will be unbuildable.  I'll
  attend to the former shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4789
2005-09-27 19:20:21 +00:00
Nicholas Nethercote
a00ea1b94b fix for #113230
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4751
2005-09-24 19:42:41 +00:00
Cerion Armour-Brown
ffa2cf0ac5 add case Iop_V128to32 to memcheck
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4626
2005-09-12 22:29:38 +00:00
Julian Seward
29058c3576 Fix suspicious code in the memcheck instrumenter which probably
rendered many of the assertions in this file ineffective.  Spotted by
Tom Truscott.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4587
2005-08-30 12:54:36 +00:00
Nicholas Nethercote
e715ae93fa add comment
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4491
2005-08-24 19:55:51 +00:00
Nicholas Nethercote
7e60141d65 Remove unnecessary #includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4490
2005-08-24 19:50:39 +00:00
Nicholas Nethercote
8232209275 Make "silly arg" message 64-bit clean.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4476
2005-08-23 16:10:36 +00:00
Julian Seward
8be9f5eef7 Fix signedness-of-char problem which caused this to segfault on ppc32-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4462
2005-08-19 09:07:34 +00:00
Nicholas Nethercote
224dad480c Make it possible to match against "???" line in suppressions,
using "obj:*" or "fun:*".  Also generate "obj:*" for such lines
with --gen-suppressions.  Includes a regtest.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4447
2005-08-18 15:49:21 +00:00
Nicholas Nethercote
64974a1033 Added VG_(OSet_LookupWithCmp)(), which can be useful.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4444
2005-08-17 21:06:07 +00:00
Nicholas Nethercote
dbae71819c malloc_usable_size() was totally broken, crashing immediately.
I guess it's not very widely used :)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4439
2005-08-17 04:03:31 +00:00
Nicholas Nethercote
39589630bf minor fixes (probably not worth backporting)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4434
2005-08-16 03:42:44 +00:00
Nicholas Nethercote
d5f110a674 wibbles
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4433
2005-08-16 03:34:56 +00:00
Nicholas Nethercote
d5738fd68d lots of little wibbles
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4432
2005-08-16 03:29:50 +00:00
Nicholas Nethercote
233a1fc175 How do you like this: there was no proper description in the manual
of leak error messages, nor any examples.  So I added one, and moved
what info there was about leaks out of its separate section, and into
the section describing all the kinds of error message.

BACKPORT TO 3_0_X



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4427
2005-08-16 02:20:17 +00:00
Nicholas Nethercote
b329702e3b A few minor manual updates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4419
2005-08-15 04:26:13 +00:00
Nicholas Nethercote
7ec1597605 Bleh, forgot this.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4418
2005-08-15 02:06:39 +00:00
Nicholas Nethercote
e009050880 Whoops... I guess the regtests don't exercise that code...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4416
2005-08-15 01:54:05 +00:00
Nicholas Nethercote
fcdc60441e Something I realised recently: in C, iterators are much better than
higher-order functions for traversing data structures.  The higher-order
approach is too clumsy due to the lack of polymorphism and closures;  you
have to use void* too much and it is more verbose than it should be.

Hence, I replaced all the uses of HT_first_match() and
HT_apply_to_all_nodes() with equivalent uses of the hashtable iterator.
Also replaced higher-order traversal functions for Memcheck's freed-list
and the thread stacks with iterators.  That last change changes the
core/tool interface, so I've increased the version number.







git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4415
2005-08-15 01:52:02 +00:00
Nicholas Nethercote
756f513b51 Add a thorough unit test for m_oset. Note that this is Memcheck
testing code that's part of Valgrind, which is a good thing.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4412
2005-08-14 22:43:53 +00:00
Nicholas Nethercote
7062ca6bc7 Remove more now-unnecessary casts, thanks to the recent VgHashTable changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4409
2005-08-14 18:32:16 +00:00
Nicholas Nethercote
8028d5a979 Remove ancient backwards compatibility code which is no longer needed, since
backwards compatibility was broken in various other ways by 3.0.0.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4408
2005-08-14 18:24:44 +00:00
Nicholas Nethercote
5d07a9ad26 Changed many, but not all, of the VgHashNode* parameters and return
types in m_hashtable.c to void*.  This requires no changes to code
already using VgHashTables, but it allows some previously-required casts
to be removed.  I also changed Memcheck and Massif by removing some of
these now-unnecessary casts.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4404
2005-08-14 06:24:20 +00:00
Nicholas Nethercote
c37f2349c6 fix an output for xml1
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4383
2005-08-11 02:48:11 +00:00
Nicholas Nethercote
220b4e8224 Tighten up update_extra() for Memcheck.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4382
2005-08-11 02:46:54 +00:00
Nicholas Nethercote
d892f660ec Streamline handling of realloc() in Memcheck and Massif by using
the newly added VgHashTable functions.  Also some other minor changes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4380
2005-08-11 02:09:25 +00:00
Nicholas Nethercote
8515143ce8 Get rid of some stupidity:
- Added some useful hash table functions (vanilla lookup() and remove()).
  [Actually, I accidentally added them with my previous commit]
  
  Replaced various simple uses of VG_(HT_get_node) with these new functions. 

- Passing record_freemismatch_error() the MAC_Chunk of the freed heap block.
  So now we don't need to call describe_addr() to re-find that block, which
  means that we can remove the MAC_Chunk from the malloc_list earlier, rather
  than having to do a lookup and then later remove it with the stupid removal
  handle returned by VG_(HT_get_node)().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4379
2005-08-11 00:47:10 +00:00
Nicholas Nethercote
7f8c275c59 Give variable a better name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4378
2005-08-11 00:06:36 +00:00
Nicholas Nethercote
a6f1874fd2 Use memcpy() instead of a loop.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4377
2005-08-10 21:25:36 +00:00
Julian Seward
a31dc3adf0 Update regtest output after r4356. Will update 64-bit expected output
tomorrow.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4357
2005-08-09 22:21:14 +00:00
Tom Hughes
9ee36c69b4 Fix up the sigaction results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4347
2005-08-08 18:32:54 +00:00
Julian Seward
b725cfc2e2 Updated expected output following %eflags.ac simulation fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4334
2005-08-06 12:26:26 +00:00
Nicholas Nethercote
4054aeb4c2 Remove temporary file once regtest completes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4301
2005-08-01 15:12:23 +00:00
Nicholas Nethercote
d597c842e5 Add explanation of filename.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4300
2005-08-01 15:11:15 +00:00
Nicholas Nethercote
63f82da63d fix breakage/wibbles
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4261
2005-07-25 23:30:24 +00:00
Nicholas Nethercote
a269d9cb78 Clean up command-line args info in the manual and man page for 3.0.0
release.  



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4259
2005-07-25 23:18:44 +00:00
Nicholas Nethercote
20525216ee Tweak order of Memcheck's cmd-line options.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4258
2005-07-25 23:18:04 +00:00
Nicholas Nethercote
1f14543221 Update docs for 3.0.0 release. Still to do: update command line options.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4246
2005-07-25 00:12:19 +00:00
Julian Seward
a421699ed2 Rename tags in XML <status> block.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4240
2005-07-24 07:33:15 +00:00
Tom Hughes
33b11a393c Add some more intercept rules for ld.so on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4222
2005-07-21 15:25:04 +00:00
Nicholas Nethercote
7d2702cc92 Fix broken tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4207
2005-07-20 03:03:44 +00:00
Julian Seward
ae8310aa86 Use %t rather than %s in some places for constructing XML output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4188
2005-07-19 15:00:25 +00:00
Nicholas Nethercote
93634bbe44 Add note about justified pedantry of overlap checking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4174
2005-07-19 00:48:55 +00:00
Julian Seward
ce1682b2d8 Track API changes in vex r1272.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4159
2005-07-18 11:41:15 +00:00