38 Commits

Author SHA1 Message Date
Florian Krohm
65d93e4de3 Make SGCheck fail with a meaningful message on unsupported platforms.
Fixes BZ #325856.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13834
2014-02-22 22:03:09 +00:00
Julian Seward
dbf9b63605 Update copyright dates (20XY-2012 ==> 20XY-2013)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658
2013-10-18 14:27:36 +00:00
Philippe Waroquiers
619be966db Allow tools to provide some statistics in suppression list produced at the end
Option -v outputs a list of used suppressions. This only gives
the nr of times a suppression was used.
For a leak search, this only gives the nr of loss records that
have been suppressed, but it does not give additional needed details
to understand more precisely what has been suppressed
(i.e. nr of blocks and nr of bytes).

=> Add in the tool interface update_extra_suppression_use and
print_extra_suppression_info functions to allow the tool to record
additioonal use statistics for a suppression. These statistics
can be done depending on the error (and its data) which is suppressed.

Use this in memcheck for the leak suppressions, to maintain and output
the nr of blocks and bytes suppressed by a suppression during
the last leak search.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13651
2013-10-17 22:10:41 +00:00
Florian Krohm
9de72049d5 Silence clang warnings for the none and exp-sgcheck tools.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13605
2013-10-02 15:37:03 +00:00
Florian Krohm
6d15b5deb4 Include pub_core/tool_clreq.h instead of valgrind.h where apropriate.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13555
2013-09-16 20:56:35 +00:00
Philippe Waroquiers
4c9052b4d6 fix incorrect lineno in supp error msgs+ -v give filename+lineno of used supp.
If a suppression file contains an error, the lineno reported could be wrong.
Also, give filename and lineno of the used suppressions in -v debugging output.

The fix consists in ensuring that tool specific read_extra function gets
the Int* lineno pointer, together with other VG_(get_line) parameters.






git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13469
2013-07-22 22:00:13 +00:00
Mark Wielaard
b81e3c86b6 Fix double 'the the' in documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13363
2013-04-05 13:19:12 +00:00
Philippe Waroquiers
089210684b fix 315959 valgrind man page has bogus SGCHECK (and no BBV) OPTIONS section
PAtch from Mark Wielaard.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13323
2013-03-10 16:20:10 +00:00
Florian Krohm
e7f4d4f57f Fix some casts that removed const-ness as pointed out by
GCC's -Wcast-qual.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13138
2012-11-24 19:41:54 +00:00
Florian Krohm
af66466ce4 Changes to allow compilation with -Wwrite-strings. That compiler option
is not used for testcases, just for valgrind proper.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13137
2012-11-23 16:17:43 +00:00
Florian Krohm
b87aa67392 Final patch for Char/HChar mixups.
Remove -Wno-pointer-sign from configure.in.
Fixes 273227.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13125
2012-11-18 00:36:15 +00:00
Florian Krohm
d0aa69c331 Fix more Char/HChar mixups. Closing in...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13119
2012-11-10 22:29:54 +00:00
Florian Krohm
25b18b0aa1 Char/HChar and constness fixes. Mostly cost center
on allocators which is always a const HChar *


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13089
2012-10-27 23:07:42 +00:00
Florian Krohm
5337376bf2 More Char/HChar fixes and constification.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13088
2012-10-27 18:39:11 +00:00
Florian Krohm
79b79d6388 First round of Char/HChar fixups for coregrind and memcheck.
Little bit of ripple in tools, too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13074
2012-10-21 19:43:43 +00:00
Florian Krohm
2546adef8a Fix a few Char/Hchar mixups in exp-sgcheck.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13056
2012-10-18 03:46:42 +00:00
Florian Krohm
7d59048401 This is the 2nd installment of the cache info reorganisation.
The host's VexArchInfo is passed to the tool instrumentation
functions. Purely mechanic patch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13031
2012-10-07 21:59:42 +00:00
Petar Jovanovic
127fcef31f Change uname based arch-check to match machine hardware name in sgcheck.
Some hardware platforms will return "unknown" for 'uname -i', so it is more
accurate and common to run 'uname -m' which returns machine hardware name.
This way, some platforms that do not support sgcheck will avoid running tests
for it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13022
2012-10-04 23:53:03 +00:00
Julian Seward
e126de2d4d Change exp-sgcheck's memcpy implementation to be memmove-like (sigh)
since it appears that some part of the vast stack of libraries that
supports LibreOffice actually abuses it thusly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12894
2012-08-24 16:42:57 +00:00
Julian Seward
4a3633e266 Update copyright dates to include 2012.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843
2012-08-05 15:46:46 +00:00
Petar Jovanovic
3acf4e19d3 exp-sgcheck is not supported for MIPS architecture.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12760
2012-07-19 15:40:48 +00:00
Florian Krohm
46b85eeb12 Require automake-1.10 for proper handling of include file dependencies
in .S files. Also included here is some cleanup, including a reversion
of r10378. Fixes bugzilla #197914.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12555
2012-05-06 03:37:25 +00:00
Florian Krohm
8853ef8bd7 Fix prerequisite to also require linux. So testcases get skipped
and do not fail on Darwin.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12261
2011-11-08 20:14:35 +00:00
Julian Seward
0d7caa744f Get a bunch more copyright dates in the right format, 20xx-2011,
so the auto-update script will handle them correctly in future.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12207
2011-10-23 07:49:30 +00:00
Julian Seward
c96096ab24 Update all copyright dates, from 20xy-2010 to 20xy-2011.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206
2011-10-23 07:32:08 +00:00
Bart Van Assche
dfcdba8bdb Make sure that exp-sgcheck/tests/stackerr passes on openSUSE 11.4 x86
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12134
2011-10-11 18:17:48 +00:00
Florian Krohm
8c0229599d Update exp file. Back trace changed due to r12108.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12125
2011-10-08 15:58:26 +00:00
Bart Van Assche
71a513f01a Format functions: change format specifier %t into %pS. Remove the _no_f_c formatting function variants.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12108
2011-10-06 19:08:37 +00:00
Florian Krohm
31bc246787 Attempt to unbreak this testcase on systems with GCC 4.5.1 and newer.
I suspect the breakage is related to GCC's debug info.
Replace initialization with explicit assignment statement.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12100
2011-10-05 03:29:57 +00:00
Bart Van Assche
4a13377cfc Helgrind and exp-sgcheck, XML error reporting: move the code printing <kind>...</kind> out of a switch statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12095
2011-10-04 16:28:42 +00:00
Florian Krohm
dbf8393445 Update for x86. This should have happened in r11741 which
changed the message format.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12078
2011-10-02 00:18:29 +00:00
Julian Seward
ad7de5b336 Delete the AIX5 port. The last release this worked for is 3.4.1,
and then only on AIX 5.2 and 5.3.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11842
2011-06-28 07:25:29 +00:00
Julian Seward
0ffb0b1095 Update expected outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11763
2011-05-17 15:52:28 +00:00
Julian Seward
ea6aa5fd25 Make this test much more independent of glibc, and update outputs
accordingly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11762
2011-05-17 15:36:01 +00:00
Julian Seward
fa642b19c5 Reorder tests poking around in the x86 instruction stream (sigh)
in order to try and avoid segfaults when we back up over a page
boundary.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11761
2011-05-16 11:49:40 +00:00
Julian Seward
e9392d2bbc Remove old exp-ptrcheck tests which were never used.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11750
2011-05-12 19:15:06 +00:00
Julian Seward
f5fb84ba81 Delete exp-sgcheck tests that are redundant following the removal of the
heap checking facilities.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11749
2011-05-12 16:38:56 +00:00
Julian Seward
b71e8bb6c5 Rename 'exp-ptrcheck' to 'exp-sgcheck' and hope this does not cause
too much build carnage.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11745
2011-05-11 16:04:28 +00:00