]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoUpdate list of files to be ignored by svn.
Florian Krohm [Mon, 18 Jul 2011 20:32:20 +0000 (20:32 +0000)] 
Update list of files to be ignored by svn.

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

14 years agoEnable chasing of unconditional jumps/calls for s390x.
Florian Krohm [Sat, 16 Jul 2011 02:09:36 +0000 (02:09 +0000)] 
Enable chasing of unconditional jumps/calls for s390x.
Tune function chase_into_ok to not chase into EX/EXRL
insn.
Observed speedups on performance tests were:
none      -6% ... -12%
memcheck  -3% ... -8%

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

14 years agodrd/tests/annotate_smart_pointer2: Filter out offset
Bart Van Assche [Wed, 13 Jul 2011 16:46:18 +0000 (16:46 +0000)] 
drd/tests/annotate_smart_pointer2: Filter out offset

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

14 years agoAdd gdb.pic to the Subversion ignore list
Bart Van Assche [Wed, 13 Jul 2011 10:45:02 +0000 (10:45 +0000)] 
Add gdb.pic to the Subversion ignore list

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

14 years agodrd: add a test that verifies that a race is reported for the annotate_smart_pointer...
Bart Van Assche [Wed, 13 Jul 2011 10:43:49 +0000 (10:43 +0000)] 
drd: add a test that verifies that a race is reported for the annotate_smart_pointer test program with annotations disabled

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

14 years agodrd/tests/annotate_smart_pointer: remove a superfluous initialization
Bart Van Assche [Wed, 13 Jul 2011 10:43:05 +0000 (10:43 +0000)] 
drd/tests/annotate_smart_pointer: remove a superfluous initialization

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

14 years agoCast llseek argument to avoid warning.
Tom Hughes [Wed, 13 Jul 2011 10:05:24 +0000 (10:05 +0000)] 
Cast llseek argument to avoid warning.

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

14 years agoAllow core dumps on 32 bit architectures to go over 2Gb in size. BZ#277610.
Tom Hughes [Wed, 13 Jul 2011 09:02:14 +0000 (09:02 +0000)] 
Allow core dumps on 32 bit architectures to go over 2Gb in size. BZ#277610.

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

14 years agoMake the location for temporary files configurable at runtime.
Florian Krohm [Tue, 12 Jul 2011 19:07:05 +0000 (19:07 +0000)] 
Make the location for temporary files configurable at runtime.
To that effect observe the environment variable TMPDIR. If defined,
its value takes precedence over VG_TMPDIR.
Because the directory name is no longer a compile time constant,
VG_(err_config_error) was changed to take a variable argument list.
Fixes #267020.

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

14 years agoReinstate inclusion of signal.h, removed in r11886.
Julian Seward [Tue, 12 Jul 2011 17:41:50 +0000 (17:41 +0000)] 
Reinstate inclusion of signal.h, removed in r11886.

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

14 years agoReinstate inclusion of unistd.h, removed in r11886.
Julian Seward [Tue, 12 Jul 2011 17:28:39 +0000 (17:28 +0000)] 
Reinstate inclusion of unistd.h, removed in r11886.

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

14 years agoUn-break the build on most platforms following r11888. Oops.
Julian Seward [Tue, 12 Jul 2011 13:50:59 +0000 (13:50 +0000)] 
Un-break the build on most platforms following r11888.  Oops.

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

14 years agoAdd a file containing information on how to cross-compile for Android.
Julian Seward [Tue, 12 Jul 2011 13:34:31 +0000 (13:34 +0000)] 
Add a file containing information on how to cross-compile for Android.

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

14 years agoFix up preload code so that on Android it doesn't try to call anything
Julian Seward [Tue, 12 Jul 2011 13:33:00 +0000 (13:33 +0000)] 
Fix up preload code so that on Android it doesn't try to call anything
else -- that seems to give a runtime link failure.  In particular,
avoid calling _exit, getpagesize or __libc_freeres.

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

14 years agoFix Linux build breakage caused by header rearrangement in r11885, sigh.
Julian Seward [Tue, 12 Jul 2011 11:59:11 +0000 (11:59 +0000)] 
Fix Linux build breakage caused by header rearrangement in r11885, sigh.

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

14 years agoBuild system fixes so as to temporarily disable the GDBserver on
Julian Seward [Tue, 12 Jul 2011 11:46:24 +0000 (11:46 +0000)] 
Build system fixes so as to temporarily disable the GDBserver on
Android.  Making that work will require a bit of extra effort due to
minor glibc-vs-bionic differences.

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

14 years agoConditionalise code that uses some ELF constants that Android doesn't
Julian Seward [Tue, 12 Jul 2011 10:59:27 +0000 (10:59 +0000)] 
Conditionalise code that uses some ELF constants that Android doesn't
know about, and remove three unnecessary #defines.

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

14 years agoDisable stabs reading on Android; it's uncompilable, and there's no
Julian Seward [Tue, 12 Jul 2011 07:27:23 +0000 (07:27 +0000)] 
Disable stabs reading on Android; it's uncompilable, and there's no
point.

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

14 years agoMake this compilable on Android.
Julian Seward [Tue, 12 Jul 2011 07:14:47 +0000 (07:14 +0000)] 
Make this compilable on Android.

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

14 years agoAllow selection of an alternative location for temporary files at
Julian Seward [Tue, 12 Jul 2011 06:58:55 +0000 (06:58 +0000)] 
Allow selection of an alternative location for temporary files at
configure time, via the --with-tmpdir flag.  The configure.in part of
this was mistakenly committed already in r11872 as first hunk of the
configure.in change.  Bug 266035 comment 11.  (Kenny Root,
kroot@google.com)

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

14 years agoDuh, do r11879 correctly (Android doesn't have an auxv entry called
Julian Seward [Tue, 12 Jul 2011 06:29:00 +0000 (06:29 +0000)] 
Duh, do r11879 correctly (Android doesn't have an auxv entry called
AT_FPUCW.)

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

14 years agoAndroid doesn't have an auxv entry called AT_FPUCW.
Julian Seward [Tue, 12 Jul 2011 06:26:04 +0000 (06:26 +0000)] 
Android doesn't have an auxv entry called AT_FPUCW.

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

14 years agoIgnore ELF phdrs that have a p_memsz of zero, as appears to happen
Julian Seward [Tue, 12 Jul 2011 06:24:23 +0000 (06:24 +0000)] 
Ignore ELF phdrs that have a p_memsz of zero, as appears to happen
on Android.  Bug 266035 comment 30.  (John Reiser, jreiser@bitwagon.com)

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

14 years ago/bin/sh lives at /system/bin/sh on Android.
Julian Seward [Tue, 12 Jul 2011 06:19:05 +0000 (06:19 +0000)] 
/bin/sh lives at /system/bin/sh on Android.

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

14 years agoStop gcc on Android giving bogus function-has-no-return-value warnings.
Julian Seward [Tue, 12 Jul 2011 06:13:08 +0000 (06:13 +0000)] 
Stop gcc on Android giving bogus function-has-no-return-value warnings.

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

14 years agoThe pthread.h on Android has no definition for pthread_rwlock_t, which
Julian Seward [Mon, 11 Jul 2011 22:11:58 +0000 (22:11 +0000)] 
The pthread.h on Android has no definition for pthread_rwlock_t, which
makes the associated intercepts in Helgrind and DRD un-compilable.
Add a configure test for it, and use them to guard the aforementioned
intercepts.

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

14 years agoPass platform-variant tags (-DVGPV_blah_blah_blah) to regtest
Julian Seward [Mon, 11 Jul 2011 22:10:14 +0000 (22:10 +0000)] 
Pass platform-variant tags (-DVGPV_blah_blah_blah) to regtest
compiles.  Also, fix some $(NAME) stuff which looks like it should
have been @NAME@ all along.

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

14 years agoAdd a suppression file for Android's libc (bionic).
Julian Seward [Mon, 11 Jul 2011 20:52:10 +0000 (20:52 +0000)] 
Add a suppression file for Android's libc (bionic).

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

14 years agoIntroduce the concept of platform variants. These allow further
Julian Seward [Mon, 11 Jul 2011 20:42:34 +0000 (20:42 +0000)] 
Introduce the concept of platform variants.  These allow further
qualification of the normal (arch, os) pairings used to factorise the
code base via the VGP_ defines.  With this change, a new define
VGPV_<arch>_<os>_<variant> is also passed to each compile.  The
initial motivation is to allow clean factorisation of Android-specific
code, which is a minor variant of arm-linux, without having to
introduce a complete new platform.  In all other cases the supplied
tag is simply "vanilla".

Also add configure.in stuff to recognise Android at configure time.

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

14 years agoHandle sigaction, sigsuspend, sigprocmask on arm-linux; comment-only
Julian Seward [Mon, 11 Jul 2011 18:23:09 +0000 (18:23 +0000)] 
Handle sigaction, sigsuspend, sigprocmask on arm-linux; comment-only
changes for x86-linux and ppc32-linux.  Derived from patch in bug
266035 comment 10 (Jeff Brown, jeffbrown@google.com).

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

14 years agoRemove identical copies of convert_sigset_to_rt, PRE(sys_sigaction)
Julian Seward [Mon, 11 Jul 2011 17:48:24 +0000 (17:48 +0000)] 
Remove identical copies of convert_sigset_to_rt, PRE(sys_sigaction)
and POST(sys_sigaction) in syswrap-x86-linux.c and
syswrap-ppc32-linux.c, and replace them with a single version in
syswrap-linux.c instead.  Derived from patch in bug 266035 comment 10
(Jeff Brown, jeffbrown@google.com).

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

14 years agodrd/tests/matinv: Add missing return statement in an error path.
Bart Van Assche [Mon, 11 Jul 2011 16:25:37 +0000 (16:25 +0000)] 
drd/tests/matinv: Add missing return statement in an error path.

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

14 years agoRemove a commented-out copy of the sys_sigaction wrappers
Julian Seward [Mon, 11 Jul 2011 16:07:01 +0000 (16:07 +0000)] 
Remove a commented-out copy of the sys_sigaction wrappers
that also are duplicated for x86-linux and ppc32-linux.
(No functional change.)

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

14 years agoPort callgrind_control to vgdb
Josef Weidendorfer [Mon, 11 Jul 2011 14:46:44 +0000 (14:46 +0000)] 
Port callgrind_control to vgdb

Same functionality, apart from "-l" to show "long information".
This only printed the current working directory of the callgrind run,
which currently is not available any longer, but not really needed.

The port to vgdb has an important benefit:
callgrind can now be controlled by callgrind_control also when
the client program is blocked/sleeping in a system call. This was
not possible before as a command file was polled only while the
client was running.

Ubuntu by default restricts PTRACE (used by vgdb) to parent processes,
making Ubuntu show similar behavior as before: vgdb is not allowed
to attach by PTRACE when the client is blocked/sleeping, so
callgrind_control works similar to before this change on Ubuntu.

A final patch, which gets rid of command file polling, will be
submitted after Valgrind 3.7, as KCachegrind currently writes
command files directly, and needs to be changed to rely on
callgrind_control instead.

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

14 years agocallgrind: add vgdb commands needed for porting callgrind_control
Josef Weidendorfer [Mon, 11 Jul 2011 14:46:41 +0000 (14:46 +0000)] 
callgrind: add vgdb commands needed for porting callgrind_control

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

14 years agoAdd / fix up test cases for {LD,ST}REX{,B,H,D} on ARM. Works for both
Julian Seward [Mon, 11 Jul 2011 11:46:52 +0000 (11:46 +0000)] 
Add / fix up test cases for {LD,ST}REX{,B,H,D} on ARM.  Works for both
ARM and Thumb encodings.

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

14 years agoValgrind-side changes to fix bug #271776.
Florian Krohm [Mon, 11 Jul 2011 01:51:39 +0000 (01:51 +0000)] 
Valgrind-side changes to fix bug #271776.
Add testcase for s390x's STFLE instruction.
Patch provided by Divya Vyas <divyvyas@linux.vnet.ibm.com>

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

14 years agoAdd regression tests for {ADD,SUB}W reg, reg, #uimm12 (vex r2170)
Julian Seward [Fri, 8 Jul 2011 15:46:33 +0000 (15:46 +0000)] 
Add regression tests for {ADD,SUB}W reg, reg, #uimm12 (vex r2170)

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

14 years agoAllow optional specification of cpu models on the command line
Florian Krohm [Thu, 7 Jul 2011 22:09:41 +0000 (22:09 +0000)] 
Allow optional specification of cpu models on the command line
and test whether the host machine matches one of those. This is
needed  to fix Bug #271776.

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

14 years agoPipe CFLAGS through to the compile run for genoffsets.c, which is a
Julian Seward [Thu, 7 Jul 2011 14:05:39 +0000 (14:05 +0000)] 
Pipe CFLAGS through to the compile run for genoffsets.c, which is a
bit special.  CFLAGS is already piped through to everywhere else.
This is needed for working with semi-broken cross-compile setups that
need CFLAGS set to special values in order to work.

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

14 years agoMove the break out of the braces so that we don't fall through
Tom Hughes [Wed, 6 Jul 2011 14:11:56 +0000 (14:11 +0000)] 
Move the break out of the braces so that we don't fall through
into the next case when no argument was given to the ioctl.

Spotted by IBM's BEAM checker.

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

14 years agoDon't allocate the XArray for the text version of the suppression
Tom Hughes [Wed, 6 Jul 2011 14:08:24 +0000 (14:08 +0000)] 
Don't allocate the XArray for the text version of the suppression
until after we've checked if the tool will allow the error to be
suppressed, or we will leak it if we do the early return.

Spotted by IBM's BEAM checker.

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

14 years agoDisable stabs reading on ppc64-linux; it always segfaults.
Julian Seward [Wed, 6 Jul 2011 07:23:56 +0000 (07:23 +0000)] 
Disable stabs reading on ppc64-linux; it always segfaults.

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

14 years agoEnable testing of fres{.} and frsqrt{.} instructions. Fixes #275308.
Julian Seward [Tue, 5 Jul 2011 10:20:44 +0000 (10:20 +0000)] 
Enable testing of fres{.} and frsqrt{.} instructions.  Fixes #275308.
Based on a patch by Maynard Johnson <maynardj@us.ibm.com>.

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

14 years agoImplement some extra DWARF ops that gcc 4.6.1 seems to use. Fixes #275284.
Tom Hughes [Tue, 5 Jul 2011 09:22:32 +0000 (09:22 +0000)] 
Implement some extra DWARF ops that gcc 4.6.1 seems to use. Fixes #275284.

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

14 years agoMake the wait-for-gdb delay loop somewhat more modern-compiler-proof.
Julian Seward [Tue, 5 Jul 2011 09:13:41 +0000 (09:13 +0000)] 
Make the wait-for-gdb delay loop somewhat more modern-compiler-proof.

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

14 years agoImprove debug printing for ELF program header analysis. No functional
Julian Seward [Tue, 5 Jul 2011 09:13:04 +0000 (09:13 +0000)] 
Improve debug printing for ELF program header analysis.  No functional
change.

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

14 years agoGDB server: fix tests following recent commits.
Julian Seward [Mon, 4 Jul 2011 22:00:41 +0000 (22:00 +0000)] 
GDB server: fix tests following recent commits.
Fixes #276987.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

* make_local_links
  - disable gdb tests if gdb version < 7
  - disable pic tests if gdb version < 7.1
* nlfork_chain test
  - reduce chain from 20 to 15 to avoid ENOMEM
    on small ARM systems
* main_pic.c
  - put break at line 11 rather than main entry, as ARM gdb
     does not properly show main args till it has started executing.
* passsigalrm.c
  - do not setsa.sa_restorer (obsolete on linux, unknown on darwin)
* mcvabits.vgtest
  - make prereq consistent with other tests
* filter_gdb
  - upgraded filter to new linenr in clean_after_fork.c

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

14 years agoUpdate Subversion ignore lists
Bart Van Assche [Sun, 3 Jul 2011 16:43:01 +0000 (16:43 +0000)] 
Update Subversion ignore lists

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

14 years agodrd: Source code cleanup - merge two blocks of tracing code
Bart Van Assche [Sun, 3 Jul 2011 11:43:45 +0000 (11:43 +0000)] 
drd: Source code cleanup - merge two blocks of tracing code

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

14 years agodrd: Source code cleanup - outdent a code block
Bart Van Assche [Sun, 3 Jul 2011 11:42:03 +0000 (11:42 +0000)] 
drd: Source code cleanup - outdent a code block

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

14 years agodrd: Simplify a boolean expression
Bart Van Assche [Sun, 3 Jul 2011 11:41:27 +0000 (11:41 +0000)] 
drd: Simplify a boolean expression

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

14 years agodrd: Source code cleanup - change two variables from int to bool and outdent one...
Bart Van Assche [Sun, 3 Jul 2011 11:40:49 +0000 (11:40 +0000)] 
drd: Source code cleanup - change two variables from int to bool and outdent one code block

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

14 years agodrd: Add an assert statement
Bart Van Assche [Sun, 3 Jul 2011 11:39:30 +0000 (11:39 +0000)] 
drd: Add an assert statement

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

14 years agodrd: remove a duplicate tl_assert() statement.
Bart Van Assche [Sun, 3 Jul 2011 11:24:41 +0000 (11:24 +0000)] 
drd: remove a duplicate tl_assert() statement.

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

14 years agoSynch s390x system call list with linux 2.6.39.2.
Florian Krohm [Tue, 28 Jun 2011 23:37:01 +0000 (23:37 +0000)] 
Synch s390x system call list with linux 2.6.39.2.

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

14 years agovalgrind and tool mon. cmds prefixes changes + doc fixes + new vgdb option
Julian Seward [Tue, 28 Jun 2011 08:20:39 +0000 (08:20 +0000)] 
valgrind and tool mon. cmds prefixes changes + doc fixes + new vgdb option
--cmd-time-out

* changed prefixes of Valgrind core monitor commands from vg. to v.
* removed prefixes of Tool monitor commands
* memcheck leak_check 'leakpossible' arg renamed to 'possibleleak'
* memcheck make_memory 'ifaddressabledefined' arg renamed to
'Definedifaddressable'
    (with uppercase D to avoid confusion with 'defined' arg).
* vgdb options
  - Some doc updates : more logical option order documentation,
       specify 'standalone' for options aimed at standalone usage.
  - added option --cmd-time-out for standalone vgdb
     (comment of Josef Weindendorfer, needed to interface with a callgrind GUI)
* updated tests according to the above.
* updated documentation according to the above.
* some additional minor doc fixes/clarifications

(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 111.

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

14 years agoAnother make dist fix.
Julian Seward [Tue, 28 Jun 2011 07:38:17 +0000 (07:38 +0000)] 
Another make dist fix.

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

14 years agoDelete the AIX5 port. The last release this worked for is 3.4.1,
Julian Seward [Tue, 28 Jun 2011 07:25:29 +0000 (07:25 +0000)] 
Delete the AIX5 port.  The last release this worked for is 3.4.1,
and then only on AIX 5.2 and 5.3.

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

14 years agoFix 'make dist' following recent gdbserver commits.
Julian Seward [Mon, 27 Jun 2011 23:31:07 +0000 (23:31 +0000)] 
Fix 'make dist' following recent gdbserver commits.

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

14 years agoSuppress warning about associativity change for tests
Josef Weidendorfer [Mon, 27 Jun 2011 17:26:19 +0000 (17:26 +0000)] 
Suppress warning about associativity change for tests

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

14 years agoRemove references to Ptrcheck in the documentation, and replace
Julian Seward [Sun, 26 Jun 2011 19:57:26 +0000 (19:57 +0000)] 
Remove references to Ptrcheck in the documentation, and replace
them as relevant with references to SGcheck.

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

14 years agoMemcheck:
Julian Seward [Sun, 26 Jun 2011 12:41:33 +0000 (12:41 +0000)] 
Memcheck:
* add delta leak checking functionality
* some editing of related manual sections
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 105.

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

14 years agoGDB server:
Julian Seward [Sun, 26 Jun 2011 09:36:38 +0000 (09:36 +0000)] 
GDB server:
* Fix bug in logic related to signal-passing
* use SIGSTOP instead of SIGTRAP (avoid race condition)
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 109.

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

14 years agoAdd support for PIC executables (e.g. firefox on Ubuntu 11) by adding
Julian Seward [Sun, 26 Jun 2011 09:26:48 +0000 (09:26 +0000)] 
Add support for PIC executables (e.g. firefox on Ubuntu 11) by adding
the "auxv" protocol packet to gdbsrv.  (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 108.

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

14 years agoGDB server:
Julian Seward [Sun, 26 Jun 2011 09:13:27 +0000 (09:13 +0000)] 
GDB server:
* fix error in usability msg
* make a test more deterministic
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 107.

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

14 years agoMinor documentation fixes for the GDB server. (Philippe Waroquiers,
Julian Seward [Sat, 25 Jun 2011 10:05:28 +0000 (10:05 +0000)] 
Minor documentation fixes for the GDB server.  (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 106.

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

14 years agoAnnounce fix of #275710
Florian Krohm [Sat, 25 Jun 2011 02:28:00 +0000 (02:28 +0000)] 
Announce fix of #275710

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

14 years agoGet rid of some compiler warnings.
Florian Krohm [Sat, 25 Jun 2011 02:06:21 +0000 (02:06 +0000)] 
Get rid of some compiler warnings.
Fixes 275339 (Christian Borntraeger <borntraeger@de.ibm.com>)

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

14 years agoUpdate ignored files for exp-sgcheck.
Florian Krohm [Sat, 25 Jun 2011 01:54:03 +0000 (01:54 +0000)] 
Update ignored files for exp-sgcheck.

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

14 years agoUpdate ignored files for s390x
Florian Krohm [Sat, 25 Jun 2011 01:50:55 +0000 (01:50 +0000)] 
Update ignored files for s390x

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

14 years agoFix #undefs that are inconsistent with those further up the file,
Julian Seward [Fri, 24 Jun 2011 18:26:11 +0000 (18:26 +0000)] 
Fix #undefs that are inconsistent with those further up the file,
as spotted by Michael Meeks.

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

14 years agoDocumentation updates for Helgrind.
Julian Seward [Fri, 24 Jun 2011 18:23:42 +0000 (18:23 +0000)] 
Documentation updates for Helgrind.

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

14 years agoAdd tests for displaying of locks held by threads in races.
Julian Seward [Fri, 24 Jun 2011 16:03:32 +0000 (16:03 +0000)] 
Add tests for displaying of locks held by threads in races.

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

14 years agoFix up the remaining .stderr.exp-s following r11824 (merge of
Julian Seward [Fri, 24 Jun 2011 12:55:25 +0000 (12:55 +0000)] 
Fix up the remaining .stderr.exp-s following r11824 (merge of
branches/HGDEV2), and delete some redundant ones

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

14 years agoFix a bunch of helgrind .stderr.exp-s following r11824 (merge of
Julian Seward [Fri, 24 Jun 2011 10:50:11 +0000 (10:50 +0000)] 
Fix a bunch of helgrind .stderr.exp-s following r11824 (merge of
branches/HGDEV2)

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

14 years agoMerge the contents of the HGDEV2 branch into trunk:
Julian Seward [Fri, 24 Jun 2011 10:09:41 +0000 (10:09 +0000)] 
Merge the contents of the HGDEV2 branch into trunk:
* performance and scalability improvements
* show locks held by both threads in a race
* show all 4 locks involved in a lock order violation
* better delimited error messages

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

14 years agoFix ignores for Darwin.
Robert Walsh [Sun, 19 Jun 2011 03:41:57 +0000 (03:41 +0000)] 
Fix ignores for Darwin.

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

14 years agoMinor GDBserver source tidying. Also a small usability fix: if
Julian Seward [Sat, 18 Jun 2011 08:28:04 +0000 (08:28 +0000)] 
Minor GDBserver source tidying.  Also a small usability fix: if
--vgdb-error=N is specified, print a bit of text telling the user the
magic commands to give GDB in order to attach to the process.

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

14 years agoMove the GDBserver documentation from the "Valgrind core" chapter
Julian Seward [Fri, 17 Jun 2011 08:31:22 +0000 (08:31 +0000)] 
Move the GDBserver documentation from the "Valgrind core" chapter
to the "Valgrind core: advanced topics" chapter.

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

14 years agoEdits for the GDBserver documentation.
Julian Seward [Fri, 17 Jun 2011 08:14:00 +0000 (08:14 +0000)] 
Edits for the GDBserver documentation.

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

14 years agoTrack vex r2163 (en-mass renaming of vector narrowing and widening primops)
Julian Seward [Thu, 16 Jun 2011 11:37:21 +0000 (11:37 +0000)] 
Track vex r2163 (en-mass renaming of vector narrowing and widening primops)

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

14 years agoFix safe_fd exhaustion in fork chain caused by non closing of shared_mem_fd
Julian Seward [Wed, 15 Jun 2011 21:30:55 +0000 (21:30 +0000)] 
Fix safe_fd exhaustion in fork chain caused by non closing of shared_mem_fd

Patch that fixes the problem reported by Christian Borntraeger.
The problem was created by keeping the shared memory mapped file opened
without reason till the process does an exec.
In case of a chain of forked processes (without exec), the range of safe_fd
reserved for Valgrind own usage becomes exhausted.

* coregrind/m_gdbserver/remote-utils.c :
   do not VG_(safe_fd) shared_mem_fd (as it is now closed directly)
   close shared_mem_fd once file is mmap-ed and written.
* gdbserver_tests/nlfork_chain.stderr.exp,nlfork_chain.vgtest,
               fork_chain.c,nlfork_chain.stdout.exp:
     new files
* gdbserver_tests/Makefile.am:
  modified for new nlfork_chain test

(patch from #214909 c 103,
Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoUnbreak Altivec code following vex r2159 (renaming of
Julian Seward [Wed, 15 Jun 2011 19:07:26 +0000 (19:07 +0000)] 
Unbreak Altivec code following vex r2159 (renaming of
vector saturating narrowing primops)

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

14 years agoValgrind-side fixes and tests for PACKUSDW, to track r2160.
Julian Seward [Wed, 15 Jun 2011 16:07:15 +0000 (16:07 +0000)] 
Valgrind-side fixes and tests for PACKUSDW, to track r2160.

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

14 years agoAdd debugging hack, if 0'd, to print a stack trace at each syscall.
Julian Seward [Wed, 15 Jun 2011 15:11:50 +0000 (15:11 +0000)] 
Add debugging hack, if 0'd, to print a stack trace at each syscall.

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

14 years agoTrack renaming of vector saturating narrowing primops in r2159.
Julian Seward [Wed, 15 Jun 2011 15:11:07 +0000 (15:11 +0000)] 
Track renaming of vector saturating narrowing primops in r2159.

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

14 years agoAdd rough list of bugs that have been fixed since 3.6.1 (74, + 3 n-i-bz,
Julian Seward [Mon, 13 Jun 2011 13:36:59 +0000 (13:36 +0000)] 
Add rough list of bugs that have been fixed since 3.6.1 (74, + 3 n-i-bz,
probably some more I missed)

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

14 years agoTry to handle LL caches which are of size 50% above a power of 2 (eg,
Julian Seward [Mon, 13 Jun 2011 13:14:00 +0000 (13:14 +0000)] 
Try to handle LL caches which are of size 50% above a power of 2 (eg,
6MB, 12MB) and have a non-power-of-2 number of sets.

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

14 years agoAdd cpuid cache values from Intel SDM 5/11
Josef Weidendorfer [Fri, 10 Jun 2011 20:29:27 +0000 (20:29 +0000)] 
Add cpuid cache values from Intel SDM 5/11

For a Sandybridge desktop, previously this resulted in
...
--14842-- warning: Unknown Intel cache config value (0x76), ignoring
...
with Cachegrind/Callgrind

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

14 years agoTeach cachegrind/callgrind how to parse the cache description
Tom Hughes [Fri, 10 Jun 2011 15:04:22 +0000 (15:04 +0000)] 
Teach cachegrind/callgrind how to parse the cache description
in the CPUID data on recent Intel processors.

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

14 years agoUse the precomputed sets_min_1 value consistently when masking
Tom Hughes [Thu, 9 Jun 2011 12:26:42 +0000 (12:26 +0000)] 
Use the precomputed sets_min_1 value consistently when masking
off bits from an address to find which cache set it is in.

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

14 years agoFix perf_event open on s390.
Tom Hughes [Wed, 8 Jun 2011 20:55:29 +0000 (20:55 +0000)] 
Fix perf_event open on s390.

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

14 years agoFix some warnings I introduced in r11804.
Tom Hughes [Wed, 8 Jun 2011 09:57:54 +0000 (09:57 +0000)] 
Fix some warnings I introduced in r11804.

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

14 years agoAdd support for prlimit64 on x86 and amd64.
Tom Hughes [Wed, 8 Jun 2011 09:55:54 +0000 (09:55 +0000)] 
Add support for prlimit64 on x86 and amd64.

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

14 years agoUpdate system call lists to match current kernel source.
Tom Hughes [Wed, 8 Jun 2011 09:12:07 +0000 (09:12 +0000)] 
Update system call lists to match current kernel source.

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

14 years agoIt seems that the perf_counter_open system call was renamed to
Tom Hughes [Wed, 8 Jun 2011 09:10:40 +0000 (09:10 +0000)] 
It seems that the perf_counter_open system call was renamed to
perf_event_open some time after we added it, so correct the name
wherever it appears to match the current kernel source.

Also fixup the PRE handler to do the check correctly, using the
size field of the structure to work out how much data there is.

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

14 years agoAdd a simple but (to me, at least) useful thing, if (0)'d by default,
Julian Seward [Tue, 7 Jun 2011 22:54:32 +0000 (22:54 +0000)] 
Add a simple but (to me, at least) useful thing, if (0)'d by default,
to print a line of text approximately every 20 million SBs.  This is
useful for monitoring the progress of long running programs.

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

14 years agoDefine _GNU_SOURCE for access to CLONE_XXX flags with gibc 2.14 headers.
Tom Hughes [Tue, 7 Jun 2011 22:53:21 +0000 (22:53 +0000)] 
Define _GNU_SOURCE for access to CLONE_XXX flags with gibc 2.14 headers.

Based on patch from Dmitry Djachenko <dimhen@gmail.com>.

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

14 years agoFix the computation of debuginfo bias values, in the case where the
Julian Seward [Tue, 7 Jun 2011 22:44:09 +0000 (22:44 +0000)] 
Fix the computation of debuginfo bias values, in the case where the
debuginfo object has been not been prelinked but the main object has.
Fixes a segfault observed running any C++ application (eg,
drd/tests/annotate_smart_pointer) on Fedora 14 (32-bit), when the
debuginfo RPM for libstdc++ is installed.

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