Commit Graph

9015 Commits

Author SHA1 Message Date
Bart Van Assche
77fa5bdd2e drd/tests/Makefile.am: update EXTRA_DIST
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12307
2011-12-14 07:30:05 +00:00
Bart Van Assche
c1cd140d3b Update Subversion ignore list
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12306
2011-12-14 07:13:06 +00:00
Bart Van Assche
09bb951cba drd --trace-addr: make tracing 64-bit values on a 32-bit platform work
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12305
2011-12-13 11:12:05 +00:00
Bart Van Assche
5bf8c1dd8c 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
2011-12-13 08:53:23 +00:00
Bart Van Assche
80dda4d67f DRD: Eliminate a temporary variable
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12303
2011-12-13 08:05:07 +00:00
Bart Van Assche
423f1528c4 drd/tests/annotate_trace_memory*: add 32-bit output variants
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12302
2011-12-13 07:52:09 +00:00
Bart Van Assche
7194e38b85 drd/tests/pth_cleanup_handler: increase timeout
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12301
2011-12-13 07:49:30 +00:00
Bart Van Assche
bbc7e3587a DRD: rearrange the definition of u_widen_irop[][]
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12300
2011-12-12 19:54:32 +00:00
Bart Van Assche
665a9dde08 Update Subversion ignore list
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12299
2011-12-12 19:37:48 +00:00
Bart Van Assche
f828c246a6 DRD: make the tracing regression test more complete
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12298
2011-12-12 19:37:10 +00:00
Bart Van Assche
552758fd18 DRD: Make the code for instrumenting store operations more robust
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12297
2011-12-12 19:18:26 +00:00
Bart Van Assche
ba63c7e3d6 drd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12296
2011-12-12 19:04:28 +00:00
Bart Van Assche
98a4b64227 DRD: make DRD_(stop_tracing_address_range)() work at an acceptable speed
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12295
2011-12-12 19:02:34 +00:00
Bart Van Assche
97947a4a20 DRD help text: remove a superfluous dot
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12294
2011-12-12 15:49:00 +00:00
Bart Van Assche
f7fb5bb661 Remove trailing whitespace
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12293
2011-12-11 20:34:03 +00:00
Bart Van Assche
7578df74d8 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
2011-12-11 20:30:46 +00:00
Bart Van Assche
606de3587f DRD: Make --trace-addr work for atomic loads and stores. To do: update manual
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12291
2011-12-11 20:17:57 +00:00
Bart Van Assche
ffcd373429 DRD, --trace-addr: trace stored values too
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12290
2011-12-11 18:49:39 +00:00
Bart Van Assche
a20bddec65 Update Subversion ignore lists
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12289
2011-12-11 18:40:13 +00:00
Bart Van Assche
c885ce22ef 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
2011-12-11 17:54:17 +00:00
Philippe Waroquiers
c523185b76 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
2011-12-11 16:29:43 +00:00
Bart Van Assche
b1c891d916 Follow-up for r12281: update regtest expected output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12286
2011-12-11 10:18:27 +00:00
Bart Van Assche
2b3e0656e0 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
2011-12-10 19:48:04 +00:00
Bart Van Assche
aac70d3117 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
2011-12-10 19:42:05 +00:00
Florian Krohm
a70a467080 Fix a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12283
2011-12-10 16:06:57 +00:00
Florian Krohm
8dbb84b825 Add script to assist in updating the C++ demangler from GCC trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12282
2011-12-10 16:03:57 +00:00
Florian Krohm
34d5fb61d7 Update the C++ demangler by importing files from GCC trunk @ r181975.
Also fixes #283413


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12281
2011-12-10 16:00:25 +00:00
Bart Van Assche
908268e4a0 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
2011-12-08 16:14:59 +00:00
Bart Van Assche
12ec9d298a Remove emacs modeline and/or local variables from DRD source files
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12279
2011-12-04 15:54:19 +00:00
Philippe Waroquiers
bf3801280d 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
2011-12-01 19:44:34 +00:00
Florian Krohm
af3ca30ad2 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
2011-11-26 04:12:01 +00:00
Florian Krohm
f07eae03dd 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
2011-11-26 04:05:47 +00:00
Florian Krohm
64a0193623 Get rid of Roland McGrath et al.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12275
2011-11-24 16:07:41 +00:00
Bart Van Assche
9ad63bc9e7 configure: Fix compiler version check. Closes #286384.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12274
2011-11-22 14:41:31 +00:00
Julian Seward
3f4bbbc0b7 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
2011-11-20 09:35:51 +00:00
Philippe Waroquiers
f403e37982 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
2011-11-17 21:57:21 +00:00
Philippe Waroquiers
246525e3d9 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
2011-11-16 20:43:39 +00:00
Florian Krohm
c155bb8844 New section for 3.7.1.
Announce fix for #286374.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12270
2011-11-16 03:59:49 +00:00
Josef Weidendorfer
2fd31d27a2 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
2011-11-14 21:16:25 +00:00
Josef Weidendorfer
ff5bf18eb8 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
2011-11-14 19:01:21 +00:00
Florian Krohm
271c9ad7e9 Document test results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12267
2011-11-11 04:04:12 +00:00
Julian Seward
c49ec4259c Merge latest changes to this file from 3_7_BRANCH.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12266
2011-11-09 23:42:41 +00:00
Bart Van Assche
2796d1b9be RHEL 4 build fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12263
2011-11-09 17:31:54 +00:00
Florian Krohm
bc733a9e4a Remove TEST_TOOLS and TEXT_EXP_TOOLS as they are no longer needed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12262
2011-11-08 20:16:09 +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
95f980821a 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
2011-11-08 19:32:57 +00:00
Florian Krohm
aae83277bc Update platform_test. Add s390x-linux. Remove AIX.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12259
2011-11-06 22:43:33 +00:00
Florian Krohm
fe2fc37c76 Also display information about the assembler (binutils).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12257
2011-11-03 02:10:02 +00:00
Julian Seward
d2daafda62 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
2011-10-31 10:59:31 +00:00
Florian Krohm
2a7aef3ada Remove unneeded prerequisites in testcases.
Followup to r11693.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12253
2011-10-29 04:02:34 +00:00