6403 Commits

Author SHA1 Message Date
Julian Seward
217f01f3e2 * add some assertions to frame-level wildcarding mechanism
* remove a couple of tabs

* clarify related documentation a bit



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8727
2008-11-04 11:29:19 +00:00
Julian Seward
279a7e01cf Update documentation on suppressions following addition of frame-level
wildcarding in suppressions (r8725).  Also clarify a couple of bits of
wording.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8726
2008-11-04 01:38:02 +00:00
Julian Seward
53ed6e0dd5 Improvements to the suppression mechanism:
* Allow frame-level wildcarding in suppressions.  Based on a patch by
  Akos PASZTORY.  Fixes #151612.  With this change, a line "..." in a
  suppression stacktrace matches any number of frames, including zero.

* Show line numbers in syntax errors when parsing supp files.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8725
2008-11-03 23:10:25 +00:00
Julian Seward
79765330c3 Add summaries for more than 60 bugs logged in bugzilla since 3.3.1 was
released.  Looking at this lot, you'd get the impression the system is
so bug-riddled it's amazing it works at all.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8724
2008-11-02 23:46:32 +00:00
Julian Seward
b9a0667306 Fixes for compilation warnings from the apparently very strict
gcc-4.3.2 shipped with Ubuntu 8.10.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8723
2008-11-01 23:55:32 +00:00
Julian Seward
07ac95b348 Get rid of longstanding and now pointless restriction that disallowed
using --db-attach=yes and --trace-children=yes together.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8722
2008-10-30 13:26:29 +00:00
Julian Seward
0401fb2706 Add notes on how to build/run KDE 4.2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8721
2008-10-30 13:17:35 +00:00
Julian Seward
1c03211b43 Enable sys_quotactl on amd64-linux. Possible fixes #173177.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8720
2008-10-30 13:12:50 +00:00
Julian Seward
34fa5dc31b Origin tracking: handle 16-bit excess in guest state reads/writes.
This gets rid of the messages "Approx: do_origins_Dirty(R): missed %d
bytes\n" and "Approx: do_origins_Dirty(W): missed %d bytes\n".



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8719
2008-10-30 13:08:31 +00:00
Julian Seward
5aecd38266 Add a test case for #156404 (main thread stack not getting extended
downwards properly at syscalls).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8718
2008-10-30 11:11:40 +00:00
Nicholas Nethercote
b766fb30aa A clarification.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8717
2008-10-30 02:41:13 +00:00
Julian Seward
fed86a60cb Handle a couple of syscalls needed to make Ptrcheck run bash.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8716
2008-10-30 01:44:03 +00:00
Julian Seward
1ee7f51214 Rename some local variables called 'index' to something else, to stop
gcc-3.2.2 complaining they shadow some built-in global declaration of
'index'.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8715
2008-10-27 21:42:36 +00:00
Julian Seward
fc2a1bf7dc Fix #includes in some more libiberty files that seem to have been
forgotten about in r8710.  This should _really_ make the revised
demangler independent of any system installed libiberty.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8714
2008-10-27 09:54:14 +00:00
Julian Seward
d658fbf429 Speed up VG_(am_find_nsegment). This is kind-of required by r8712,
which in turn is a fix for #156404.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8713
2008-10-27 01:25:14 +00:00
Julian Seward
57c7455121 Ensure the root thread's stack is suitably mapped before doing a
client syscall.  Believed to fix #156404.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8712
2008-10-27 01:23:04 +00:00
Julian Seward
ab002e71db Re-copy r3515 into new demangler: "Deal with apparently non-cfront
compliant new[]/delete[] manglings generated by the Portland Group's
C++ compiler."



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8711
2008-10-26 11:59:03 +00:00
Julian Seward
e9c7a88688 Update the C++ demangler to that from libiberty in the gcc svn trunk,
rev 141363.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8710
2008-10-26 11:53:30 +00:00
Julian Seward
e619a32816 Fix references to undefined labels. Why was ld even prepared to link
this before?



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8709
2008-10-26 11:06:44 +00:00
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