]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoWhen reading a decimal value consume decimal digits, not hexdigits.
Florian Krohm [Mon, 26 Dec 2011 18:30:18 +0000 (18:30 +0000)] 
When reading a decimal value consume decimal digits, not hexdigits.

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

14 years agoBeef up VG_(strerror) to provide correct messages for the
Florian Krohm [Sat, 24 Dec 2011 21:50:53 +0000 (21:50 +0000)] 
Beef up VG_(strerror) to provide correct messages for the
errno codes in asm-generic/errno-base.h (on linux).
The error strings were obtained by calling strerror natively in
Linux.
Extend vki-linux.h accordingly. vki-darwin.h already had
those errno codes.
Add testcase. This fixes #287858.

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

14 years agoFix 247386 make perf does not run all performance tests :
Philippe Waroquiers [Fri, 23 Dec 2011 11:42:20 +0000 (11:42 +0000)] 
Fix 247386  make perf does not run all performance tests :

* move memcheck/perf/many-loss-records test to perf directory
       massif/perf/many-xpts test to perf directory
* modified many-loss-records.vgperf and many-xpts.vgperf,
  so as to have tool specific options prefixed with their tool
* remove directory memcheck/perf and massif/perf (containing no test anymore)

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

14 years ago* none/tests/linux/mremap3.vgtest : new test
Philippe Waroquiers [Thu, 22 Dec 2011 13:25:58 +0000 (13:25 +0000)] 
* none/tests/linux/mremap3.vgtest : new test
   mremap3.c based on testcase provided by Jan Engelhardt
* coregrind/m_syswrap/syswrap-generic.c
  - The two 'no-thrash checks' that were introduced to fix bug #129866
    were (probably) broken when adress space manager was reworked.
    The new VG_(am_get_advisory_client_simple) returns NULL for a free
    segment, but the check was based on checking not NULL and then
    that the state is free.
    => replaces these two local checks by a call to the new
    am Bool VG_(am_covered_by_single_free_segment) function.

* coregrind/pub_core_aspacemgr.h
  coregrind/m_aspacemgr/aspacemgr-linux.c
  - new function Bool VG_(am_covered_by_single_free_segment)

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

14 years agoUpdated NEWS (set next version to 3.8.0, added 286270 to fixed bugs+reordered)
Philippe Waroquiers [Mon, 19 Dec 2011 11:03:07 +0000 (11:03 +0000)] 
Updated NEWS (set next version to 3.8.0, added 286270 to fixed bugs+reordered)

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

14 years agoWhen reinterpreting a 32 bit int as a float we need to move it
Florian Krohm [Sun, 18 Dec 2011 15:51:54 +0000 (15:51 +0000)] 
When reinterpreting a 32 bit int as a float we need to move it
from gpr[32:63] to fpr[0:31]. And vice versa.

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

14 years agoHandle Iop_ReinterpF32asI32 and Iop_ReinterpI32asF32 in insn selection.
Florian Krohm [Sun, 18 Dec 2011 00:08:17 +0000 (00:08 +0000)] 
Handle Iop_ReinterpF32asI32 and Iop_ReinterpI32asF32 in insn selection.

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

14 years agoDRD: revert r12308 because it didn't help
Bart Van Assche [Sat, 17 Dec 2011 15:18:20 +0000 (15:18 +0000)] 
DRD: revert r12308 because it didn't help

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

14 years agoDRD: add two ppc output variants
Bart Van Assche [Sat, 17 Dec 2011 14:18:25 +0000 (14:18 +0000)] 
DRD: add two ppc output variants

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

14 years agoDRD, load/store tracing: avoid evaluating the address expression twice
Bart Van Assche [Sat, 17 Dec 2011 12:59:45 +0000 (12:59 +0000)] 
DRD, load/store tracing: avoid evaluating the address expression twice

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

14 years agoAdd a configure test for detecting whether gcc supports atomic operations on
Bart Van Assche [Sat, 17 Dec 2011 12:53:23 +0000 (12:53 +0000)] 
Add a configure test for detecting whether gcc supports atomic operations on
64-bit integers on 32-bit platforms. Apparently newer gcc versions support
this but older versions not. Thanks to Philippe Waroquiers for reporting this.

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

14 years agoDRD: Suppress uninteresting races triggered by the dynamic loader
Bart Van Assche [Wed, 14 Dec 2011 20:05:51 +0000 (20:05 +0000)] 
DRD: Suppress uninteresting races triggered by the dynamic loader

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

14 years agodrd/tests/Makefile.am: update EXTRA_DIST
Bart Van Assche [Wed, 14 Dec 2011 07:30:05 +0000 (07:30 +0000)] 
drd/tests/Makefile.am: update EXTRA_DIST

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

14 years agoUpdate Subversion ignore list
Bart Van Assche [Wed, 14 Dec 2011 07:13:06 +0000 (07:13 +0000)] 
Update Subversion ignore list

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

14 years agodrd --trace-addr: make tracing 64-bit values on a 32-bit platform work
Bart Van Assche [Tue, 13 Dec 2011 11:12:05 +0000 (11:12 +0000)] 
drd --trace-addr: make tracing 64-bit values on a 32-bit platform work

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

14 years agoDRD, --trace-addr: enable support for Ity_F32 and Ity_F64 / temporarily disable suppo...
Bart Van Assche [Tue, 13 Dec 2011 08:53:23 +0000 (08:53 +0000)] 
DRD, --trace-addr: enable support for Ity_F32 and Ity_F64 / temporarily disable support for 64-bit CAS on 32-bit platforms

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

14 years agoDRD: Eliminate a temporary variable
Bart Van Assche [Tue, 13 Dec 2011 08:05:07 +0000 (08:05 +0000)] 
DRD: Eliminate a temporary variable

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

14 years agodrd/tests/annotate_trace_memory*: add 32-bit output variants
Bart Van Assche [Tue, 13 Dec 2011 07:52:09 +0000 (07:52 +0000)] 
drd/tests/annotate_trace_memory*: add 32-bit output variants

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

14 years agodrd/tests/pth_cleanup_handler: increase timeout
Bart Van Assche [Tue, 13 Dec 2011 07:49:30 +0000 (07:49 +0000)] 
drd/tests/pth_cleanup_handler: increase timeout

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

14 years agoDRD: rearrange the definition of u_widen_irop[][]
Bart Van Assche [Mon, 12 Dec 2011 19:54:32 +0000 (19:54 +0000)] 
DRD: rearrange the definition of u_widen_irop[][]

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

14 years agoUpdate Subversion ignore list
Bart Van Assche [Mon, 12 Dec 2011 19:37:48 +0000 (19:37 +0000)] 
Update Subversion ignore list

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

14 years agoDRD: make the tracing regression test more complete
Bart Van Assche [Mon, 12 Dec 2011 19:37:10 +0000 (19:37 +0000)] 
DRD: make the tracing regression test more complete

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

14 years agoDRD: Make the code for instrumenting store operations more robust
Bart Van Assche [Mon, 12 Dec 2011 19:18:26 +0000 (19:18 +0000)] 
DRD: Make the code for instrumenting store operations more robust

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

14 years agodrd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
Bart Van Assche [Mon, 12 Dec 2011 19:04:28 +0000 (19:04 +0000)] 
drd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual

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

14 years agoDRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed
Bart Van Assche [Mon, 12 Dec 2011 19:02:34 +0000 (19:02 +0000)] 
DRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed

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

14 years agoDRD help text: remove a superfluous dot
Bart Van Assche [Mon, 12 Dec 2011 15:49:00 +0000 (15:49 +0000)] 
DRD help text: remove a superfluous dot

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

14 years agoRemove trailing whitespace
Bart Van Assche [Sun, 11 Dec 2011 20:34:03 +0000 (20:34 +0000)] 
Remove trailing whitespace

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

14 years agoDisable drd/tests/std_thread until libstdc++ gets fixed (see also http://gcc.gnu...
Bart Van Assche [Sun, 11 Dec 2011 20:30:46 +0000 (20:30 +0000)] 
Disable drd/tests/std_thread until libstdc++ gets fixed (see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51504).

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

14 years agoDRD: Make --trace-addr work for atomic loads and stores. To do: update manual
Bart Van Assche [Sun, 11 Dec 2011 20:17:57 +0000 (20:17 +0000)] 
DRD: Make --trace-addr work for atomic loads and stores. To do: update manual

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

14 years agoDRD, --trace-addr: trace stored values too
Bart Van Assche [Sun, 11 Dec 2011 18:49:39 +0000 (18:49 +0000)] 
DRD, --trace-addr: trace stored values too

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

14 years agoUpdate Subversion ignore lists
Bart Van Assche [Sun, 11 Dec 2011 18:40:13 +0000 (18:40 +0000)] 
Update Subversion ignore lists

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

14 years agoDRD: Two non-functional changes: adjust source code indentation and fix
Bart Van Assche [Sun, 11 Dec 2011 17:54:17 +0000 (17:54 +0000)] 
DRD: Two non-functional changes: adjust source code indentation and fix
second argument of unsafeIRDirty_0_N() in the memory access tracing code.

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

14 years agofix 286270 VG_(env_remove_valgrind_env_stuff)
Philippe Waroquiers [Sun, 11 Dec 2011 16:29:43 +0000 (16:29 +0000)] 
fix 286270 VG_(env_remove_valgrind_env_stuff)

rev 12001 has introduced a regression in VG_(env_remove_valgrind_env_stuff):
to avoid modifying a possibly read-only env string, the string is duplicated,
and the copy is modified. However, mash_env_column modifies the string
"in-place". The modified string was not put back in the env (and could not,
because the src string is only partially copied).

This means that the valgrind preload strings were not cleaned up and
when a 32 bit executable execs a 64 bits (or vice versa: 64 bit execs 32 bits),
LD_PRELOAD contains both the 32 bits and 64 bits versions of Valgrind
vgpreload.... => ld.so then gives an error msg, as it can't preload either
the 32 or the 64 bits version.

The patch fixes this by duplicating the whole env string, and passing
to mash_colon_env a pointer to the correct offset in the whole env string.
The duplicated string is replacing the original entry in envp.

This patch adds two regression tests : none/tests/allexec32 and
none/tests/allexec64. On a bi-arch valgrind, these will be 32bits and 64 bits
executables, exec-ing each other. On a single arch, one will be a symlink
to the other (to avoid different .exp files, and still test exec).

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

14 years agoFollow-up for r12281: update regtest expected output
Bart Van Assche [Sun, 11 Dec 2011 10:18:27 +0000 (10:18 +0000)] 
Follow-up for r12281: update regtest expected output

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

14 years agoconfigure.in: Rename the shell variable ac_have_builtin_atomic into ac_have_builtin_a...
Bart Van Assche [Sat, 10 Dec 2011 19:48:04 +0000 (19:48 +0000)] 
configure.in: Rename the shell variable ac_have_builtin_atomic into ac_have_builtin_atomic_primary

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

14 years agoDRD: Add test program for std::thread.
Bart Van Assche [Sat, 10 Dec 2011 19:42:05 +0000 (19:42 +0000)] 
DRD: Add test program for std::thread.

To do: document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE/AFTER in the DRD manual.

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

14 years agoFix a typo.
Florian Krohm [Sat, 10 Dec 2011 16:06:57 +0000 (16:06 +0000)] 
Fix a typo.

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

14 years agoAdd script to assist in updating the C++ demangler from GCC trunk.
Florian Krohm [Sat, 10 Dec 2011 16:03:57 +0000 (16:03 +0000)] 
Add script to assist in updating the C++ demangler from GCC trunk.

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

14 years agoUpdate the C++ demangler by importing files from GCC trunk @ r181975.
Florian Krohm [Sat, 10 Dec 2011 16:00:25 +0000 (16:00 +0000)] 
Update the C++ demangler by importing files from GCC trunk @ r181975.
Also fixes #283413

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

14 years agoAdd command-line option --fair-sched=[no|yes|try]. Use --fair-sched=try
Bart Van Assche [Thu, 8 Dec 2011 16:14:59 +0000 (16:14 +0000)] 
Add command-line option --fair-sched=[no|yes|try]. Use --fair-sched=try
when running the annotate_hbefore regression test. Closes #270006.

To do: update manual.

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

14 years agoRemove emacs modeline and/or local variables from DRD source files
Bart Van Assche [Sun, 4 Dec 2011 15:54:19 +0000 (15:54 +0000)] 
Remove emacs modeline and/or local variables from DRD source files

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

14 years agoGive a better help message for gdbserver when VALGRIND_LIB
Philippe Waroquiers [Thu, 1 Dec 2011 19:44:34 +0000 (19:44 +0000)] 
Give a better help message for gdbserver when VALGRIND_LIB
is set. This ensures a correct help msg is given when
the valgrind installation is moved, and VALGRIND_LIB is
then set to the new valgrind lib location.
Note it does not improve the help msg when valgrind
is run "in place" (e.g. when using vg-in-place).
(Patch from Paul Pluzhnikov).

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

14 years agoTweaks for the benefit of the webpage.
Florian Krohm [Sat, 26 Nov 2011 04:12:01 +0000 (04:12 +0000)] 
Tweaks for the benefit of the webpage.
- mention s390x/linux in README
- formatting tweak in README.s390 so things don't look ugly in html
- add README.s390 and README.android to distribution documents

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

14 years agoYesterday I changed dist.authors.html and dist.news.html in r442
Florian Krohm [Sat, 26 Nov 2011 04:05:47 +0000 (04:05 +0000)] 
Yesterday I changed dist.authors.html and dist.news.html in r442
in the valgrind-www repository. These files are actually generated
from AUTHORS and NEWS, respectively.
Therefore, change AUTHORS and NEWS to reflect yesterday's change.
Things are now in synch again.

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

14 years agoGet rid of Roland McGrath et al.
Florian Krohm [Thu, 24 Nov 2011 16:07:41 +0000 (16:07 +0000)] 
Get rid of Roland McGrath et al.

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

14 years agoconfigure: Fix compiler version check. Closes #286384.
Bart Van Assche [Tue, 22 Nov 2011 14:41:31 +0000 (14:41 +0000)] 
configure: Fix compiler version check. Closes #286384.

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

14 years agoarm-linux: fix signal returning so that if SA_RESTORER is not
Julian Seward [Sun, 20 Nov 2011 09:35:51 +0000 (09:35 +0000)] 
arm-linux: fix signal returning so that if SA_RESTORER is not
specified, the handler returns to the previous context rather than to
whatever value happens to be parked in the link register (duh).
Previous behaviour made complete nonsense of signal returning on
Android.

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

14 years agoThe sparse wa maintains the nr of elements in use at level 0.
Philippe Waroquiers [Thu, 17 Nov 2011 21:57:21 +0000 (21:57 +0000)] 
The sparse wa maintains the nr of elements in use at level 0.
So, replace the code which counts the nr of bits in the level0
bitmap by just returning the nr of elements in use.

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

14 years agoClarify where to set TMPDIR to have working FIFOs.
Philippe Waroquiers [Wed, 16 Nov 2011 20:43:39 +0000 (20:43 +0000)] 
Clarify where to set TMPDIR to have working FIFOs.
+ mention --vgdb-prefix clo as an alternative.

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

14 years agoNew section for 3.7.1.
Florian Krohm [Wed, 16 Nov 2011 03:59:49 +0000 (03:59 +0000)] 
New section for 3.7.1.
Announce fix for #286374.

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

14 years agoIop_1Uto64 was not handled in the ppc insn selector.
Florian Krohm [Wed, 16 Nov 2011 03:54:12 +0000 (03:54 +0000)] 
Iop_1Uto64 was not handled in the ppc insn selector.
Patch by Maynard Johnson (maynardj@us.ibm.com). Fixes #286374

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

14 years agoCallgrind: use jmpkind from VEX for side exits.
Josef Weidendorfer [Mon, 14 Nov 2011 21:16:25 +0000 (21:16 +0000)] 
Callgrind: use jmpkind from VEX for side exits.

To detect calls and returns, Callgrind's heuristic
starts with using the jumpkind got from VEX for
a control flow change instruction. However, for
side exits, it always assumed a (conditional) jump,
which holds true for x86, but e.g. not for ARM.

This fixes Callgrind to use the jumpkind found
by VEX for all exits, which should help making
Callgrind work for ARM. It also moves the check
whether a boring jump is actually a fall-through
to instrumentation time. This changes (fixes) the
result for indirect jumps to the next instruction,
which should not be classified as fall-through
(anyway, this case is probably very rare).

This patch introduces an own enum for jump kinds
in Callgrind. This is less confusing than misusing
the VEX jump kind type, as Callgrinds wants
to distinguish BB fall-throughs from real jumps
(which both are Ijk_Boring in VEX).
Also, setup_bbcc now stores separately whether the
jump kind is conditional or not.

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

14 years agocallgrind: remove command file polling
Josef Weidendorfer [Mon, 14 Nov 2011 19:01:21 +0000 (19:01 +0000)] 
callgrind: remove command file polling

This is the last part of moving from command file polling
to the vgdb ptrace method for interactive control of Callgrind.
VG 3.7.x ported callgrind_control to vgdb (in r11867), but
still did command file polling to support existing KCachegrind
releases. KCachegrind from upcoming KDE SC 4.8 will use
callgrind_control instead of manually writing command files.

The main benefit from this is, apart from getting rid of
continous file polling activity in Callgrind, that blocked
processes can now respond to callgrind_control.

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

14 years agoDocument test results.
Florian Krohm [Fri, 11 Nov 2011 04:04:12 +0000 (04:04 +0000)] 
Document test results.

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

14 years agoMerge latest changes to this file from 3_7_BRANCH.
Julian Seward [Wed, 9 Nov 2011 23:42:41 +0000 (23:42 +0000)] 
Merge latest changes to this file from 3_7_BRANCH.

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

14 years agoRHEL 4 build fix
Bart Van Assche [Wed, 9 Nov 2011 17:31:54 +0000 (17:31 +0000)] 
RHEL 4 build fix

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

14 years agoRemove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.
Florian Krohm [Tue, 8 Nov 2011 20:16:09 +0000 (20:16 +0000)] 
Remove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.

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

14 years agoFix prerequisite to also require linux. So testcases get skipped
Florian Krohm [Tue, 8 Nov 2011 20:14:35 +0000 (20:14 +0000)] 
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

14 years agoWhen doing instrumentation, pay attention to the Ist.IMark.delta
Julian Seward [Tue, 8 Nov 2011 19:32:57 +0000 (19:32 +0000)] 
When doing instrumentation, pay attention to the Ist.IMark.delta
fields.  This makes the --ct-verbose=1 output make a lot more sense
for Thumb code.  Should have no effect on any other platform.

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

14 years agoUpdate platform_test. Add s390x-linux. Remove AIX.
Florian Krohm [Sun, 6 Nov 2011 22:43:33 +0000 (22:43 +0000)] 
Update platform_test.  Add s390x-linux. Remove AIX.

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

14 years agoAlso display information about the assembler (binutils).
Florian Krohm [Thu, 3 Nov 2011 02:10:02 +0000 (02:10 +0000)] 
Also display information about the assembler (binutils).

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

14 years agoUpdate comment in r2229 to place the blame in the right place.
Julian Seward [Mon, 31 Oct 2011 15:25:55 +0000 (15:25 +0000)] 
Update comment in r2229 to place the blame in the right place.

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

14 years agoUse normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty
Julian Seward [Mon, 31 Oct 2011 10:59:31 +0000 (10:59 +0000)] 
Use normal setjmp/longjmp, not the __builtin_ ones, as LLVM pretty
much treats the latter kind as no-ops.

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

14 years agox86g_dirtyhelper_FXRSTOR: work around what looks like a LLVM bug,
Julian Seward [Mon, 31 Oct 2011 10:52:21 +0000 (10:52 +0000)] 
x86g_dirtyhelper_FXRSTOR: work around what looks like a LLVM bug,
that causes this routine to segfault on x86-darwin.

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

14 years agoRemove unneeded prerequisites in testcases.
Florian Krohm [Sat, 29 Oct 2011 04:02:34 +0000 (04:02 +0000)] 
Remove unneeded prerequisites in testcases.
Followup to r11693.

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

14 years agoInclude insn_pclmulqdq.def in tarball.
Florian Krohm [Sat, 29 Oct 2011 03:39:56 +0000 (03:39 +0000)] 
Include insn_pclmulqdq.def in tarball.

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

14 years agoFix the configure test for ssse3 support. GCC needs -msse or it
Florian Krohm [Fri, 28 Oct 2011 21:37:19 +0000 (21:37 +0000)] 
Fix the configure test for ssse3 support. GCC needs -msse or it
will reject the xmm7 clobber in the code snippet.
Fix the prereqs for the ssse3 tests. It is possible that hardware
supports ssse3 but the tool chain does not. So we need to have the
testcase executable as a prerequisite.

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

14 years agoUpdated ignored file lists.
Florian Krohm [Fri, 28 Oct 2011 19:57:52 +0000 (19:57 +0000)] 
Updated ignored file lists.

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

14 years agoUse snprintf() instead of sprintf()
Bart Van Assche [Fri, 28 Oct 2011 15:05:50 +0000 (15:05 +0000)] 
Use snprintf() instead of sprintf()

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

14 years agoHandle longer un-sized symbols on arm-linux-android.
Julian Seward [Fri, 28 Oct 2011 02:53:49 +0000 (02:53 +0000)] 
Handle longer un-sized symbols on arm-linux-android.

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

14 years agoDon't get the date of the build from the mail header. It is
Florian Krohm [Fri, 28 Oct 2011 02:45:15 +0000 (02:45 +0000)] 
Don't get the date of the build from the mail header. It is
often off-by one. Instead extract it from the message body,
namely, when the build was kicked off.

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

14 years agoRewrite test to not use function clock_gettime. The purpose
Florian Krohm [Fri, 28 Oct 2011 00:11:44 +0000 (00:11 +0000)] 
Rewrite test to not use function clock_gettime. The purpose
of this is to not have to link against -lrt because that causes
a different back-trace on certain x86 and s390x environments.
See the thread with subject
"helgrind/tests/cond_timedwait_invalid failing on x86"
on valgrind-developers for more details.

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

14 years agoSome small doc updating for 3.7.0.
Julian Seward [Thu, 27 Oct 2011 10:01:17 +0000 (10:01 +0000)] 
Some small doc updating for 3.7.0.

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

14 years agoFix missing m4 quoting that autoconf-2.68 warns about.
Julian Seward [Thu, 27 Oct 2011 06:22:23 +0000 (06:22 +0000)] 
Fix missing m4 quoting that autoconf-2.68 warns about.
(Dave Goodell, goodell@mcs.anl.gov)

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

14 years agoGet rid of over-cautious check to make BEAM happy
Josef Weidendorfer [Wed, 26 Oct 2011 17:44:43 +0000 (17:44 +0000)] 
Get rid of over-cautious check to make BEAM happy

To play save, make an assertion out of it.

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

14 years agoUpdate list of ignored files.
Florian Krohm [Wed, 26 Oct 2011 15:29:52 +0000 (15:29 +0000)] 
Update list of ignored files.

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

14 years agoGive function copy_input_until_stop the noinline atribute.
Florian Krohm [Wed, 26 Oct 2011 15:27:41 +0000 (15:27 +0000)] 
Give function copy_input_until_stop the noinline atribute.
At least one of the compilers for s390x nightly builds was inlining it.
Update exp files accoordingly. This should fix any residual back-trace
noise for this testcase.

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

14 years agoSome fixes for Android:
Julian Seward [Wed, 26 Oct 2011 15:10:49 +0000 (15:10 +0000)] 
Some fixes for Android:

* initial support for Pandaboard/Linaro
* on Android/ARM, ask for non-executable stacks in the executables
* disable Memcheck's strcasestr intercept; its use of tolower()
  causes the dynamic linker to fail.

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

14 years agoDisable the GDB server-by-default for the time being on Android, since
Julian Seward [Wed, 26 Oct 2011 15:07:56 +0000 (15:07 +0000)] 
Disable the GDB server-by-default for the time being on Android, since
the mknod operations fail.  It can still be used if you can get past
that point, but you need an explicit --vgdb=yes for the time being.

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

14 years agoHandle "add.w reg, sp, #constT" and "addw reg, sp, #uimm12" for reg !=
Julian Seward [Wed, 26 Oct 2011 15:06:25 +0000 (15:06 +0000)] 
Handle "add.w reg, sp, #constT" and "addw reg, sp, #uimm12" for reg !=
PC.  Previous handling was overly restrictive -- only allowed
reg == SP.  (n-i-bz)

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

14 years agoFix an out-of-bounds array access found by IBM's BEAM checker.
Florian Krohm [Tue, 25 Oct 2011 21:37:15 +0000 (21:37 +0000)] 
Fix an out-of-bounds array access found by IBM's BEAM checker.

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

14 years agoAdd script to summarize the outcome of nightly builds.
Florian Krohm [Tue, 25 Oct 2011 20:01:41 +0000 (20:01 +0000)] 
Add script to summarize the outcome of nightly builds.

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

14 years agoBump the version.
Julian Seward [Tue, 25 Oct 2011 09:20:05 +0000 (09:20 +0000)] 
Bump the version.

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

14 years agoUpdate.
Julian Seward [Tue, 25 Oct 2011 09:05:53 +0000 (09:05 +0000)] 
Update.

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

14 years agoFix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
Julian Seward [Mon, 24 Oct 2011 13:21:57 +0000 (13:21 +0000)] 
Fix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
memcheck.h) by changing a bunch of VALGRIND_DO_CLIENT_REQUEST_EXPR
into VALGRIND_DO_CLIENT_REQUEST_STMT for cases where the return value
of the former would be unused.  (Bart Van Assche, bart.vanassche@gmail.com)

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

14 years agoUpdate.
Julian Seward [Mon, 24 Oct 2011 08:54:56 +0000 (08:54 +0000)] 
Update.

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

14 years agoDon't break fcntl locks when program does mmap. #280965.
Julian Seward [Mon, 24 Oct 2011 08:53:03 +0000 (08:53 +0000)] 
Don't break fcntl locks when program does mmap.  #280965.
(Rusty Russell, rusty@rustcorp.com.au)

tdb uses fcntl locks and mmap, and some of the tests fail under valgrind.
strace showed valgrind opening the tdb file, reading 1024 bytes, then closing
it.  This is not allowed: POSIX says if you open and close a file, all fcntl
locks on it are dropped (insane, yes).

Finally got around to hacking the source to track this down: di_notify_mmap is
doing the damage.  The simplest fix was to hand in an optional fd for it to
use, then have it do pread.

I had to fix your pread; surely this should seek back even if the platform
doesn't have pread support?

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

14 years agogdbsrv: factorize gdb version handling, fix doc and typos
Julian Seward [Mon, 24 Oct 2011 07:36:57 +0000 (07:36 +0000)] 
gdbsrv: factorize gdb version handling, fix doc and typos

* fix various typos in doc
* following commit in gdb
   http://sourceware.org/ml/gdb-patches/2011-07/msg00742.html
  means unlimited length for valgrind watchpoints is understood by the
  (future) gdb 7.4 => doc updated
* factorize  gdb version detection and reporting in
  gdbserver_tests/make_local_links
* replace zignal by signal in a string used in umsg.
* updated gdbserver_tests/README_DEVELOPPERS (ref to --port vgdb option)

No functional change, tested on f12/x86, debian5/amd64, s390/RHEL4

Fixes #278892.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoChange the behaviour of VALGRIND_CHECK_MEM_IS_DEFINED slightly, so
Julian Seward [Mon, 24 Oct 2011 05:59:54 +0000 (05:59 +0000)] 
Change the behaviour of VALGRIND_CHECK_MEM_IS_DEFINED slightly, so
that if the range is partially non-addressable and it contains
undefined data, both errors are reported.

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

14 years agoAdd more missing files for the tarball.
Florian Krohm [Mon, 24 Oct 2011 00:03:52 +0000 (00:03 +0000)] 
Add more missing files for the tarball.

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

14 years agoRemove the Qt4 regression tests because these are too hard to maintain
Bart Van Assche [Sun, 23 Oct 2011 15:21:48 +0000 (15:21 +0000)] 
Remove the Qt4 regression tests because these are too hard to maintain

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

14 years agoRemove pth_specific.c which is unused.
Florian Krohm [Sun, 23 Oct 2011 14:34:52 +0000 (14:34 +0000)] 
Remove pth_specific.c which is unused.

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

14 years agoAdd some more missing files to the tarball.
Florian Krohm [Sun, 23 Oct 2011 14:30:08 +0000 (14:30 +0000)] 
Add some more missing files to the tarball.

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

14 years agoInclude README_DEVELOPERS for the GDB server in the tarball.
Florian Krohm [Sun, 23 Oct 2011 13:51:34 +0000 (13:51 +0000)] 
Include README_DEVELOPERS for the GDB server in the tarball.

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

14 years agohelgrind/tests/tc08_hbl2: Avoid busy-waiting
Bart Van Assche [Sun, 23 Oct 2011 13:28:20 +0000 (13:28 +0000)] 
helgrind/tests/tc08_hbl2: Avoid busy-waiting

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

14 years agohelgrind/tests/cond_timedwait_invalid: Update expected output because of r12213
Bart Van Assche [Sun, 23 Oct 2011 12:34:07 +0000 (12:34 +0000)] 
helgrind/tests/cond_timedwait_invalid: Update expected output because of r12213

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

14 years agoCheck Makefile.am consistency before running regression tests. Closes #283813.
Bart Van Assche [Sun, 23 Oct 2011 12:14:51 +0000 (12:14 +0000)] 
Check Makefile.am consistency before running regression tests. Closes #283813.

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

14 years agohelgrind/tests/cond_timedwait_invalid: Port to Darwin 10.8
Bart Van Assche [Sun, 23 Oct 2011 12:11:15 +0000 (12:11 +0000)] 
helgrind/tests/cond_timedwait_invalid: Port to Darwin 10.8

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

14 years agoUpdate for 3.7.0. (What did I forget?)
Julian Seward [Sun, 23 Oct 2011 10:05:47 +0000 (10:05 +0000)] 
Update for 3.7.0.  (What did I forget?)

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

14 years agoMore update for 3.7.0 (duh.)
Julian Seward [Sun, 23 Oct 2011 09:57:26 +0000 (09:57 +0000)] 
More update for 3.7.0 (duh.)

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