7710 Commits

Author SHA1 Message Date
Julian Seward
f8acdbc2e0 Fix a couple of nits picked up by gcc-4.5, which is more warningful than 4.4.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10876
2009-08-27 23:22:39 +00:00
Bart Van Assche
1bdac0e905 Updated expected output after r10874.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10875
2009-08-27 18:09:16 +00:00
Bart Van Assche
f291b29d30 Fixed a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10874
2009-08-27 06:16:24 +00:00
Robert Walsh
1a3ad1987f Remove a trailing whitespace.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10873
2009-08-27 05:15:53 +00:00
Bart Van Assche
3a8937832e Added output variant for Linux systems without readlinkat().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10872
2009-08-26 18:45:46 +00:00
Bart Van Assche
908594dfe1 Added regression tests that verify the following behavior:
- On Linux, whether Valgrind properly intercepts the system calls that access
  /proc/self/cmdline, /proc/<pid>/cmdline, /proc/self/exe and /proc/<pid>/exe.
- On Darwin, whether Valgrind does not modify the behavior of the system calls
  that access the aforementioned files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10871
2009-08-26 18:11:18 +00:00
Bart Van Assche
7bb771f714 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10870
2009-08-26 17:27:10 +00:00
Bart Van Assche
cb50dd23d3 Updated Subversion ignore lists.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10869
2009-08-26 12:16:45 +00:00
Bart Van Assche
82e0033fdd Switched back from dynamic detection of whether the proc filesystem
is mounted to compile-time logic in order to minimize the differences
in behavior with Valgrind version 3.5.0.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10868
2009-08-25 20:15:41 +00:00
Bart Van Assche
772166c146 Renamed the function VG_(have_proc_filesystem)() into
VG_(is_procfs_mounted)(). The old name was derived from the name
of the preprocessor macro HAVE_PROC while the new name is a more
accurate description of what this function does.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10867
2009-08-25 17:34:58 +00:00
Bart Van Assche
d6bedf985d Compiles again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10863
2009-08-23 11:17:25 +00:00
Bart Van Assche
dbdfae4ced The format attribute may be repeated in the function definition but does not have to.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10862
2009-08-23 11:14:12 +00:00
Bart Van Assche
f71ff79980 Fixed a declaration: function attributes must be inserted after the return type instead of before, otherwise gcc 4.4 ignores the attribute declaration.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10861
2009-08-23 11:11:36 +00:00
Bart Van Assche
6b9dcdcd97 The configure-time test whether the proc filesystem is mounted (introduced
in r10156) broke cross-compilation. This patch converts the configure-time
test into a runtime test. Should fix bug #204843.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10860
2009-08-23 09:53:27 +00:00
Bart Van Assche
81e7391bef Fixed a compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10859
2009-08-23 09:48:56 +00:00
Julian Seward
8dd783a109 Bump version number on trunk.
(is that the correct convention, "3.6.0.SVN" ?)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10856
2009-08-20 20:20:05 +00:00
Bart Van Assche
ba7848aca3 Fixed bug #204317: regression tests none/tests/cmdline[12] fail if
the gdb path detected by configure differs from /usr/bin/gdb.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10855
2009-08-20 18:38:59 +00:00
Tom Hughes
08ce12e17d Add some extra debugging to the launcher.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10854
2009-08-20 07:56:45 +00:00
Bart Van Assche
dcb804cbc5 Removed the most recently added DRD suppression pattern (was added
to make drd/tests/qt4_mutex pass on Fedora 11 x86_64). Further
analysis has shown that this is an issue in libQtCore that should be
fixed instead of suppressed. Will file a bug report in the Fedora
bugzilla instead.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10853
2009-08-20 06:07:10 +00:00
Nicholas Nethercote
0e585ffd86 Add an entry for the missing 2.4.1.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10852
2009-08-20 00:22:10 +00:00
Julian Seward
bce1c51ad9 Be consistent about the 3.5.0 release date.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10851
2009-08-19 22:40:53 +00:00
Julian Seward
39ef050fde Fix a couple of buglets in the 3.5.0 release info.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10850
2009-08-19 22:18:35 +00:00
Julian Seward
950461c895 Finalise 3.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10846
2009-08-19 11:38:54 +00:00
Julian Seward
5632245432 Fix whitespace-skipping loop. (Konstantin Serebryany) (see #204377)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10845
2009-08-19 10:32:49 +00:00
Bart Van Assche
cdee0981b5 Generalized the most recently added suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10844
2009-08-18 20:35:17 +00:00
Bart Van Assche
b3c9d22708 Added explicit constructor and destructor to class IncThread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10843
2009-08-18 20:29:26 +00:00
Bart Van Assche
0b19a31652 Added a suppression pattern for libQtCore.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10842
2009-08-18 20:18:41 +00:00
Tom Hughes
6098f10fee The linker in Fedora Rawhide seems to be using ELFOSABI_LINUX as
the ABI in the ELF files it generates instead of ELFOSABI_SYSV as
has been used to date.

This was causing us to use the 64 bit backend to run 32 bit
programs as the launcher failed to identify them as 32 bit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10841
2009-08-18 14:12:48 +00:00
Julian Seward
e2f2c8a07d Add a list of fixed bugs for 3.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10840
2009-08-18 13:47:31 +00:00
Vince Weaver
2e7d912078 Make the ll test case use hex values for char constants instead
of ' delineated constants, due to gnu as bug 6878.  This caused
warnings on Fedora 10.

This addresses bug 203937.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10839
2009-08-18 01:56:11 +00:00
Vince Weaver
54d176e15e Work around a binutils limitation on SuSE 9.1
by hand-coding the 32-bit fldcw instructions,
as the assembler gives an error when
trying to assemble them.  The generated binary
is identical to one generated on a system
with working binutils.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10838
2009-08-18 00:21:51 +00:00
Julian Seward
90346d8aad Back out r10385 (Change demangler to not use excessive space from
stack) pending further investigations, as per discussion at
http://bugs.kde.org/show_bug.cgi?id=197988.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10837
2009-08-17 16:36:11 +00:00
Julian Seward
73c516ce43 Include missing file, else tarball build breaks on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10836
2009-08-17 16:02:16 +00:00
Julian Seward
ece823c75b Remove an empty <itemizedlist> which was causing the PDF doc build to fail.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10835
2009-08-17 11:27:45 +00:00
Julian Seward
3635254947 First tarball-test point for 3.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10834
2009-08-16 23:22:51 +00:00
Julian Seward
f511ab0234 Bump version.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10833
2009-08-16 23:01:41 +00:00
Julian Seward
1d4a525a8c Comment that we never actually expect to see the string ]]> in a
generated suppression, and hence the problem of having to split it
into multiple CDATA blocks is moot.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10832
2009-08-16 22:56:53 +00:00
Julian Seward
45b8f5e4bf Increase the maximum size of the conflict cache even more, to 30
million.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10831
2009-08-16 22:52:29 +00:00
Julian Seward
d5b1173d7b Minor changes w.r.t. --read-var-info=, threading support, and
supported glibc versions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10830
2009-08-16 22:49:53 +00:00
Julian Seward
29a513828a Update the Helgrind manual for 3.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10829
2009-08-16 22:47:02 +00:00
Julian Seward
1d1c348f85 ppc32-linux: di_notify_mmap: accept data sections mapped rwx as well as ones
mapped rw-.  Fixes #190820.  Really, this logic is still pretty ropey; we
could do a lot better here.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10828
2009-08-16 01:48:35 +00:00
Nicholas Nethercote
f9d42655d8 tweak 32/64-bit darwin stuff
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10827
2009-08-16 00:20:58 +00:00
Nicholas Nethercote
9acc4cc4d8 Fix the access_extended wrapper, which was rather broken. That's what I get
for not testing properly.  Added a regtest for it too.  Fixes bug 200760
(again, properly this time).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10826
2009-08-16 00:00:17 +00:00
Julian Seward
b58b99e9aa Followup to r10822: send the CDATA text to the XML channel, not the
text one.  Duh.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10825
2009-08-15 23:33:04 +00:00
Nicholas Nethercote
b087fe5ad3 Fix "make check" on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10824
2009-08-15 23:26:12 +00:00
Julian Seward
4b9ddd9604 Fix a couple of errors in the revised XML generation that were
spotted by Ashley Pittman:

* If I specify --xml-file=<file> but not --xml=yes I get partial
  output in the xml file.

* Using log file qualifiers with XML results in the xml for the
  qualifier being put to stdout.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10823
2009-08-15 23:05:34 +00:00
Julian Seward
5b1edb07f6 When generating XML output for suppressions, print the suppression
both wrapped up in XML tags (as before) but also in plain text in a
sequence of CDATA blocks.  Normally only one, but in the worst case
the raw data will have ]]> in it, in which case it needs to be split
across two CDATA blocks.

This apparently simple change involved a lot of refactoring of the
suppression printing machinery:

* in the core-tool iface, change "print_extra_suppression_info" (which
  prints any auxiliary info) to "get_extra_suppression_info", which
  parks the text in a caller-supplied buffer.  Adjust tools to match.

* VG_(apply_StackTrace): accept a void* argument, which is passed to
  each invokation of the functional parameter (a poor man's closure
  implementation).

* move PRINTF_CHECK into put_tool_basics.h, where it should have been
  all along

* move private printf-into-an-XArray-of-character functions from
  m_debuginfo into m_xarray, and make them public

* gen_suppression itself: use all the above changes.  Basically we
  always generate the plaintext version into an XArray.  In text mode
  that's just printed.  In XML mode, we print the XMLery as before,
  but the plaintext version is dumped into a CDATA block too.

* update the Protocol 4 specification to match all this.

This still isn't 100% right in the sense that the CDATA block data
needs to be split across multiple blocks if it should ever contain the
CDATA end mark "]]>".  The Protocol 4 spec has this right even though
the implementation currently doesn't.

Fixes #191189.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10822
2009-08-15 22:41:51 +00:00
Nicholas Nethercote
1899b75e97 Minor update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10821
2009-08-15 21:50:44 +00:00
Bart Van Assche
fc81353aa2 Minor manual update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10820
2009-08-15 13:31:41 +00:00
Bart Van Assche
80fdc5a9e9 - Made the ANNOTATE_RWLOCK_*() macros binary compatible with Helgrind.
- Added two additional regression tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10819
2009-08-15 10:50:35 +00:00