3485 Commits

Author SHA1 Message Date
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
d718ce817c Track recent merging.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4376
2005-08-10 18:25:00 +00:00
Tom Hughes
d88aae8a82 Fill in some revision numbers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4375
2005-08-10 18:21:42 +00:00
Julian Seward
e2f781fd27 Reformat and update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4373
2005-08-10 17:21:30 +00:00
Tom Hughes
71c161c322 Update details of slow startup on gentoo amd64 systems.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4369
2005-08-10 13:42:50 +00:00
Julian Seward
96670a46d1 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4368
2005-08-10 12:54:53 +00:00
Julian Seward
b537ffb195 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4361
2005-08-10 11:20:44 +00:00
Cerion Armour-Brown
429d94fc43 fixed endianness bug for ppc xml output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4358
2005-08-09 22:34:18 +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
Julian Seward
5e41090846 Print all XML output with a consistent nesting style, so as to make it
easier to compare it to the output of other XML generating tools.
Regtest expected-output changes to follow.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4356
2005-08-09 22:03:08 +00:00
Julian Seward
ed702a8db4 When printing error counts, print the <unique> in the same way that
it is in the error itself.  Otherwise it's totally useless :-)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4355
2005-08-09 21:50:18 +00:00
Nicholas Nethercote
d37c5cc58d Move file to a more appropriate place.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4350
2005-08-09 00:13:48 +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
Tom Hughes
606bd75025 Fix system call name in error messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4346
2005-08-08 16:50:16 +00:00
Julian Seward
17609131fd Update summary.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4340
2005-08-08 00:53:45 +00:00
Julian Seward
782965122b Make Valgrind work again on x86 CPUs which don't have SSE. This is a
bit of an ugly hack (see comments in m_machine.c) which is suitable
for merging into 3_0_BRANCH, but should be cleaned up once that's
done.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4339
2005-08-08 00:35:46 +00:00
Tom Hughes
ebe67e6134 Check the fields of the new structure passed to sigaction individually
and only check sa_restorer if the SA_RESTORER flag is set.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4338
2005-08-07 15:16:59 +00:00
Julian Seward
d2b672b169 Valgrind-side stub for dealing with x86 sysenter artefacts from Vex.
Does not do anything yet.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4337
2005-08-07 14:49:27 +00:00
Tom Hughes
d7f4ee0a3c Enable the inotify system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4336
2005-08-06 18:07:17 +00:00
Tom Hughes
c2d4c4951a Resync system call lists with the 2.6.13-rc5 kernel source.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4335
2005-08-06 18:04:14 +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
Julian Seward
6c91c144f7 An attempt at a running summary of 3.0.0 bugs, for perusal/discussion/
modification.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4333
2005-08-06 11:48:50 +00:00
Julian Seward
79be7969a9 Oops, should have done this as soon as 3.0.0 was tagged.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4331
2005-08-06 10:37:37 +00:00
Tom Hughes
5636f53a8c If the pre-handler for the execve system call fails to state the file
being executed then propagate the error from the stat instead of just
return ENOACCES all the time. Fixes bug #110208.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4330
2005-08-05 07:46:32 +00:00
Tom Hughes
3f28625849 Implement the waitid system call. Fixes bug #110202.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4329
2005-08-05 07:32:04 +00:00
Tom Hughes
888f6e02cf Allow a NULL second argument to clock_getres. Fixes bug #110203.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4328
2005-08-05 07:22:00 +00:00
Julian Seward
ec55a5e7bb Fix up do_syscall_clone_ppc32_linux. Seems to improve thread exiting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4327
2005-08-05 02:15:18 +00:00
Julian Seward
a881c6d894 ppc32-linux: clear reservation before running thread; see attached
comment for details.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4326
2005-08-05 00:25:11 +00:00
Julian Seward
ce962acecb ppc32-linux: implement a bunch more syscalls, and also fix up clone
handling enough so that threads can successfuly be started.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4325
2005-08-05 00:10:11 +00:00
Julian Seward
9cbf8c802b ppc32-linux: bring a bunch more syscalls into circulation
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4324
2005-08-05 00:06:46 +00:00
Julian Seward
b07d3b8200 ppc32-linux only: HACK: for now, mess with the auxv handed to the
client so as to not claim that the CPU supports Altivec.  This is a
partially-successful hack to try and dissuade glibc and its minions
from doing Altivec insns.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4323
2005-08-04 23:52:21 +00:00
Nicholas Nethercote
05cf8f1611 Replace out-of-date email address.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4322
2005-08-04 19:26:54 +00:00
Julian Seward
26725a963a Change the vex external back to svn://. Not being able to commit
through an http:// external is confusing and awkward.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4321
2005-08-04 16:42:58 +00:00
Julian Seward
bef99fdde5 3.0.0 second try, sigh.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4316
2005-08-03 20:42:06 +00:00
Donna Robinson
ec68ded51c Minor tweaks to get the FAQ on one page, per nick's request
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4315
2005-08-03 20:28:33 +00:00
Donna Robinson
e27f11d02b minor tweaks
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4314
2005-08-03 18:58:45 +00:00
Julian Seward
fda7939b19 Hopefully this is the final commit for 3.0.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4313
2005-08-03 17:01:51 +00:00
Julian Seward
2af4be6fc8 Almost-final wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4312
2005-08-03 16:40:10 +00:00
Julian Seward
87673a6d4a Copy the right stuff into the tarball.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4311
2005-08-03 16:39:44 +00:00
Julian Seward
2dbebc4af2 Do per-chapter chunking for the html output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4310
2005-08-03 16:39:08 +00:00
Nicholas Nethercote
65ee9be4ef Fixed a bug in Cachegrind: it was adding instrumentation after
conditional jumps, so if those jumps were taken, the instrumentation
wasn't executed.  This was causing the I-cache access counts to be
underestimated.  

This commit puts the instrumentation before the jumps, except for the
odd case of REP instructions, giving the same behaviour as 2.4.0.
Based on a patch from Josef Weidendorfer.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4309
2005-08-02 23:07:02 +00:00
Julian Seward
e7f294bb0d Add list of fixed bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4308
2005-08-02 21:05:58 +00:00
Julian Seward
47f18d4e44 Double static limits for safety.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4307
2005-08-02 15:30:08 +00:00
Julian Seward
5fee5c070f Update NEWS a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4306
2005-08-02 15:28:07 +00:00
Julian Seward
d71b68c6a3 "Fix" (kludge) highly obscure bug in flag settings for growdown stacks
which manifested itself as unreliable behaviour with
--smc-check=stack.  The accompanying comment explains.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4305
2005-08-02 13:35:21 +00:00
Julian Seward
7b67a1249d Update this-cpu-not-supported message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4304
2005-08-01 23:41:20 +00:00
Julian Seward
2288978427 When identifying stacks so as to decide whether or not to make a self
checking translation in the case --smc-check=stack (the default),
don't use SF_GROWDOWN as an indication of stackness, since that only
is set for the main stack.  Instead establish whether code is being
taken from a stack by seeing if the requesting thread's stack pointer
points into the same area that the translation is being taken from.

This makes trampolining work even for threaded programs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4303
2005-08-01 23:25:55 +00:00