6384 Commits

Author SHA1 Message Date
Julian Seward
018559c77d Merge howto_profile.txt from branches/YARD and BIG_APP_NOTES.txt from
branches/HGDEV.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8708
2008-10-25 16:30:38 +00:00
Julian Seward
35c28b721f Merge Helgrind from branches/YARD into the trunk. Also includes some
minor changes to make stack unwinding on amd64-linux approximately
twice as fast as it was before.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8707
2008-10-25 16:22:41 +00:00
Josef Weidendorfer
4d822b7bd3 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8706
2008-10-24 19:17:52 +00:00
Josef Weidendorfer
f7757e3ac6 Callgrind manual: add section on client requests and note about fork().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8705
2008-10-24 18:50:04 +00:00
Josef Weidendorfer
1b0a5e29a6 Fix for bug 166581: use correct output file name after PID change
This is a little tricky because
* we want to check directly at startup whether the output file
  can be written, thus the file name is set at beginning.
* a fork changes the PID in the child, and thus (potentially) the
  output file name has to be updated. This best is directly before
  generating the profile dump.
* the child after fork needs to be controllable via callgrind_control.
  The setup of the control interface needs the new file name, too.
The fix is to allow multiple calls of CLG(init_dumps), everytime the
output file name is needed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8704
2008-10-24 18:50:00 +00:00
Julian Seward
581844c930 Remove old text-mode only version of the documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8703
2008-10-23 22:16:41 +00:00
Julian Seward
a11c045d49 XML-ise exp-ptrcheck's documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8702
2008-10-23 13:15:23 +00:00
Julian Seward
e2b15887e6 get_Form_contents: handle DW_FORM_block2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8701
2008-10-23 11:13:05 +00:00
Julian Seward
2db480e222 Tolerate apparently broken Dwarf3 generated by gcc (GCC) 4.4.0
20081017 (experimental): accept DW_TAG_enumerator with only a
DW_AT_name but no DW_AT_const_value.  This is in violation of the
Dwarf3 standard.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8700
2008-10-23 10:54:40 +00:00
Julian Seward
568116b226 Add further zlib suppressions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8699
2008-10-23 10:16:02 +00:00
Julian Seward
94b473cf2b Read suppression files in 256 byte chunks, not 64 byte chunks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8698
2008-10-23 10:15:37 +00:00
Julian Seward
fbdd00b6e0 gcc-4.4.0 (snapshot) started complaining about buf.sem_nsems being
uninitialised in get_sem_count().  This makes it quiet.  I am not sure
whether get_sem_count() was correct or not without it (probably was
OK).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8697
2008-10-23 09:46:59 +00:00
Julian Seward
2d9f215985 Don't assert on icc9 generated Dwarf3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8696
2008-10-22 15:49:59 +00:00
Julian Seward
78116a4c41 Improve suppressions for zlib-1.2.x. Needs further work, but this
is a start.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8695
2008-10-22 09:21:09 +00:00
Julian Seward
81d54faef4 Updated expected output following changes in r8689.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8694
2008-10-22 08:51:37 +00:00
Julian Seward
576dd1920b Make VG_(dup2) compile on AIX.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8693
2008-10-22 00:57:29 +00:00
Julian Seward
36f5dd1e2c Track recent AIX 5.3 updates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8692
2008-10-22 00:56:53 +00:00
Julian Seward
a73c4edc89 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8691
2008-10-21 23:15:39 +00:00
Julian Seward
34c70c59ea Don't simply break the build if gcc doesn't provide the require primitives on ppc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8690
2008-10-21 23:12:56 +00:00
Julian Seward
6e5ef25c74 * intercept stpcpy
* reorder declarations to make them be the same as in mc_replace_strmem.c.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8689
2008-10-21 23:11:38 +00:00
Julian Seward
6c6bd828ac Handle ppc32/64 VRSAVE accesses.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8688
2008-10-21 23:10:18 +00:00
Julian Seward
c8e66b2f78 Update suppressions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8687
2008-10-21 23:09:25 +00:00
Julian Seward
25445f9819 On ppc32/64 we don't have a reliable way to detect function entries
and exits at the moment.  So disable stack array bounds checking for
ppc32/64 platforms.  Also (unnecessarily) disables global array bounds
checking on those platforms.

Add a flag --enable-sg-checks=no|yes [yes] so that stack and global
checking can be optionally disabled on any platform.  This is useful
because stack and global checking is much more expensive than heap
checking, and so it may be desirable to disable it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8686
2008-10-20 23:33:49 +00:00
Julian Seward
69d4400c74 Futz with debug printing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8685
2008-10-20 22:27:52 +00:00
Julian Seward
44d2f617a5 Change the default PIE load address from 0x100000 (1MB) to 0x108000,
to keep ppc32-linux happy.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8684
2008-10-20 22:24:31 +00:00
Julian Seward
1eceb4282b Dwarf3 variable & type reader: use 64-bit numbers throughout to
represent the sizes of types, even on 32-bit hosts, where a type with
a size >= 2^32 is, well, if not meaningless, then at least impossible
to instantiate.  This is of course motivated by reality .. on ppc32
SUSE11.0, the debuginfo for glibc-2.8 appears to contain a declaration
amounting to

  char __EH_FRAME_BEGIN__ [4294967296]

Really.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8683
2008-10-20 16:08:55 +00:00
Julian Seward
fe266da253 Adjust line spacing following r8645, so that .stderr output is
as expected once again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8682
2008-10-20 11:29:51 +00:00
Julian Seward
cae30c83c2 Add a not very good test pertaining to the preening of global Invars
upon unmapping of a shared object, in sg_main.c.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8681
2008-10-20 11:14:50 +00:00
Julian Seward
587966f5ef Support a couple more syscalls needed for running KDE4 stuff on amd64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8680
2008-10-20 10:30:08 +00:00
Julian Seward
427eb60340 Re-enable preening of global invariants. (This happens when a .so is
unmapped, and that .so contains global variables that were accessed
while it was mapped in.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8679
2008-10-20 10:25:16 +00:00
Julian Seward
26e4f5fac5 Set average translation size plausibly, so as to avoid excessive
retranslations caused by the default size.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8678
2008-10-20 10:23:46 +00:00
Julian Seward
d18bee612c Merge (from branches/PTRCHECK r8599) a suppression file for exp-ptrcheck.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8677
2008-10-19 18:58:13 +00:00
Julian Seward
c50d12960e get_Seg_containing_addr() (in h_main.c): remove naive algorithm that
searches through all live Segs and replace it with one which is O(log
N) in the number of live Segs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8676
2008-10-18 19:55:31 +00:00
Julian Seward
3088ceea80 Remove five carriage returns introduced in r8665, so the expected outputs
match the actual outputs again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8675
2008-10-18 19:16:57 +00:00
Bart Van Assche
0a25936ab6 Replaced test for FILE::_lock by a more direct test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8670
2008-10-13 19:22:35 +00:00
Nicholas Nethercote
0cf8a14c70 - Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
tools.
- Factor out 'execv' from 'system' and expose it to tools.

Partly based on a patch from Robert O'Callahan.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8669
2008-10-13 04:19:15 +00:00
Nicholas Nethercote
cc2603ae7a Patch from Robert O'Callahan:
create and expose 'dup2'


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8667
2008-10-12 19:53:28 +00:00
Nicholas Nethercote
d33b3e0d24 Patch from Robert O'Callahan:
make realloc(NULL, size) behave like malloc(size), and make
  realloc(ptr, 0) behave like free(ptr), as the real libc realloc does.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8666
2008-10-12 19:51:41 +00:00
Nicholas Nethercote
ea36ea5a4e Avoid warnings caused by mixed decls and code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8665
2008-10-12 19:50:51 +00:00
Bart Van Assche
080aebcc9f Added yet another suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8663
2008-10-11 19:37:45 +00:00
Bart Van Assche
49456aef12 Removed #define _IO_MTSAFE_IO again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8662
2008-10-11 19:25:18 +00:00
Bart Van Assche
4842d4beaf Removed inclusion of <bits/libc-lock.h>.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8661
2008-10-11 19:04:40 +00:00
Bart Van Assche
4edd3323a0 Make regression test output independent of the presence of glibc debug information.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8660
2008-10-11 18:47:54 +00:00
Bart Van Assche
067023d4a2 Added check for the include file <bits/libc-lock.h>
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8659
2008-10-11 18:30:20 +00:00
Bart Van Assche
f09070a08c Suppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8658
2008-10-11 18:29:46 +00:00
Bart Van Assche
7e80a4d9b2 Increased gcc version to 4.3.2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8657
2008-10-11 18:28:34 +00:00
Bart Van Assche
e9a7bafd89 Added paragraph "Using the POSIX Threads API Effectively."
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8656
2008-10-11 18:28:12 +00:00
Bart Van Assche
688a7ee656 Added omp_printf regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8655
2008-10-11 18:04:52 +00:00
Bart Van Assche
ccd9aa9bd5 Added command-line option -h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8654
2008-10-11 18:03:27 +00:00
Julian Seward
00cb35ba07 get_IntRegInfo(x86): handle missing %bh case (Jim Clause)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8653
2008-10-11 10:18:16 +00:00