8074 Commits

Author SHA1 Message Date
Bart Van Assche
eac6134c19 Added read_after_free regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11300
2010-08-29 09:15:19 +00:00
Bart Van Assche
2af82819d8 Added new DRD command-line option --free-is-write and enabled it by default.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11299
2010-08-29 07:20:30 +00:00
Bart Van Assche
9f3a363c9a Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11298
2010-08-27 16:13:41 +00:00
Bart Van Assche
04eca8b9d6 Updated memcheck/tests/Makefile.am.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11297
2010-08-27 10:55:04 +00:00
Bart Van Assche
faffc9a902 Filter out lines that differ between x86 and ppc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11296
2010-08-27 10:52:40 +00:00
Bart Van Assche
d677d75fb2 Ported to Win32. Tested that both RUNNING_ON_VALGRIND and VALGRIND_PRINTF()
work with MinGW and Microsoft Visual Studio. Should close #210935.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11295
2010-08-27 10:05:27 +00:00
Bart Van Assche
b2c54dc273 Spelling fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11294
2010-08-27 10:01:32 +00:00
Bart Van Assche
f93bac7c7c Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11293
2010-08-27 05:48:29 +00:00
Bart Van Assche
8122b2aaef Added new memcheck command-line option --show-possibly-lost. Closes #201170.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11292
2010-08-26 10:56:27 +00:00
Julian Seward
d8f43a43a1 Update comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11291
2010-08-26 09:41:18 +00:00
Julian Seward
b0091f4461 arm-linux: send output to stderr, as on all other platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11290
2010-08-26 09:40:37 +00:00
Tom Hughes
72abd5958d The argument to FIBMAP is an int, not an unsigned long. Fixes #248822.
Patch from Christian Borntraeger <borntraeger@de.ibm.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11289
2010-08-25 09:13:44 +00:00
Julian Seward
d866af8d34 Change the replacement for memcpy to a vectorised version that does
word copies whenever possible.  This drastically reduces the number of
memory references Memcheck has to process and speeds up a test program
that does repeated memcpys of large blocks by a factor of 4 or more.
Also add a vectorised version of memset.

The memcpy version is also constructed with a view to be used in
exp-ptrcheck, so it can copy areas of memory without losing
pointer-identity shadow data, as happens when doing all copies at a
byte granularity.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11288
2010-08-24 09:05:52 +00:00
Julian Seward
f3a7b3a8b9 arm-linux: make restarting interrupted syscalls work in Thumb mode.
This isn't exactly right, in the sense that the if the SVC instruction
was conditional, then it will be restarted with the condition for the
following instruction.  IOW we should back up ITSTATE too, but don't.
This doesn't happen in glibc, though, afaics.

Also tighten up the checks for restarting in ARM mode.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11287
2010-08-22 22:18:31 +00:00
Julian Seward
9b9a112a99 Add tests for all {ARM,Thumb} x {integer,NEON} instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11286
2010-08-22 18:23:29 +00:00
Julian Seward
573dc1f1fc Merge from branches/THUMB: test programs for NEON and Thumb.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11285
2010-08-22 12:24:47 +00:00
Julian Seward
7a7956ac81 Merge from branches/THUMB: link-time stub needed on Ubuntu 10.04 (ARM)
(maybe.  actually I am not sure why this is necessary).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11284
2010-08-22 12:23:01 +00:00
Julian Seward
ad584ebb64 Merge from branches/THUMB: m_machine changes needed for Thumb support:
* track guest_R15 -> guest_R15T renaming
* change min instruction size to 2
* tidy up VG_(get_IP) etc functions a bit
* add hwcaps detection code for ARM



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11283
2010-08-22 12:21:14 +00:00
Julian Seward
58d26cc998 Merge from branches/THUMB: add (partial) --track-origins support for
new guest state components needed for Thumb and NEON support.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11282
2010-08-22 12:16:25 +00:00
Julian Seward
1baa12e56d Merge from branches/THUMB: supps and mandatory redirs on Ubuntu 10.04 (ARM)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11281
2010-08-22 12:13:35 +00:00
Julian Seward
65e5f2fd0a Merge from branches/THUMB: add support for sys_pselect6, sys_pipe2,
sys_inotify_init1 on arm-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11280
2010-08-22 12:08:59 +00:00
Julian Seward
de04801515 Merge from branches/THUMB: rack renaming of guest_R15 to guest_R15T.
Also, add extra FPSCR masking for FPSCR invariant state sanity checks.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11279
2010-08-22 12:03:45 +00:00
Julian Seward
e91f05bc48 Merge from branches/THUMB: track renaming of guest_R15 to guest_R15T.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11278
2010-08-22 12:00:40 +00:00
Julian Seward
5e6248c7ed Merge from branches/THUMB: tool-side handling of new primops required
for NEON support.  Requires further checking.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11277
2010-08-22 11:54:14 +00:00
Julian Seward
509ffafab1 Merge from branches/THUMB: build system fixes for Thumb
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11276
2010-08-22 11:51:26 +00:00
Julian Seward
64fcacf70d Add an intercept for strpbrk (copied from Memcheck).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11273
2010-08-21 09:04:38 +00:00
Julian Seward
00420bca33 Add some supps for Ubuntu 10.04 (x86_64, SSE4).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11272
2010-08-20 18:25:40 +00:00
Julian Seward
6670b778ad Intercept strstr, required on SSE4 capable Linux targets.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11271
2010-08-20 18:25:15 +00:00
Julian Seward
b2113a567d Add in comments a (validated) strspn replacement, should it become
necessary.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11270
2010-08-20 18:24:16 +00:00
Julian Seward
3195fb3d5d Add a new client request, VALGRIND_MAP_IP_TO_SRCLOC, so that clients
can query their own debug info.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11269
2010-08-20 18:22:07 +00:00
Julian Seward
9a8dd3161a Add intercepts for strstr, strpbrk, strcspn. These are needed for
glibc-2.11 when running on SSE4-enabled (virtual) CPUs, for the usual
reason: to avoid ultra-optimised routines using the SSE 4.2 PCMPxSTRx
instructions.  I would not be surprised if it turned out that strspn
was required, but I haven't seen a need for it so far.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11268
2010-08-19 13:22:34 +00:00
Julian Seward
ebe90cdda2 Add a test which checks the ISTRI-vs-ESTRI-vs-ISTRM-vs-ESTRM
aspects of PCMP{I,E}STR{I,M}.  Doesn't check the actual arithmetic
very much -- that's done by pcmpstr64.c.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11267
2010-08-17 22:43:21 +00:00
Julian Seward
f3f9b8848a Add tests for PINSRB and PTEST.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11266
2010-08-17 22:40:47 +00:00
Julian Seward
47b359dd3e Fix strict-aliasing violations; + minor futzing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11265
2010-08-17 22:39:46 +00:00
Bart Van Assche
d89f22bdaa Added two new suppression patterns and generalized an existing one.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11264
2010-08-17 15:19:55 +00:00
Bart Van Assche
f8b1abd1c0 Fixed a compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11263
2010-08-17 15:18:47 +00:00
Julian Seward
c529c2c43e Majorly improve and generalise the core arithmetic routines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11262
2010-08-17 00:19:25 +00:00
Julian Seward
480294a05f Add more intercepts for strcpy, strncmp, strcmp, so as to reduce the
noise level on Ubuntu 10.04 64-bit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11261
2010-08-16 22:56:16 +00:00
Bart Van Assche
7e1e28040b Made sure that the CFLAGS variable specified on the configure command line
is not ignored. Fixes #247980.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11260
2010-08-15 18:54:15 +00:00
Julian Seward
fd4c8a66fb Another supp for OSX 10.5.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11257
2010-08-12 13:30:02 +00:00
Bart Van Assche
54e6779dfe Generalized a suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11255
2010-08-10 08:05:40 +00:00
Julian Seward
366f1bd8be Add a test program for PCMPISTRI on amd64 (not yet hooked up).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11250
2010-08-06 08:10:45 +00:00
Julian Seward
1ec3c376a6 Track vex r2001 (initial PCMPISTRI support):
* handle new pseudo-reg XMM16 in memcheck/mc_machine.c

* run_thread_for_a_while: assert that the amd64 XMM guest reg array
  has no holes and the elements are the right size, so that the
  (PCMP)ISTRI_* helpers can treat it as an array.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11249
2010-08-06 08:01:47 +00:00
Bart Van Assche
229c4c92b3 Follow-up for r11191: made this test pass again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11248
2010-07-31 13:37:58 +00:00
Bart Van Assche
4a91cb990c Passes now when compiled with gcc 4.5.x too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11247
2010-07-31 13:13:53 +00:00
Julian Seward
8c51c94c5c Partially connect up the LZCNT tests. What remains to be done is to
make their building conditional on whether the assembler understands
'lzcnt', which is a configure time test.  (Probably simpler to do a
single test for SSE4.1, 4.2 and 4a support as that will soon be
required anyway.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11246
2010-07-30 15:11:53 +00:00
Julian Seward
6281d1a2d9 Add the ability to detect "amd64-lzcnt" and "x86-lzcnt".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11245
2010-07-30 15:07:42 +00:00
Tom Hughes
e134e4e89a Use VALGRIND_PRINTF to print the first line of the message so that
we only get one copy of the backtrace. Reported in bug #246258.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11244
2010-07-30 13:14:11 +00:00
Bart Van Assche
69b34b1f61 Avoid that gcc 4.5.x reports the warning "taking address of expression of type void". Tested on amd64 and on ppc64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11243
2010-07-29 18:12:23 +00:00
Julian Seward
c97c366f10 Test cases for LZCNT instruction support. Not wired up yet.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11242
2010-07-29 15:55:09 +00:00