]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
11 years agoIn filter_stderr_basic do not remove lines beginning with
Florian Krohm [Tue, 11 Aug 2015 20:37:28 +0000 (20:37 +0000)] 
In filter_stderr_basic do not remove lines beginning with
--pid:
i.e. debug output. Asserts originating from the address space
manager look exactly like that and we do not want to filter those
out by default.
Remove some specialised filter scripts that are no longer needed
and update a few .vgtest files accordingly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15519

11 years agoAdd support for repository cache protocol version 26.
Ivo Raisr [Tue, 11 Aug 2015 09:12:40 +0000 (09:12 +0000)] 
Add support for repository cache protocol version 26.
Patch contributed by Tomas Jedlicka <jedlickat@gmail.com>.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15518

11 years agoBug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.
Mark Wielaard [Sun, 9 Aug 2015 22:37:52 +0000 (22:37 +0000)] 
Bug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15517

11 years agoWhen profiling memory events in memcheck, event counts larget
Florian Krohm [Sun, 9 Aug 2015 20:55:39 +0000 (20:55 +0000)] 
When profiling memory events in memcheck, event counts larget
than INT_MAX have been observed in practice. Make counters
64 bit entities.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15516

11 years agoConsistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
Florian Krohm [Sun, 9 Aug 2015 20:29:18 +0000 (20:29 +0000)] 
Consistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
go wrong. As we can tell from the error messages what whent wrong
there is no need to have different exit codes to distinguish.
Spotted by Matthias Schwarzott.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15515

11 years agoFix a few function declarations.
Florian Krohm [Sun, 9 Aug 2015 16:27:44 +0000 (16:27 +0000)] 
Fix a few function declarations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15514

11 years agoRemove duplicate definition ofVALGRIND_HG_ENABLE_CHECKING , wrongly introduced in...
Philippe Waroquiers [Sun, 9 Aug 2015 14:43:33 +0000 (14:43 +0000)] 
Remove duplicate definition ofVALGRIND_HG_ENABLE_CHECKING , wrongly introduced in rev 15207

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15513

11 years agoFix another GCC 5.1 warning.
Florian Krohm [Sun, 9 Aug 2015 08:54:27 +0000 (08:54 +0000)] 
Fix another GCC 5.1 warning.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15512

11 years agoFix build breakage introduced in r15510.
Florian Krohm [Sun, 9 Aug 2015 08:16:54 +0000 (08:16 +0000)] 
Fix build breakage introduced in r15510.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15511

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Sat, 8 Aug 2015 21:45:33 +0000 (21:45 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15510

11 years agoSimplify the build script a lot by using the download_prerequisites
Florian Krohm [Sat, 8 Aug 2015 21:22:55 +0000 (21:22 +0000)] 
Simplify the build script a lot by using the download_prerequisites
script and build prerequisites in tree. Suggested by Dimitry <dimhen@gmail.com>
Also add --disable-bootstrap and some verbiage as to how to speed
up the GCC build even further.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15509

11 years agoFix two more format inconsistencies found on s390. The one
Florian Krohm [Sat, 8 Aug 2015 21:08:31 +0000 (21:08 +0000)] 
Fix two more format inconsistencies found on s390. The one
in m_stacktrace.c also existed for other architectures. Fixed
as well.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15508

11 years agoInitial checkin
Florian Krohm [Sat, 8 Aug 2015 14:07:07 +0000 (14:07 +0000)] 
Initial checkin

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15507

11 years agoRemoved unused code that has been lying around since the major refactoring
Julian Seward [Sat, 8 Aug 2015 07:18:08 +0000 (07:18 +0000)] 
Removed unused code that has been lying around since the major refactoring
of this file a couple of years back.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3168

11 years agoDocument another limitation of the Solaris port
Ivo Raisr [Sat, 8 Aug 2015 00:21:26 +0000 (00:21 +0000)] 
Document another limitation of the Solaris port
regarding to AT_SUN_SYSSTAT_ADDR and AT_SUN_SYSSTAT_ZONE_ADDR.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15506

11 years agoDisable gdb XML file for TileGX
Zhi-Gang Liu [Fri, 7 Aug 2015 13:25:24 +0000 (13:25 +0000)] 
Disable gdb XML file for TileGX
There will be no support --vgdb-shadow-registers=yes
for TileGX platform.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15505

11 years agoEnsure gdbserver_tests/mcbreak.vgtest works with gcc 4.9
Philippe Waroquiers [Thu, 6 Aug 2015 16:42:12 +0000 (16:42 +0000)] 
Ensure gdbserver_tests/mcbreak.vgtest works with gcc 4.9
At least on x86+gcc4.9, the test fails because step+finish
makes the program stop on the breakme call line (after the call)
instead of reaching line 120.
So; change the gdb commands so as to ensure we reach line 120

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15504

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Thu, 6 Aug 2015 12:11:33 +0000 (12:11 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15503

11 years agoAs per discussion with Julian comment out some dead assignments.
Florian Krohm [Thu, 6 Aug 2015 09:34:20 +0000 (09:34 +0000)] 
As per discussion with Julian comment out some dead assignments.
Now matches what is done for arm64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15502

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Thu, 6 Aug 2015 09:00:48 +0000 (09:00 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15501

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Wed, 5 Aug 2015 22:27:24 +0000 (22:27 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15500

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Wed, 5 Aug 2015 21:16:09 +0000 (21:16 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15499

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Wed, 5 Aug 2015 19:04:51 +0000 (19:04 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15498

11 years ago(try to) avoid tc09_bad_unlock random failure
Philippe Waroquiers [Wed, 5 Aug 2015 17:43:11 +0000 (17:43 +0000)] 
(try to) avoid tc09_bad_unlock random failure

tc09_bad_unlock fails randomly for the following reason:
Thread 1 is creating a lock in a stack variable and locks it.
It then clones a Thread 2 that will unlock this lock.
The test fails if the Thread 2 unlocks the lock while the
main thread is still just after the clone syscall:
There is no unwind info in this area, and so doing a stacktrace
implies a nasty hack (see hg_main.c evh__pre_thread_ll_create).

There is no such hack when describing the address of the lock
(as there is no logic in the 'normal' stack trace to detect we are
in the clone syscall code).
In such a case, the unwind fail, and the lock address description
lacks the frame nr derived from the captured stack trace.

Adding --fair-sched=yes seems to make a more reproducible test.

Note that the proper solution to all these 'racy helgrind regtests'
would be to add some synchronisations operations between threads
that helgrind does not observe (e.g. using a technique similar to
the pipe big lock) and have correct (but invisible to helgrind) synchronisation
between the threads actions needed for a reproducible regtest.

Not very cheap to develop, --fair-sched=try is cheap and easy
so use that till someone courageous implements non visible synchronisation

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15497

11 years agoFix typo: add missing space between $(AM_CFLAGS) and @FLAG_FSANITIZE@
Philippe Waroquiers [Wed, 5 Aug 2015 16:34:41 +0000 (16:34 +0000)] 
Fix typo: add missing space between $(AM_CFLAGS) and @FLAG_FSANITIZE@
(spotted by Bart and Florian).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15496

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Wed, 5 Aug 2015 14:38:57 +0000 (14:38 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15495

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Wed, 5 Aug 2015 13:46:58 +0000 (13:46 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15494

11 years agoAdd a comment.
Florian Krohm [Wed, 5 Aug 2015 13:25:58 +0000 (13:25 +0000)] 
Add a comment.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15493

11 years agoThe number of elements in a RangeMap cannot be negative.
Florian Krohm [Wed, 5 Aug 2015 13:23:11 +0000 (13:23 +0000)] 
The number of elements in a RangeMap cannot be negative.
Let the return type of VG_(sizeRangeMap) reflect that.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15492

11 years agoThe number of elements in an OSet cannot be negative.
Florian Krohm [Wed, 5 Aug 2015 12:09:55 +0000 (12:09 +0000)] 
The number of elements in an OSet cannot be negative.
Let the return type of VG_(OSetGen_Size) reflect that.
Also fix a few casts.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15491

11 years agoThe number of elements in a hash table cannot be negative.
Florian Krohm [Wed, 5 Aug 2015 11:26:10 +0000 (11:26 +0000)] 
The number of elements in a hash table cannot be negative.
Let the return type of VG_(HT_count_nodes) reflect that.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15490

11 years agoAdd missing header files.
Florian Krohm [Wed, 5 Aug 2015 07:48:32 +0000 (07:48 +0000)] 
Add missing header files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15489

11 years agoLet "make distclean" remove generated tilegx instruction test files
Zhi-Gang Liu [Wed, 5 Aug 2015 02:38:10 +0000 (02:38 +0000)] 
Let "make distclean" remove generated tilegx instruction test files

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15488

11 years agoFix issue of "make dist BUILD_ALL_DOCS=no"
Zhi-Gang Liu [Wed, 5 Aug 2015 01:50:59 +0000 (01:50 +0000)] 
Fix issue of "make dist BUILD_ALL_DOCS=no"

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15487

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Tue, 4 Aug 2015 21:26:10 +0000 (21:26 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15486

11 years agoEnsure libvex tests in none are compiling on amd64, when configuring for 32 bits...
Philippe Waroquiers [Tue, 4 Aug 2015 19:25:53 +0000 (19:25 +0000)] 
Ensure libvex tests in none are compiling on amd64, when configuring for 32 bits only
Patch from Matthias Schwarzott

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15485

11 years agoRefine NEWS entry for memcheck xb monitor command
Philippe Waroquiers [Tue, 4 Aug 2015 19:12:05 +0000 (19:12 +0000)] 
Refine NEWS entry for memcheck xb monitor command

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15484

11 years ago* Memcheck:
Philippe Waroquiers [Tue, 4 Aug 2015 19:11:03 +0000 (19:11 +0000)] 
* Memcheck:
  - A new monitor command 'xb <addr> <len>' shows the validity bits
    of <len> bytes at <addr>. Below the validity bits, the byte
    values are shown using a layout similar to the GDB command
    'x /<len>xb <addr>'. The monitor command 'xb' is easier to use
    (in particular on little endian computers) when you need to associate
    byte data value with their corresponding validity bits.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15483

11 years agoRewrite memcheck's event counter machinery.
Florian Krohm [Tue, 4 Aug 2015 15:58:41 +0000 (15:58 +0000)] 
Rewrite memcheck's event counter machinery.
- unique event counters
- simplify PROF_EVENT
- do not allocate more event counters than needed
- compile cleanly

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15482

11 years agoFix the "make regtest" error caused by the new tilegx instruction tests
Zhi-Gang Liu [Tue, 4 Aug 2015 04:59:41 +0000 (04:59 +0000)] 
Fix the "make regtest" error caused by the new tilegx instruction tests

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15481

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Mon, 3 Aug 2015 21:21:42 +0000 (21:21 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15480

11 years agoFix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
Florian Krohm [Mon, 3 Aug 2015 21:05:20 +0000 (21:05 +0000)] 
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15479

11 years agoImprove the script to also show failures in the post-regtest checks
Florian Krohm [Mon, 3 Aug 2015 20:03:41 +0000 (20:03 +0000)] 
Improve the script to also show failures in the post-regtest checks
in the regtest log.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15478

11 years agoFix printf format inconsistencies as pointed out by GCC's
Florian Krohm [Mon, 3 Aug 2015 16:03:13 +0000 (16:03 +0000)] 
Fix printf format inconsistencies as pointed out by GCC's
-Wformat-signedness.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3167

11 years agoFix a typo in README.solaris.
Ivo Raisr [Mon, 3 Aug 2015 10:48:16 +0000 (10:48 +0000)] 
Fix a typo in README.solaris.
Spotted by Florian Krohm <florian@eich-krohm.de>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15477

11 years agoResolve suppressions that changed in OS X 10.11 (DP5). n-i-bz
Rhys Kidd [Mon, 3 Aug 2015 06:17:13 +0000 (06:17 +0000)] 
Resolve suppressions that changed in OS X 10.11 (DP5). n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15476

11 years agoOS X: Suppress newly introduced system library errors in OS X 10.11 (DP5). n-i-bz
Rhys Kidd [Mon, 3 Aug 2015 02:14:17 +0000 (02:14 +0000)] 
OS X: Suppress newly introduced system library errors in OS X 10.11 (DP5). n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15475

11 years agoGuard two hanging tests on OS X 10.11, which otherwise prevent regression test suite...
Rhys Kidd [Mon, 3 Aug 2015 00:44:01 +0000 (00:44 +0000)] 
Guard two hanging tests on OS X 10.11, which otherwise prevent regression test suite from running in automated manner. n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15474

11 years agoGCC 5.1 issues warnings about static variables declared within non-static
Florian Krohm [Sun, 2 Aug 2015 20:05:41 +0000 (20:05 +0000)] 
GCC 5.1 issues warnings about static variables declared within non-static
inline functions. There is no command line flag so suppress that particular
warnings. So let's suppress all warnings for this testcase.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15473

11 years agoSilence a few more warnings from GCC 5.1
Florian Krohm [Sun, 2 Aug 2015 19:45:58 +0000 (19:45 +0000)] 
Silence a few more warnings from GCC 5.1

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15472

11 years agoSilence a few warnings issued by GCC 5.1 claiming that 'res' is
Florian Krohm [Sun, 2 Aug 2015 19:35:49 +0000 (19:35 +0000)] 
Silence a few warnings issued by GCC 5.1 claiming that 'res' is
uninitialised. Perhaps an incorrect clobber or a compiler bug?
Anyhow, initialising the variable will do the trick.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15471

11 years agoAs pointed out by GCC 5.1 macro arguments ought to be paranthesized
Florian Krohm [Sun, 2 Aug 2015 19:31:14 +0000 (19:31 +0000)] 
As pointed out by GCC 5.1 macro arguments ought to be paranthesized
when referenced. Previously CHECK(a && b) would expand to !a && b
which clearly was not the intention.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15470

11 years agoCheck for Solaris specific program headers PT_SUNW_SYSSTAT and PT_SUNW_SYSSTAT_ZONE;
Ivo Raisr [Sat, 1 Aug 2015 21:53:08 +0000 (21:53 +0000)] 
Check for Solaris specific program headers PT_SUNW_SYSSTAT and PT_SUNW_SYSSTAT_ZONE;
and act accordingly. Test cases provided. n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15469

11 years agoensure that __strncpy_sse2 is replaced by the canonical name.
Philippe Waroquiers [Sat, 1 Aug 2015 14:20:10 +0000 (14:20 +0000)] 
ensure that __strncpy_sse2 is replaced by the canonical name.
This makes memcheck/tests/overlap work on debian8/x86 (pentium4).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15468

11 years agoFix hard-to-understand code in VG_(load_ELF)().
Ivo Raisr [Sat, 1 Aug 2015 12:11:09 +0000 (12:11 +0000)] 
Fix hard-to-understand code in VG_(load_ELF)().
Although it is a valid C [1], the closing bracket for "case PT_INTERP" is misplaced.
Fixes BZ #350854.

[1] https://en.wikipedia.org/wiki/Duff%27s_device#Mechanism

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15467

11 years agoMerge tilegx instruction test patch "valgrind-tilegx-instruction-test.patch"
Zhi-Gang Liu [Sat, 1 Aug 2015 03:52:03 +0000 (03:52 +0000)] 
Merge tilegx instruction test patch "valgrind-tilegx-instruction-test.patch"
in Bug 345921 - Add TileGX instruction set test in none/tests/tilegx
Submitted by Liming Sun, lsun@ezchip.com

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15466

11 years agoUpdate list of Solaris specific ignored files.
Ivo Raisr [Fri, 31 Jul 2015 18:54:57 +0000 (18:54 +0000)] 
Update list of Solaris specific ignored files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15465

11 years agoUse handwritten memcheck assembly helpers on x86/Solaris in addition to {arm,x86...
Ivo Raisr [Fri, 31 Jul 2015 16:12:44 +0000 (16:12 +0000)] 
Use handwritten memcheck assembly helpers on x86/Solaris in addition to {arm,x86}-linux.
Fixes BZ #350813.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15464

11 years agoProperly guard none/tests/amd64/avx-1. This resolves one failing regression test...
Rhys Kidd [Fri, 31 Jul 2015 13:06:14 +0000 (13:06 +0000)] 
Properly guard none/tests/amd64/avx-1. This resolves one failing regression test on OS X with modern hardware. n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15463

11 years agoFix testcase such that it can be run under cron on Solaris.
Florian Krohm [Fri, 31 Jul 2015 06:58:16 +0000 (06:58 +0000)] 
Fix testcase such that it can be run under cron on Solaris.
The tescase depends on SIGHUP to be delivered but cron on Solaris
ignored the signal. So it needs to be enabled in child processes
after fork.
Patch by Ivo Raisr <ivosh@ivosh.net>.  Fixes BZ #350809.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15462

11 years agoRemove implicit reference to the --db-attach feature which was
Florian Krohm [Fri, 31 Jul 2015 06:42:19 +0000 (06:42 +0000)] 
Remove implicit reference to the --db-attach feature which was
removed in r15445. Patch by Ivo Raisr <ivosh@ivosh.net>.
Fixes BZ #350811.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15461

11 years agoIn VALGRIND_PRINTF write out the thread name to xml.
Florian Krohm [Thu, 30 Jul 2015 21:49:49 +0000 (21:49 +0000)] 
In VALGRIND_PRINTF write out the thread name to xml.
Patch by Matthias Schwarzott <zzam@gentoo.org>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15460

11 years agoFix memcheck/tests/darwin/aio on OS X.
Rhys Kidd [Sun, 26 Jul 2015 05:52:21 +0000 (05:52 +0000)] 
Fix memcheck/tests/darwin/aio on OS X.
n-i-bz

On OS X 10.10

Before:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 593 tests, 213 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15454

11 years agoClean up some bit rot within memcheck/tests/darwin/scalar. n-i-bz.
Rhys Kidd [Sun, 26 Jul 2015 04:26:06 +0000 (04:26 +0000)] 
Clean up some bit rot within memcheck/tests/darwin/scalar. n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15453

11 years agoconfigure.ac: Improve portability of the code introduced in r15423
Bart Van Assche [Sat, 25 Jul 2015 14:31:02 +0000 (14:31 +0000)] 
configure.ac: Improve portability of the code introduced in r15423

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15452

11 years agoioctl handling needs to do POST handling on generic ioctls and needs to handle BPF...
Rhys Kidd [Sat, 25 Jul 2015 07:57:55 +0000 (07:57 +0000)] 
ioctl handling needs to do POST handling on generic ioctls and needs to handle BPF ioctls
bz#312989

Patch by Guy Harris <guy@alum.mit.edu>

On OS X 10.10

Before:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 593 tests, 214 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15451

11 years agoFix clang/osx: ld: warning: -read_only_relocs cannot be used with x86_64
Rhys Kidd [Sat, 25 Jul 2015 05:50:10 +0000 (05:50 +0000)] 
Fix clang/osx: ld: warning: -read_only_relocs cannot be used with x86_64
bz#349769

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15450

11 years agoProperly conditionalise these tests, now that they are guarded on certain combination...
Rhys Kidd [Fri, 24 Jul 2015 12:47:59 +0000 (12:47 +0000)] 
Properly conditionalise these tests, now that they are guarded on certain combinations of operating system and compiler.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15446

11 years agoRemove command line options --db-attach and --db-command which were
Florian Krohm [Fri, 24 Jul 2015 11:50:12 +0000 (11:50 +0000)] 
Remove command line options --db-attach and --db-command which were
deprecated in 3.10.0

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15445

11 years agoFix valgrind 3.9.0 build fails on Mac OS X 10.6.8
Rhys Kidd [Fri, 24 Jul 2015 10:23:34 +0000 (10:23 +0000)] 
Fix valgrind 3.9.0 build fails on Mac OS X 10.6.8
bz#327745

Patch by Mark H <mh8928@yahoo.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15444

11 years agoResolve makefile consistency error at conclusion of make regtest
Rhys Kidd [Thu, 23 Jul 2015 06:21:07 +0000 (06:21 +0000)] 
Resolve makefile consistency error at conclusion of make regtest

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15443

11 years agoComplete fix for bz#344416 - Fix make regtest does not work cleanly on OS X (3).
Rhys Kidd [Thu, 23 Jul 2015 05:49:13 +0000 (05:49 +0000)] 
Complete fix for bz#344416 - Fix make regtest does not work cleanly on OS X (3).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15442

11 years agoPartial fix for bz#344416 - Fix make regtest does not work cleanly on OS X (2).
Rhys Kidd [Thu, 23 Jul 2015 05:33:31 +0000 (05:33 +0000)] 
Partial fix for bz#344416 - Fix make regtest does not work cleanly on OS X (2).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15441

11 years agoPartial fix for bz#344416 - Fix make regtest does not work cleanly on OS X.
Rhys Kidd [Thu, 23 Jul 2015 05:04:36 +0000 (05:04 +0000)] 
Partial fix for bz#344416 - Fix make regtest does not work cleanly on OS X.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15440

11 years agoregression tests: Remove superfluous backticks
Bart Van Assche [Thu, 23 Jul 2015 02:47:42 +0000 (02:47 +0000)] 
regression tests: Remove superfluous backticks

Backticks are not needed around a shell statement that does not produce
any output.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15439

11 years agotests/vg_regtest: Always evaluate prerequisite expressions with sh
Bart Van Assche [Thu, 23 Jul 2015 02:46:44 +0000 (02:46 +0000)] 
tests/vg_regtest: Always evaluate prerequisite expressions with sh

This avoids that expressions like ! <stmnt> fail with a mysterious
error message.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15438

11 years agoSet svn:ignore on new gdbserver_test/solaris folder
Rhys Kidd [Thu, 23 Jul 2015 01:07:38 +0000 (01:07 +0000)] 
Set svn:ignore on new gdbserver_test/solaris folder

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15437

11 years agoUnbreak the OS X/clang build from r15419. This handrolled assembly on x86 will need...
Rhys Kidd [Thu, 23 Jul 2015 00:08:30 +0000 (00:08 +0000)] 
Unbreak the OS X/clang build from r15419. This handrolled assembly on x86 will need more work to build with Apple's clang variant.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15436

11 years agoUnbreak the build on several setups :
Philippe Waroquiers [Wed, 22 Jul 2015 21:37:06 +0000 (21:37 +0000)] 
Unbreak the build on several setups :

It looks like the standard says that
   #define __STDC_FORMAT_MACROS
is needed in c++ in order to have PRIxPTR defined.

At least on gcc110 g++ 4.7.2, leak_cpp_interior.cpp
was not compiling.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15435

11 years agomips64: make cavium CvmCount register accessible via rdhwr
Petar Jovanovic [Tue, 21 Jul 2015 22:27:19 +0000 (22:27 +0000)] 
mips64: make cavium CvmCount register accessible via rdhwr

Fixes reported issue BZ #346031.

Patch by Crestez Dan Leonard.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3166

11 years agoAdd two more tests with missing interpreter names.
Florian Krohm [Tue, 21 Jul 2015 22:05:07 +0000 (22:05 +0000)] 
Add two more tests with missing interpreter names.
Consolidate 'nointerp' testcase file names.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15432

11 years agoAdd testcase. Should have been in r15429.
Florian Krohm [Tue, 21 Jul 2015 21:49:06 +0000 (21:49 +0000)] 
Add testcase. Should have been in r15429.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15431

11 years agoUpdate
Florian Krohm [Tue, 21 Jul 2015 21:44:02 +0000 (21:44 +0000)] 
Update

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15430

11 years agoFix BZ #338606. Basically, the bug was that it was believed that
Florian Krohm [Tue, 21 Jul 2015 21:37:23 +0000 (21:37 +0000)] 
Fix BZ #338606. Basically, the bug was that it was believed that
the interpreter following the #! has to be an absolute path name.
Not so; relative path works just fine.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15429

11 years agoUpdate list of ignored files from solaris port.
Florian Krohm [Tue, 21 Jul 2015 21:01:40 +0000 (21:01 +0000)] 
Update list of ignored files from solaris port.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15428

11 years agoFix incorrect implementation of LOADV64le that was added in r15418.
Julian Seward [Tue, 21 Jul 2015 15:38:43 +0000 (15:38 +0000)] 
Fix incorrect implementation of LOADV64le that was added in r15418.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15427

11 years agoBug 345248 - add support for Solaris OS in valgrind
Julian Seward [Tue, 21 Jul 2015 14:44:28 +0000 (14:44 +0000)] 
Bug 345248 - add support for Solaris OS in valgrind

Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426

11 years agoBug 345248 - add support for Solaris OS in valgrind
Julian Seward [Tue, 21 Jul 2015 14:43:23 +0000 (14:43 +0000)] 
Bug 345248 - add support for Solaris OS in valgrind

VEX aspects -- pretty minimal.

Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com

git-svn-id: svn://svn.valgrind.org/vex/trunk@3165

11 years agoPatch 7 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 22:22:42 +0000 (22:22 +0000)] 
Patch 7 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

A handful of cosmetic changes to the ppc32 and ppc64 makefiles.
Cleans up some whitespace issues, spaces/tabs/etc,
Rearranges some of the contents so they are logically group, and
more consistent between the 32- and 64- bit versions of the same.

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15425

11 years agoPatch 6 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 21:57:21 +0000 (21:57 +0000)] 
Patch 6 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Rework hwcap checking in configure.ac.  This adds and swizzles
some of the capability checking as found in configure.ac.
This cleans up some corner cases where capabilities were assumed
based on compiler features, but not supported by the platform.
- clean up vsx kludge, and remove associated comment.
- check assorted capabilities against the hwcap values, including
  altivec, vsx, dfp, htm, ISA_2_0* .

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15424

11 years agoPatch 4 and 5 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 21:25:32 +0000 (21:25 +0000)] 
Patch 4 and 5 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Patches 4 and 5 need to be applied together.  Add convenience function
for processing hwcap entries. Add logic to check for HTM support in compiler.

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15423

11 years agoPatch 3 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 20:36:47 +0000 (20:36 +0000)] 
Patch 3 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

remove unused capability checking scripts.
these have been replaced by the check_ppc64_auxv_cap script.

change tests/check_ppc64_auxv_cap to executable.  Tried to make it
executable on the last commit but for some reason it didn't seem to suceed.

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15422

11 years agoPatch 2 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 19:36:53 +0000 (19:36 +0000)] 
Patch 2 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Update all vgtest files to reference the new capability check helper.
This includes a few adjustments to ensure the test is checking for
the specific capability. I.e. isa_2_07 is a requirement for htm, but
does not indicate htm support is actually present.

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15421

11 years agoPatch 1 of 7, improve PPC HW capabiltiy checking.
Carl Love [Mon, 20 Jul 2015 18:53:56 +0000 (18:53 +0000)] 
Patch 1 of 7, improve PPC HW capabiltiy checking.

The patch was submitted by Will Schmidt  (will_schmidt@vnet.ibm.com).

Add generic (ppc64) aux vector capability checking script.
This consolidates several of the existing _cap checking scripts.

Bugzilla 34979

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15420

11 years agoBug 349879 - [PATCH] memcheck: add handwritten assembly for helperc_LOADV
Julian Seward [Mon, 20 Jul 2015 13:11:03 +0000 (13:11 +0000)] 
Bug 349879 - [PATCH] memcheck: add handwritten assembly for helperc_LOADV
Patch from Matthias Schwarzott (zzam@gentoo.org)

Also, add better sectioning with comment lines, as this part of the code
was getting hard to follow.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15419

11 years agoVG_(helperc_LOADV64le): add handwritten assembly helper for ARM32
Julian Seward [Mon, 20 Jul 2015 09:59:25 +0000 (09:59 +0000)] 
VG_(helperc_LOADV64le): add handwritten assembly helper for ARM32

VG_(helperc_LOADV32le): VG_(helperc_LOADV16le): VG_(helperc_LOADV8):
use ".L" style assembly labels so they don't appears as new symbols
during disassembly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15418

11 years agoBlock the running of a known hanging regression test on OS X. Partial fix for bz...
Rhys Kidd [Sun, 19 Jul 2015 07:19:54 +0000 (07:19 +0000)] 
Block the running of a known hanging regression test on OS X. Partial fix for bz#344416, and related to BZ#216837.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15417

11 years agoBlock the running of a known hanging regression test on OS X. Partial fix for bz...
Rhys Kidd [Sun, 19 Jul 2015 01:07:26 +0000 (01:07 +0000)] 
Block the running of a known hanging regression test on OS X. Partial fix for bz#344416, and related to BZ#350359.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15416

11 years agoDocumentation: Ensure alignment of the x86 and amd64 darwin code in m_sigframe. Follo...
Rhys Kidd [Sat, 18 Jul 2015 05:53:56 +0000 (05:53 +0000)] 
Documentation: Ensure alignment of the x86 and amd64 darwin code in m_sigframe. Follows from a side-by-side code review.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15415

11 years agoAnnounce bug fix for BZ #350251
Florian Krohm [Thu, 16 Jul 2015 21:43:30 +0000 (21:43 +0000)] 
Announce bug fix for BZ #350251

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15414