7830 Commits

Author SHA1 Message Date
Julian Seward
9873d3fc0d Generalise X11 suppressions somewhat, and add a suppression needed for
Ubuntu 9.10 on amd64.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11023
2010-01-08 10:53:04 +00:00
Julian Seward
dab35973c5 Update expected output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11022
2010-01-08 10:51:25 +00:00
Vince Weaver
3a82fd13e3 Add the arm exp-bbv tests Makefile to the main configure.in file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11021
2010-01-06 15:22:11 +00:00
Vince Weaver
1d5446db2f Add arm regression tests for exp-bbv tool.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11020
2010-01-06 15:15:28 +00:00
Julian Seward
6b95f1cd4c arm-linux: remove wrappers for __NR_ipc, __NR_mmap, __NR_sigsuspend
and __NR_sigaction, which all did I_die_here and therefore can never
have been used.  I think they were here as a result of this file being
derived from the x86-linux version, and that arm-linux uses more
modern equivalents (mmap2, rt_sig*, and the broken-out versions of
ipc).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11019
2010-01-06 11:08:18 +00:00
Julian Seward
5d80fe2bdc Pass sys_cacheflush along to VG_(discard_translations), so we have
transparent zero-cost self-modifying code support on ARM.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11018
2010-01-06 10:22:25 +00:00
Julian Seward
5c21cd2532 Disable pid caching for print output: it's wrong in a child after
a fork() and is very confusing.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11017
2010-01-04 21:49:25 +00:00
Julian Seward
9ff9c8291a Enable pread64 on arm-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11016
2010-01-04 21:05:42 +00:00
Bart Van Assche
b876f6a0ff Updated expected output after recent updates in the stack backtrace code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11015
2010-01-04 15:01:44 +00:00
Julian Seward
db42582f80 Analysis/make-it-work for arm-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11014
2010-01-04 12:10:24 +00:00
Bart Van Assche
69f694c9eb Reverted r11010 because it was wrong.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11013
2010-01-04 12:04:38 +00:00
Julian Seward
3c1644f476 Enable origin tracking through arm VFP registers; was apparently
previously not enabled only due to brain-deadness on my part.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11012
2010-01-04 11:48:19 +00:00
Julian Seward
af699e29ed Updated expected output following bug fixes some time back by Ashley
Pittman.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11011
2010-01-04 11:15:24 +00:00
Bart Van Assche
958a879bd1 Merged tc23_bogus_condwait.stderr.exp-linux-x86 and -ppc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11010
2010-01-04 10:49:48 +00:00
Julian Seward
f3073378de Fix building of these regtests on Darwin. Not sure why they broke
in the first place.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11009
2010-01-04 10:47:25 +00:00
Julian Seward
f936b7465b Don't trash %ebx on x86-darwin; gcc doesn't like it and goes off to sulk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11008
2010-01-04 10:46:44 +00:00
Julian Seward
2fdbac6f0c Update arch_test.c properly for arm-linux, and add an entry to
platform_test.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11007
2010-01-04 10:31:41 +00:00
Julian Seward
a72ca74730 Don't assume that va_list can be casted to an unsigned word. Fixes
the build on arm-linux with gcc-4.4 or later.  Patch from Dmitry
Zhurikhin.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11006
2010-01-04 01:01:02 +00:00
Julian Seward
32adf1d743 Include missing files in the tarball.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11005
2010-01-04 00:59:05 +00:00
Julian Seward
d547bf3a85 Add a test program for ARM v5 integer instructions, and also for some
v6 instructions.  (Johan Björk)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11003
2010-01-03 23:46:03 +00:00
Julian Seward
d02140ffba Add the default stderr_filter for this directory; else no tests work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11002
2010-01-03 23:44:34 +00:00
Julian Seward
3322cbe3a1 Handle Iop_SqrtF32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11001
2010-01-03 22:29:32 +00:00
Julian Seward
e66de48efb Further buildsystem bashing, in order to try and get something
make-dist-able.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11000
2010-01-03 21:25:08 +00:00
Julian Seward
2d7fcf0f82 Make sure the Memcheck tests are built on arm-linux using hardware
floating point, since the softfloat results are way different from the
hardware one (not to mention, V reports lots of accesses-below-the-SP
in the softfloat helper functions.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10999
2010-01-03 21:24:09 +00:00
Julian Seward
e6e6bf27bb Try to integrate none/tests/arm properly in the build system.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10998
2010-01-03 17:40:07 +00:00
Julian Seward
7f0663010b Disable this test (effectively) on arm-linux, since that uses
sys_rt_sigprocmask and not the Aulde Fashionede sys_sigprocmask.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10997
2010-01-03 16:10:14 +00:00
Julian Seward
cc732d641a arm-linux: handle sys_signalfd4 and sys_eventfd2. Makes
memcheck/tests/linux-syscalls-2007 succeed on this platform.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10996
2010-01-03 11:46:50 +00:00
Julian Seward
c56752a887 Portability fix for arm-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10995
2010-01-03 11:39:01 +00:00
Julian Seward
99857994dd Handle sys_pipe2 on arm-linux; also add some missing numbers to
vki-scnums-arm-linux.h.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10994
2010-01-03 11:29:35 +00:00
Julian Seward
ef87f94e94 arm-linux: fake up the commpage entry at a lower level (in
parse_procselfmaps) so that the sync checker still works.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10993
2010-01-03 10:14:03 +00:00
Julian Seward
6a9a4015c7 Various minor fixups to make ppc32/64-linux work again following
recent ARM-Linux merge.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10992
2010-01-02 13:24:58 +00:00
Julian Seward
e4a8d1e14f Make regtests build on arm-linux -- all changes are to do with
assembly code for atomic memory modifications.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10991
2010-01-02 10:43:23 +00:00
Julian Seward
b722650de4 Redo r10971 ("Made sure that C++ compilers do not complain about the
_VKI_IOC_TYPECHECK() macro") in a way which is easier to understand.
Also, add it for arm-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10990
2010-01-02 10:41:46 +00:00
Julian Seward
183f9f334f Tidy up determination of the PLAT_ macros a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10989
2010-01-02 10:37:58 +00:00
Julian Seward
7db25d24a4 initUnwindContext: put back into the loop, some initialisations for
ARM which were originally in the loop but inadvertantly got lifted out
during recent merging.  This appears to make stack unwinding work
again on ARM-Linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10988
2010-01-01 20:56:13 +00:00
Julian Seward
9249a3eae7 Unbreak stack unwinding on x86-linux and amd64-linux following merge
of ARM CFI unwinding in r10986.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10987
2010-01-01 19:55:17 +00:00
Julian Seward
6bc7295264 Make the Dwarf3 CFI stack unwinding machinery work on arm-linux
too.  This is a first step towards making not be completely
x86/amd64-linux specific, and so replaces some x86/amd64-specific
stuff with more general constructions:

* structure 'DiCfSI', into which the info is summarised, has been
  made target-specific (ugh), since the sets of registers to be
  unwound differ on different targets.

* enum CfiReg and the CFIC_ constants have been expanded
  accordingly, to handle both arm and x86/amd64 registers.

  The abbreviation "IA" (Intel Architecture) has been used in a
  few places where the x86 and amd64 definitions are shared.

* the CFI reader/summariser in readdwarf.c has been expanded &
  generalised appropriately.

* the DiCfSI evaluator in debuginfo.c, VG_(use_CFI_info), has
  also been generalised appropriately.

  The main change is that instead of passing around triples
  of (IP, SP, BP) values, a new structure 'D3UnwindRegs' is
  passed around instead.  This is defined differently for IA and
  ARM and succeeds in hiding at least some of the differences
  where we don't care about them.

  Note also, D3UnwindRegs duplicates, in purpose and structure,
  structure 'RegSummary' in priv_d3basics.h.  This will be tidied
  up in due course.

This commit almost certainly breaks stack unwinding on amd64-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10986
2010-01-01 18:46:41 +00:00
Julian Seward
88b497ecdf Make Callgrind, DRD and Ptrcheck build on arm-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10985
2010-01-01 18:31:41 +00:00
Julian Seward
0d79d8a324 Don't use -Wdeclaration-after-statement. We long since abandoned any
pretense of being buildable with gcc prior to 3.0, hence there's no
point in having this flag.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10984
2010-01-01 18:30:59 +00:00
Julian Seward
0bcd1e026b n-break build on x86-darwin following r10982.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10983
2010-01-01 12:44:12 +00:00
Julian Seward
e9de458500 Merge from branches/ARM, all parts of the ARM-Linux port except for
the changes to do with reading and using ELF and DWARF3 info.
This breaks all targets except amd64-linux and x86-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10982
2010-01-01 11:59:33 +00:00
Julian Seward
7ed620741c Track changes in the names of a few IR primops to do with int<->fp
conversions, as introduced in vex r1949.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10980
2009-12-31 19:24:12 +00:00
Bart Van Assche
8cab2ecf92 Follow-up for r10972: added missing #include "config.h".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10978
2009-12-31 13:31:11 +00:00
Bart Van Assche
e49f4635af Builds again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10974
2009-12-29 17:30:16 +00:00
Bart Van Assche
74246448f4 Removed dependency of include/pub_tool_basics.h on config.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10972
2009-12-29 16:56:18 +00:00
Bart Van Assche
30b6cbe318 Made sure that C++ compilers do not complain about the _VKI_IOC_TYPECHECK() macro.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10971
2009-12-29 15:08:14 +00:00
Bart Van Assche
244793329b Changes:
- Made sure that C++ compilers do not complain about the header files
  include/pub_tool_libcassert.h and include/pub_tool_basics.h.
- Added the source file none/tests/valgrind_cpp_test.cpp. This source file
  is compiled together with the regression tests in order to verify that
  Valgrind's public header files compile cleanly with a C++ compiler.
These modifications are based on a patch provided by Konstantin Serebryany.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10970
2009-12-29 14:11:38 +00:00
Tom Hughes
5309bc27a0 Handle adjtimex being called in adjtime mode correctly. Closes #219538.
Validate the constant field with ADJ_TAI is used in an adjtimex call.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10969
2009-12-21 11:29:54 +00:00
Nicholas Nethercote
00b4861fbd Document the 'cc' parameter for OSet creation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10968
2009-12-16 02:39:39 +00:00
Josef Weidendorfer
5384a19545 Callgrind: fix bug 217849: Switch to running thread in CLG_(post_signal)
If instrumentation is switched off on multithreaded code,
multiple signals in a row handled by different threads could
confuse callgrind.
Callgrind assumed that in post_signal, it has the correct understanding
of the currently running thread. This is not always correct.
Really switch to running thread.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10966
2009-12-10 19:26:32 +00:00