7853 Commits

Author SHA1 Message Date
Julian Seward
0dd0fb1f2f Get rid of kludgey and non-functional PID caching in the printing
mechanism.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11046
2010-02-15 10:07:05 +00:00
Julian Seward
22f52b5836 Make -v messages w.r.t. finding of auxiliary debuginfo files less confusing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11045
2010-02-15 10:05:40 +00:00
Julian Seward
975007683d Make this usable on Ubuntu by explicitly specifying bash rather than dash.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11044
2010-02-15 10:04:46 +00:00
Julian Seward
7f29de871f Handle sys_inotify_init1.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11043
2010-02-15 09:58:10 +00:00
Julian Seward
daf8048ea3 Add some intercepts to make Ptrcheck usable-ish on Ubuntu 9.10 (amd64).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11042
2010-02-15 09:57:49 +00:00
Julian Seward
e73c751ccd Add debug printing for the env-mashing machinery, to help investigate
#215914 ("Valgrind inserts bogus empty environment variable").



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11041
2010-02-15 09:54:37 +00:00
Julian Seward
be103bbcfc Reduce verbosity of the PDB reader a bit. Original verbosity is still
available using "-v".



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11040
2010-02-12 12:19:36 +00:00
Julian Seward
5686e8d89d Try to find the PDB file for a given PE file by the totally kludgey
method of doing "strings file.dll | egrep '\.pdb|\.PDB'".

Distantly derived from a patch by leiz@ucla.edu.  Fixes #222902,
although I still would prefer to do this the proper way, by parsing
the PE file properly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11039
2010-02-12 12:12:39 +00:00
Julian Seward
66e628a398 Fix bogus comparisons of PDB vs PE timestamps, so as to avoid
signed vs unsigned confusion.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11038
2010-02-10 13:37:37 +00:00
Julian Seward
041c8de55b Generalise a suppression w.r.t. __setenv on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11037
2010-02-04 12:04:14 +00:00
Julian Seward
5df7c91476 The client request VG_USERREQ__LOAD_PDB_DEBUGINFO that we get from
Wine as a notification to read PDB/PE debug info, contains a parameter
'reloc' whose purpose is unknown, and which is unused.  Rename it
accordingly, to 'unknown_purpose__reloc'.  (a non-functional change)




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11036
2010-01-30 13:40:27 +00:00
Julian Seward
34016f514a Fix up obviously-bogus FPO biasing a bit. Not that I have any idea if
this helps at all.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11035
2010-01-30 13:36:37 +00:00
Julian Seward
09e143240d Make the FPO reader much more robust against apparently nonsensical
FPO tables.  Also, improve debug printing for FPO reading.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11034
2010-01-30 13:07:08 +00:00
Julian Seward
69944232f8 PE/PDB handling: allow the PDB (the debuginfo file) to be up to 1
minute older than the PE (the .exe/.dll it describes) even though this
doesn't seem particularly safe.  Partially fixes #190675.
(patch from Dan Kegel)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11033
2010-01-29 22:37:02 +00:00
Julian Seward
eb5d6433bd Followup fix to r11006. Don't pass va_list by value through client
requests, since there's no guarantee it is the same size as a machine
word.

This renames the private client request VG_USERREQ__INTERNAL_PRINTF to
VG_USERREQ__INTERNAL_PRINTF_VALIST_BY_REF and changes the
argument-passing accordingly.

The public client requests VG_USERREQ__PRINTF and
VG_USERREQ__PRINTF_BACKTRACE are now deprecated, and handled only in
the case where sizeof(UWord) == sizeof(va_list).  In all other cases V
will now print a detailed error message and abort.  This breaks binary
compatibility of apps compiled using VALGRIND_PRINTF and
VALGRIND_PRINTF_BACKTRACE, but that's not easy to avoid.

VG_USERREQ__PRINTF and VG_USERREQ__PRINTF_BACKTRACE are now replaced
by VG_USERREQ__PRINTF_VALIST_BY_REF and
VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF.  The end-user macros
VALGRIND_PRINTF and VALGRIND_PRINTF_BACKTRACE have been adjusted to
use these new requests instead.

Overall result is that source level compatibility of code using
VALGRIND_PRINTF{,_BACKTRACE} is retained, but binary level
compatibility may be broken, necessitating a rebuild of code using
these macros.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11032
2010-01-28 15:23:54 +00:00
Julian Seward
96b3024832 Fix handling of mprotect so as to be more consistent with the handling
of mmap.  Fixes #205541 and its dup #210268.  The fix is simple enough
but the analysis is a bit complex, as detailed in comments.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11031
2010-01-27 10:28:00 +00:00
Julian Seward
59ee7ebc94 Fix up debug printing for the PDB reader, so it can be properly
controlled from the command line.  Recommended flags are

-v --trace-symtab=yes "--trace-symtab-patt=*nameofinteresting.exe" 

Also print entry/exit information for DEBUG_SnarfCodeView and
DEBUG_SnarfLinetab.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11030
2010-01-26 13:26:41 +00:00
Tom Hughes
a7f1837d97 Make generated pkgconfig file reflect the new locations of the
installed libraries. Patch from Jakub Jelinek. Closes #223657.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11029
2010-01-21 10:24:37 +00:00
Tom Hughes
e877852408 DW_OP_mod should do unsigned arithmetic. Closes #223656.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11028
2010-01-21 10:19:46 +00:00
Bart Van Assche
1fa6e44eea Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11027
2010-01-17 11:02:23 +00:00
Julian Seward
977b0eaeaa Add command line flag --vex-guest-chase-cond=no|yes [no] to control
whether front ends should speculatively chase through conditional
branches.  Disabled by default.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11026
2010-01-15 10:57:57 +00:00
Julian Seward
f75c360fc1 Apparently the dynamic linker on ARM-Linux has soname "ld-linux.so.3"
rather than "ld-linux.so.2".  No, don't ask me why.  Anyway, on
Helgrind, don't instrument code in ld-linux.so.3.  This makes Helgrind
pretty much usable on ARM-Linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11025
2010-01-11 13:02:19 +00:00
Julian Seward
d86efc229c Add tests for PLD (cache-prefetch-hint) instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11024
2010-01-09 11:44:21 +00:00
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