]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoMerge from branches/THUMB: supps and mandatory redirs on Ubuntu 10.04 (ARM)
Julian Seward [Sun, 22 Aug 2010 12:13:35 +0000 (12:13 +0000)] 
Merge from branches/THUMB: supps and mandatory redirs on Ubuntu 10.04 (ARM)

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

14 years agoMerge from branches/THUMB: add support for sys_pselect6, sys_pipe2,
Julian Seward [Sun, 22 Aug 2010 12:08:59 +0000 (12:08 +0000)] 
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

14 years agoMerge from branches/THUMB: rack renaming of guest_R15 to guest_R15T.
Julian Seward [Sun, 22 Aug 2010 12:03:45 +0000 (12:03 +0000)] 
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

14 years agoMerge from branches/THUMB: track renaming of guest_R15 to guest_R15T.
Julian Seward [Sun, 22 Aug 2010 12:00:40 +0000 (12:00 +0000)] 
Merge from branches/THUMB: track renaming of guest_R15 to guest_R15T.

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

14 years agoMerge from branches/THUMB: tool-side handling of new primops required
Julian Seward [Sun, 22 Aug 2010 11:54:14 +0000 (11:54 +0000)] 
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

14 years agoMerge from branches/THUMB: build system fixes for Thumb
Julian Seward [Sun, 22 Aug 2010 11:51:26 +0000 (11:51 +0000)] 
Merge from branches/THUMB: build system fixes for Thumb

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

14 years agoAdd an intercept for strpbrk (copied from Memcheck).
Julian Seward [Sat, 21 Aug 2010 09:04:38 +0000 (09:04 +0000)] 
Add an intercept for strpbrk (copied from Memcheck).

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

14 years agoAdd some supps for Ubuntu 10.04 (x86_64, SSE4).
Julian Seward [Fri, 20 Aug 2010 18:25:40 +0000 (18:25 +0000)] 
Add some supps for Ubuntu 10.04 (x86_64, SSE4).

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

14 years agoIntercept strstr, required on SSE4 capable Linux targets.
Julian Seward [Fri, 20 Aug 2010 18:25:15 +0000 (18:25 +0000)] 
Intercept strstr, required on SSE4 capable Linux targets.

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

14 years agoAdd in comments a (validated) strspn replacement, should it become
Julian Seward [Fri, 20 Aug 2010 18:24:16 +0000 (18:24 +0000)] 
Add in comments a (validated) strspn replacement, should it become
necessary.

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

14 years agoAdd a new client request, VALGRIND_MAP_IP_TO_SRCLOC, so that clients
Julian Seward [Fri, 20 Aug 2010 18:22:07 +0000 (18:22 +0000)] 
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

14 years agoAdd intercepts for strstr, strpbrk, strcspn. These are needed for
Julian Seward [Thu, 19 Aug 2010 13:22:34 +0000 (13:22 +0000)] 
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

14 years agoAdd a test which checks the ISTRI-vs-ESTRI-vs-ISTRM-vs-ESTRM
Julian Seward [Tue, 17 Aug 2010 22:43:21 +0000 (22:43 +0000)] 
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

14 years agoAdd tests for PINSRB and PTEST.
Julian Seward [Tue, 17 Aug 2010 22:40:47 +0000 (22:40 +0000)] 
Add tests for PINSRB and PTEST.

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

14 years agoFix strict-aliasing violations; + minor futzing.
Julian Seward [Tue, 17 Aug 2010 22:39:46 +0000 (22:39 +0000)] 
Fix strict-aliasing violations; + minor futzing.

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

14 years agoAdded two new suppression patterns and generalized an existing one.
Bart Van Assche [Tue, 17 Aug 2010 15:19:55 +0000 (15:19 +0000)] 
Added two new suppression patterns and generalized an existing one.

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

14 years agoFixed a compiler warning.
Bart Van Assche [Tue, 17 Aug 2010 15:18:47 +0000 (15:18 +0000)] 
Fixed a compiler warning.

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

14 years agoMajorly improve and generalise the core arithmetic routines.
Julian Seward [Tue, 17 Aug 2010 00:19:25 +0000 (00:19 +0000)] 
Majorly improve and generalise the core arithmetic routines.

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

14 years agoAdd more intercepts for strcpy, strncmp, strcmp, so as to reduce the
Julian Seward [Mon, 16 Aug 2010 22:56:16 +0000 (22:56 +0000)] 
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

14 years agoMade sure that the CFLAGS variable specified on the configure command line
Bart Van Assche [Sun, 15 Aug 2010 18:54:15 +0000 (18:54 +0000)] 
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

14 years agoAnother supp for OSX 10.5.
Julian Seward [Thu, 12 Aug 2010 13:30:02 +0000 (13:30 +0000)] 
Another supp for OSX 10.5.

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

15 years agoGeneralized a suppression pattern.
Bart Van Assche [Tue, 10 Aug 2010 08:05:40 +0000 (08:05 +0000)] 
Generalized a suppression pattern.

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

15 years agoAdd a test program for PCMPISTRI on amd64 (not yet hooked up).
Julian Seward [Fri, 6 Aug 2010 08:10:45 +0000 (08:10 +0000)] 
Add a test program for PCMPISTRI on amd64 (not yet hooked up).

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

15 years agoTrack vex r2001 (initial PCMPISTRI support):
Julian Seward [Fri, 6 Aug 2010 08:01:47 +0000 (08:01 +0000)] 
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

15 years agoFollow-up for r11191: made this test pass again.
Bart Van Assche [Sat, 31 Jul 2010 13:37:58 +0000 (13:37 +0000)] 
Follow-up for r11191: made this test pass again.

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

15 years agoPasses now when compiled with gcc 4.5.x too.
Bart Van Assche [Sat, 31 Jul 2010 13:13:53 +0000 (13:13 +0000)] 
Passes now when compiled with gcc 4.5.x too.

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

15 years agoPartially connect up the LZCNT tests. What remains to be done is to
Julian Seward [Fri, 30 Jul 2010 15:11:53 +0000 (15:11 +0000)] 
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

15 years agoAdd the ability to detect "amd64-lzcnt" and "x86-lzcnt".
Julian Seward [Fri, 30 Jul 2010 15:07:42 +0000 (15:07 +0000)] 
Add the ability to detect "amd64-lzcnt" and "x86-lzcnt".

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

15 years agoUse VALGRIND_PRINTF to print the first line of the message so that
Tom Hughes [Fri, 30 Jul 2010 13:14:11 +0000 (13:14 +0000)] 
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

15 years agoAvoid that gcc 4.5.x reports the warning "taking address of expression of type void...
Bart Van Assche [Thu, 29 Jul 2010 18:12:23 +0000 (18:12 +0000)] 
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

15 years agoTest cases for LZCNT instruction support. Not wired up yet.
Julian Seward [Thu, 29 Jul 2010 15:55:09 +0000 (15:55 +0000)] 
Test cases for LZCNT instruction support.  Not wired up yet.

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

15 years agox86/amd64: detect whether the CPU supports LZCNT. Followup to
Julian Seward [Thu, 29 Jul 2010 15:40:32 +0000 (15:40 +0000)] 
x86/amd64: detect whether the CPU supports LZCNT.  Followup to
#212335.

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

15 years agoMade gmp, mpfr and mpc prefixes configurable.
Bart Van Assche [Thu, 29 Jul 2010 15:19:50 +0000 (15:19 +0000)] 
Made gmp, mpfr and mpc prefixes configurable.

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

15 years agoReverted r11238.
Bart Van Assche [Thu, 29 Jul 2010 09:34:46 +0000 (09:34 +0000)] 
Reverted r11238.

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

15 years agoAvoid that gcc 4.5.x reports the warning "taking address of expression of type void".
Bart Van Assche [Thu, 29 Jul 2010 07:53:57 +0000 (07:53 +0000)] 
Avoid that gcc 4.5.x reports the warning "taking address of expression of type void".

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

15 years agoUpdated list of suppression patterns.
Bart Van Assche [Thu, 29 Jul 2010 07:52:37 +0000 (07:52 +0000)] 
Updated list of suppression patterns.

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

15 years agoUpdate expected output for Ubuntu 10.04.
Julian Seward [Thu, 29 Jul 2010 07:03:05 +0000 (07:03 +0000)] 
Update expected output for Ubuntu 10.04.

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

15 years agoUpdate expected outputs following vex r1992.
Julian Seward [Thu, 29 Jul 2010 07:02:18 +0000 (07:02 +0000)] 
Update expected outputs following vex r1992.

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

15 years agoWhen reporting an error about an attempt to re-lock an already-locked
Julian Seward [Thu, 29 Jul 2010 05:28:02 +0000 (05:28 +0000)] 
When reporting an error about an attempt to re-lock an already-locked
lock, also report the stack where the lock was previously locked.
This makes it easier to diagnose deadlocks.

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

15 years agoComment-only change.
Julian Seward [Thu, 29 Jul 2010 05:24:20 +0000 (05:24 +0000)] 
Comment-only change.

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

15 years agoHandle sys_ioperm on Linux. Fixes #237723.
Julian Seward [Thu, 29 Jul 2010 05:18:09 +0000 (05:18 +0000)] 
Handle sys_ioperm on Linux.  Fixes #237723.

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

15 years agoSupport sys_proc_info on 32-bit darwin as well as 64-bit. This
Julian Seward [Tue, 27 Jul 2010 09:09:55 +0000 (09:09 +0000)] 
Support sys_proc_info on 32-bit darwin as well as 64-bit.  This
gets rid of complaints about "unsupported syscall unix:336".

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

15 years agoIn XML mode, properly escape test strings in the preamble.
Julian Seward [Fri, 23 Jul 2010 17:03:22 +0000 (17:03 +0000)] 
In XML mode, properly escape test strings in the preamble.
Fixes #244923.  (Zhujunling@huawei.com)

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

15 years agopdb_ds_read: if the presented size is implausibly huge (> 512MB),
Julian Seward [Thu, 22 Jul 2010 22:36:43 +0000 (22:36 +0000)] 
pdb_ds_read: if the presented size is implausibly huge (> 512MB),
ignore it on the assumption that the .pdb is corrupt, rather than
running the system out of memory by trying to allocate a chunk of that
size.

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

15 years agoUpdated Subversion ignore lists.
Bart Van Assche [Thu, 22 Jul 2010 11:39:28 +0000 (11:39 +0000)] 
Updated Subversion ignore lists.

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

15 years agopthread_hijack: start the new thread with all signals blocked,
Julian Seward [Thu, 22 Jul 2010 08:59:07 +0000 (08:59 +0000)] 
pthread_hijack: start the new thread with all signals blocked,
as with the x86-darwin version.

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

15 years agoAdd a fix equivalent to r10751 for amd64-darwin: Resync after
Julian Seward [Thu, 22 Jul 2010 08:47:19 +0000 (08:47 +0000)] 
Add a fix equivalent to r10751 for amd64-darwin: Resync after
{wq,p}thread_hijack rather than merely doing a check.  Also, some
whitespace changes that make it easier to diff by eye relative to the
x86-darwin versions.  "Fixes" the problem reported at
https://bugs.kde.org/show_bug.cgi?id=205241#c74

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

15 years agoSupport sys_audit_session_self on MacOSX 10.6 (Dave MacLachlan,
Julian Seward [Wed, 21 Jul 2010 19:54:43 +0000 (19:54 +0000)] 
Support sys_audit_session_self on MacOSX 10.6 (Dave MacLachlan,
dmaclach@gmail.com).  Fixes #244670.  I'm assuming this also compiles
on 10.5 but haven't tried it.

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

15 years agoUse the wrapper for sys___semwait_signal for 10.5 also on 10.6,
Julian Seward [Wed, 21 Jul 2010 16:34:47 +0000 (16:34 +0000)] 
Use the wrapper for sys___semwait_signal for 10.5 also on 10.6,
rather than have a different one for 10.6.

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

15 years agoSupport sys_symlink on Darwin. Fixes #237485.
Julian Seward [Wed, 21 Jul 2010 16:21:43 +0000 (16:21 +0000)] 
Support sys_symlink on Darwin.  Fixes #237485.

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

15 years agoPut quotes around the argument to /usr/bin/dsymutil, so it doesn't
Julian Seward [Wed, 21 Jul 2010 16:00:08 +0000 (16:00 +0000)] 
Put quotes around the argument to /usr/bin/dsymutil, so it doesn't
screw up on filenames with spaces.  Fixes (part of) #205093.

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

15 years agoFix compiler warnings with the proc_info wrapper.
Julian Seward [Wed, 21 Jul 2010 15:28:34 +0000 (15:28 +0000)] 
Fix compiler warnings with the proc_info wrapper.

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

15 years agoMake the --workaround-gcc296-bugs kludge take into account the stack
Julian Seward [Wed, 21 Jul 2010 12:46:44 +0000 (12:46 +0000)] 
Make the --workaround-gcc296-bugs kludge take into account the stack
redzone size.  Fixes #238208.

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

15 years agoHandle (on Linux) syscalls: sendfile, setgid, setgroups. Fixes
Julian Seward [Wed, 21 Jul 2010 10:03:49 +0000 (10:03 +0000)] 
Handle (on Linux) syscalls: sendfile, setgid, setgroups.  Fixes
#242606 and #244009.

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

15 years agoIncrease Valgrind's (per-thread) stack size from 64kB to 1MB,
Julian Seward [Wed, 21 Jul 2010 09:49:27 +0000 (09:49 +0000)] 
Increase Valgrind's (per-thread) stack size from 64kB to 1MB,
so as to avoid demangler crashes on very long names.  Fixes
#197988 (possibly only temporary; the demangler could overflow
the stack again, given extremely long names.)

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

15 years agoInclude unified_annotations.h in the tarball.
Julian Seward [Thu, 15 Jul 2010 15:09:38 +0000 (15:09 +0000)] 
Include unified_annotations.h in the tarball.

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

15 years agoTry to fix 'make dist' -- possible fallout from r11188.
Julian Seward [Thu, 15 Jul 2010 13:05:42 +0000 (13:05 +0000)] 
Try to fix 'make dist' -- possible fallout from r11188.

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

15 years agoFix for branch prediction: handle calls via function pointer
Josef Weidendorfer [Wed, 7 Jul 2010 18:51:59 +0000 (18:51 +0000)] 
Fix for branch prediction: handle calls via function pointer

Calls via function pointers are indirect branches, and thus
should call into the indirect branch predictor simulation.

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

15 years agoMake -h -h be equivalent to --help-debug.
Nicholas Nethercote [Tue, 6 Jul 2010 04:25:12 +0000 (04:25 +0000)] 
Make -h -h be equivalent to --help-debug.

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

15 years agoReplace the handful of uses of Vg_ExtraDebugMsg and VG_(emsg) with
Nicholas Nethercote [Tue, 6 Jul 2010 04:21:47 +0000 (04:21 +0000)] 
Replace the handful of uses of Vg_ExtraDebugMsg and VG_(emsg) with
Vg_DebugMsg and VG_(dmsg).

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

15 years agoMake error messages at start-up more consistent. Every line of such
Nicholas Nethercote [Tue, 6 Jul 2010 04:05:23 +0000 (04:05 +0000)] 
Make error messages at start-up more consistent.  Every line of such
messages now begin with "valgrind: ", and they're more often printed before
the preamble.  This required introducing a new message kind, Vg_FailMsg, and
functions VG_(fmsg) and VG_(fmsg_bad_option), and removing
VG_(err_bad_option).

Where we used to have horrible output like this:

    [ocean:~/grind/ws2] vg5 --tool=massif --threshold=101 date
    ==31877== Massif, a heap profiler
    ==31877== Copyright (C) 2003-2010, and GNU GPL'd, by Nicholas Nethercote
    ==31877== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info
    ==31877== Command: date
    ==31877==
    ==31877== --threshold must be between 0.0 and 100.0
    valgrind: Bad option '--threshold'; aborting.
    valgrind: Use --help for more information.

We now have nice output like this:

    [ocean:~/grind/ws2] vg2 --tool=massif --threshold=101 date
    valgrind: Bad option: --threshold=101
    valgrind: --threshold must be between 0.0 and 100.0
    valgrind: Use --help for more information or consult the user manual.

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

15 years agoConvert x86-darwin to amd64-darwin at configure time, because Macs report as
Nicholas Nethercote [Mon, 5 Jul 2010 07:21:22 +0000 (07:21 +0000)] 
Convert x86-darwin to amd64-darwin at configure time, because Macs report as
32-bit even though almost all of them support 64-bit as well.  A hack, but
one that will make just about everyone's lives easier.

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

15 years agoCallgrind: add branch prediction from Cachegrind
Josef Weidendorfer [Fri, 2 Jul 2010 19:56:23 +0000 (19:56 +0000)] 
Callgrind: add branch prediction from Cachegrind

Callgrind now uses Cachegrind's command line option to switch
on simulation: "--branch-sim=yes/no" for branch prediction,
and "--cache-sim=yes/no" for cache simulation (for more
consistency and to avoid confusion). However, the previously
used "--simulate-cache=yes/no" still is supported but deprecated.

Included: according documentation and tests.

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

15 years agoGive prototypes for the 64-bit integer division replacements, so
Julian Seward [Thu, 1 Jul 2010 14:50:30 +0000 (14:50 +0000)] 
Give prototypes for the 64-bit integer division replacements, so
gcc doesn't complain about the lack thereof.  (x86-darwin only).

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

15 years agoGet rid of a whole bunch of format string warnings, by the probably
Julian Seward [Thu, 1 Jul 2010 14:17:32 +0000 (14:17 +0000)] 
Get rid of a whole bunch of format string warnings, by the probably
excessively blunt-instrument approach of casting all offending values
to 64-bits.

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

15 years agoFix \n placement in Darwin sync-check-failure messages.
Julian Seward [Thu, 1 Jul 2010 11:42:22 +0000 (11:42 +0000)] 
Fix \n placement in Darwin sync-check-failure messages.

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

15 years agoDon't assert when trying to show a Darwin syscall number in an unknown
Julian Seward [Thu, 1 Jul 2010 11:15:32 +0000 (11:15 +0000)] 
Don't assert when trying to show a Darwin syscall number in an unknown
syscall class.  This stops Valgrind asserting when doing
--trace-syscalls=yes and a sys_syscall is encountered, in 64-bit mode.
I don't know if this is a correct fix or whether it merely hides
symptoms of logic handling problems for sys_syscall on Darwin.

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

15 years agoAdd a handler for syscall proc_info, 64-bit Darwin only atm.
Julian Seward [Thu, 1 Jul 2010 10:47:23 +0000 (10:47 +0000)] 
Add a handler for syscall proc_info, 64-bit Darwin only atm.

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

15 years agoAdd some suppressions reported by Jesse Ruderman.
Nicholas Nethercote [Thu, 1 Jul 2010 02:37:23 +0000 (02:37 +0000)] 
Add some suppressions reported by Jesse Ruderman.

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

15 years agoAdd --pages-as-heap option to Massif. Bug 203256.
Nicholas Nethercote [Thu, 1 Jul 2010 02:35:03 +0000 (02:35 +0000)] 
Add --pages-as-heap option to Massif.  Bug 203256.

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

15 years agoFix various bits of regtest breakage on amd64-linux caused by the MACOSX106
Nicholas Nethercote [Thu, 1 Jul 2010 01:09:42 +0000 (01:09 +0000)] 
Fix various bits of regtest breakage on amd64-linux caused by the MACOSX106
merge.

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

15 years agoRemove a bogus header file listing.
Nicholas Nethercote [Thu, 1 Jul 2010 00:37:46 +0000 (00:37 +0000)] 
Remove a bogus header file listing.

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

15 years agoAdd a missing filter_stderr file.
Nicholas Nethercote [Thu, 1 Jul 2010 00:34:54 +0000 (00:34 +0000)] 
Add a missing filter_stderr file.

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

15 years agoAdd missing darwin10 .supp files.
Nicholas Nethercote [Thu, 1 Jul 2010 00:28:09 +0000 (00:28 +0000)] 
Add missing darwin10 .supp files.

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

15 years agoMerged the MACOSX106 branch to the trunk. Merge command:
Nicholas Nethercote [Thu, 1 Jul 2010 00:20:20 +0000 (00:20 +0000)] 
Merged the MACOSX106 branch to the trunk.  Merge command:

  svn merge -r11143:HEAD svn://svn.valgrind.org/valgrind/branches/MACOSX106

There were some easy-to-resolve conflicts.

Then I had to fix up coregrind/link_tool_exe*.in -- those files had been
added independently on both the trunk and the branch, AFAICT.  I just
overwrote the trunk versions with the branch versions.

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

15 years agoAdded cg_diff.
Nicholas Nethercote [Wed, 30 Jun 2010 05:23:34 +0000 (05:23 +0000)] 
Added cg_diff.

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

15 years agoFix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the...
Bart Van Assche [Tue, 29 Jun 2010 06:16:52 +0000 (06:16 +0000)] 
Fix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the first argument of the mount() system call is NULL.

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

15 years agoAdd tests for ROUNDSS and ROUNDSD -- partial coverage, for the cases
Julian Seward [Mon, 28 Jun 2010 08:15:48 +0000 (08:15 +0000)] 
Add tests for ROUNDSS and ROUNDSD -- partial coverage, for the cases
where the rounding mode is encoded in the instruction itself.

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

15 years agoHandle new primop Iop_RoundF32toInt, needed by SSE4 ROUNDSS (vex
Julian Seward [Sun, 27 Jun 2010 09:08:54 +0000 (09:08 +0000)] 
Handle new primop Iop_RoundF32toInt, needed by SSE4 ROUNDSS (vex
r1986).

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

15 years agoDon't need to have special handling for link_tool_exe now that it's
Nicholas Nethercote [Tue, 22 Jun 2010 06:46:15 +0000 (06:46 +0000)] 
Don't need to have special handling for link_tool_exe now that it's
implemented via perl scripts instead of an executable.

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

15 years agoDon't print the linking command, it's too noisy with "make --quiet" builds.
Nicholas Nethercote [Tue, 22 Jun 2010 06:45:44 +0000 (06:45 +0000)] 
Don't print the linking command, it's too noisy with "make --quiet" builds.

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

15 years agoFix bug in the previous commit.
Nicholas Nethercote [Tue, 22 Jun 2010 03:50:08 +0000 (03:50 +0000)] 
Fix bug in the previous commit.

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

15 years agoAllow negative numbers in the cachegrind.out.* file. Also protect against
Nicholas Nethercote [Tue, 22 Jun 2010 03:40:04 +0000 (03:40 +0000)] 
Allow negative numbers in the cachegrind.out.* file.  Also protect against
division-by-zero.  Both are required for cg_diff (not yet committed) to work
properly.

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

15 years agoMake better use of references, allowing data structure updates to be more
Nicholas Nethercote [Tue, 22 Jun 2010 03:34:54 +0000 (03:34 +0000)] 
Make better use of references, allowing data structure updates to be more
localised.

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

15 years agoValgrind-side changes needed to go with vex r1984 (Implement SSE4
Julian Seward [Fri, 18 Jun 2010 08:18:38 +0000 (08:18 +0000)] 
Valgrind-side changes needed to go with vex r1984 (Implement SSE4
insns: CMPGTQ PMAXUD PMINUD PMAXSB PMINSB PMULLD)

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

15 years agoReimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
Bart Van Assche [Tue, 15 Jun 2010 14:55:28 +0000 (14:55 +0000)] 
Reimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
compiler warning on PPC when it shouldn't.

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

15 years agoUpdated Subversion ignore list.
Bart Van Assche [Tue, 15 Jun 2010 13:02:48 +0000 (13:02 +0000)] 
Updated Subversion ignore list.

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

15 years agoAvoid reading beyond the end of the environment variable when
Tom Hughes [Tue, 15 Jun 2010 12:49:07 +0000 (12:49 +0000)] 
Avoid reading beyond the end of the environment variable when
using mash_colon_env to remove paths. Should fix #215914.

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

15 years agoAdd a test program for SSE4 instructions. Currently not integrated
Julian Seward [Tue, 15 Jun 2010 08:16:00 +0000 (08:16 +0000)] 
Add a test program for SSE4 instructions.  Currently not integrated
into the build/regtest system.

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

15 years agoFixed compiler warnings about casting from const char * to char *.
Bart Van Assche [Mon, 14 Jun 2010 18:12:56 +0000 (18:12 +0000)] 
Fixed compiler warnings about casting from const char * to char *.

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

15 years agoRemove link_tool_exe.c and replace it with perl scripts that do the
Julian Seward [Sun, 13 Jun 2010 22:13:58 +0000 (22:13 +0000)] 
Remove link_tool_exe.c and replace it with perl scripts that do the
same thing.  A .c file doesn't work for cross compilation.

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

15 years agoPowerPC: only compile Altivec instructions when the CPU supports these. Fixes bug...
Bart Van Assche [Sun, 13 Jun 2010 14:49:04 +0000 (14:49 +0000)] 
PowerPC: only compile Altivec instructions when the CPU supports these. Fixes bug #238745.

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

15 years agoMade the abort() function available on PPC too.
Bart Van Assche [Sun, 13 Jun 2010 13:46:24 +0000 (13:46 +0000)] 
Made the abort() function available on PPC too.

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

15 years agoFixed bogus check of RES in the ioctl PRE handler introduced
Tom Hughes [Thu, 10 Jun 2010 15:01:02 +0000 (15:01 +0000)] 
Fixed bogus check of RES in the ioctl PRE handler introduced
in r11124 while fixing #235642.

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

15 years agoFix typo introduced with r11165, include "Ge" in regtests
Josef Weidendorfer [Thu, 10 Jun 2010 12:50:22 +0000 (12:50 +0000)] 
Fix typo introduced with r11165, include "Ge" in regtests

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

15 years agoFollow-up for r11164: made sure that the --build-id=none configure test works (was...
Bart Van Assche [Thu, 10 Jun 2010 06:26:21 +0000 (06:26 +0000)] 
Follow-up for r11164: made sure that the --build-id=none configure test works (was reported by Dave Goodell).

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

15 years agoCallgrind new feature: count global bus lock events "Ge"
Josef Weidendorfer [Wed, 9 Jun 2010 22:33:02 +0000 (22:33 +0000)] 
Callgrind new feature: count global bus lock events "Ge"

To count global bus lock events, use "--collect-bus=yes".
For x86, this will count the number of executed instructions
with a lock prefix; for architectures with LL/SC, this will
count the number of executed SC instructions.

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

15 years agoCallgrind: make globals for log_* helpers visible outside sim.c
Josef Weidendorfer [Wed, 9 Jun 2010 22:32:58 +0000 (22:32 +0000)] 
Callgrind: make globals for log_* helpers visible outside sim.c

At beginning of each BB, Callgrind inserts a call to setup_bbcc,
which (among a lot other things), sets global vars needed for
the log_* helpers called afterwards in this BB.

These globals, bb_base and cost_base, previously we static declared
and only visible in sim.c. Make them visible also in the rest of
callgrind to allow for log_* handlers outside sim.c.

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

15 years agoCallgrind: event sets now consist of event groups
Josef Weidendorfer [Wed, 9 Jun 2010 22:32:53 +0000 (22:32 +0000)] 
Callgrind: event sets now consist of event groups

Offsets of groups within event sets are now
stored in a offset table as part of the event set, and
can be accessed directly. Before, offsets were hardcoded
all over the place. This should make addition of further
event groups much simpler.

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

15 years agoAdded a configure test for the linker flag --build-id=none.
Bart Van Assche [Tue, 8 Jun 2010 18:23:59 +0000 (18:23 +0000)] 
Added a configure test for the linker flag --build-id=none.

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