]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agodrd/tests/pth_detached.c: eliminated thread_arg[] array and introduced PTHREAD_STACK_MIN.
Bart Van Assche [Tue, 17 May 2011 16:45:08 +0000 (16:45 +0000)] 
drd/tests/pth_detached.c: eliminated thread_arg[] array and introduced PTHREAD_STACK_MIN.

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

14 years agogdbserver: Fixes for ARM-Thumb (#214909 c 76)
Julian Seward [Tue, 17 May 2011 16:35:11 +0000 (16:35 +0000)] 
gdbserver: Fixes for ARM-Thumb (#214909 c 76)
fix arm thumb by transforming an address to its thumb form when needed

* added a function thumb_pc transforming a pc to its thumb form if needed
  (using an heuristic to guess if this is a thumb address)
* when program counter is modified by gdb, use thumb_pc
* use thumb_pc in monitor command vg.translate

(I was able to check that this improves inferior call on a small
thumb compiled executable + mcinfcallRU test) but I could not compile
all tests with thumb).

(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoBetter checking for command line options that should be either 'yes'
Julian Seward [Tue, 17 May 2011 16:29:29 +0000 (16:29 +0000)] 
Better checking for command line options that should be either 'yes'
or 'no'.  Fixes #269144.  (a125246@prtnx.com, Florian Krohm
<britzel@acm.org>)

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

14 years agos390x: add test cases for STCK{,E,F} instructions. See #271779.
Julian Seward [Tue, 17 May 2011 16:19:53 +0000 (16:19 +0000)] 
s390x: add test cases for STCK{,E,F} instructions.  See #271779.
(Christian Borntraeger <borntraeger@de.ibm.com> and Divya Vyas)

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

14 years agoEnable sys_pwrite64 on ppc64-linux. Fixes #272955.
Julian Seward [Tue, 17 May 2011 16:07:33 +0000 (16:07 +0000)] 
Enable sys_pwrite64 on ppc64-linux.  Fixes #272955.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoAdd entry w.r.t. the s390x port. (Florian Krohm <britzel@acm.org> and
Julian Seward [Tue, 17 May 2011 15:54:31 +0000 (15:54 +0000)] 
Add entry w.r.t. the s390x port.  (Florian Krohm <britzel@acm.org> and
Christian Borntraeger <borntraeger@de.ibm.com>)

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

14 years agoUpdate expected outputs.
Julian Seward [Tue, 17 May 2011 15:52:28 +0000 (15:52 +0000)] 
Update expected outputs.

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

14 years agoMake this test much more independent of glibc, and update outputs
Julian Seward [Tue, 17 May 2011 15:36:01 +0000 (15:36 +0000)] 
Make this test much more independent of glibc, and update outputs
accordingly.

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

14 years agoReorder tests poking around in the x86 instruction stream (sigh)
Julian Seward [Mon, 16 May 2011 11:49:40 +0000 (11:49 +0000)] 
Reorder tests poking around in the x86 instruction stream (sigh)
in order to try and avoid segfaults when we back up over a page
boundary.

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

14 years agoSuppressed compiler warnings triggered by none/tests/amd64/fxtract.c too.
Bart Van Assche [Sun, 15 May 2011 17:53:26 +0000 (17:53 +0000)] 
Suppressed compiler warnings triggered by none/tests/amd64/fxtract.c too.

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

14 years agogdbserver_tests/make_local_links: made invocation of "head" POSIX-compliant since...
Bart Van Assche [Sun, 15 May 2011 17:07:47 +0000 (17:07 +0000)] 
gdbserver_tests/make_local_links: made invocation of "head" POSIX-compliant since on some distros only the POSIX-compliant invocation is accepted.

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

14 years agoSilence compiler warnings triggered by certain regression tests programs and that...
Bart Van Assche [Sun, 15 May 2011 17:06:33 +0000 (17:06 +0000)] 
Silence compiler warnings triggered by certain regression tests programs and that we are not interested in.

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

14 years agoAdded configure tests for the compiler flags -Wno-nonnull and -Wno-overflow.
Bart Van Assche [Sun, 15 May 2011 17:05:36 +0000 (17:05 +0000)] 
Added configure tests for the compiler flags -Wno-nonnull and -Wno-overflow.

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

14 years agoRemoved "prereq: test -e gdb" again from those tests that do not invoke the script...
Bart Van Assche [Sun, 15 May 2011 16:45:42 +0000 (16:45 +0000)] 
Removed "prereq: test -e gdb" again from those tests that do not invoke the script gdbserver_tests/gdb.

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

14 years agoGet rid of the remaining "set but not used" warnings reported by gcc 4.6 by
Bart Van Assche [Sun, 15 May 2011 07:04:03 +0000 (07:04 +0000)] 
Get rid of the remaining "set but not used" warnings reported by gcc 4.6 by
swapping the roles of the VALGRIND_DO_CLIENT_REQUEST() and
VALGRIND_DO_CLIENT_REQUEST_EXPR() macros. Also, many __attribute__((unused))
declarations on variables have been eliminated. Closes #269778.

Note: so far this patch has been tested on x86/Linux, amd64/Linux and
ppc64/Linux but not yet on any other supported CPU/OS combination.

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 15 May 2011 06:41:37 +0000 (06:41 +0000)] 
Updated Subversion ignore list.

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

14 years agogdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found...
Bart Van Assche [Sun, 15 May 2011 06:18:24 +0000 (06:18 +0000)] 
gdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found gdb.

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

14 years agoSkip gdbserver tests if ./configure did not find gdb.
Bart Van Assche [Sun, 15 May 2011 06:07:57 +0000 (06:07 +0000)] 
Skip gdbserver tests if ./configure did not find gdb.

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

14 years agogdbserver_tests/t.c: Fixed two occurrences of the same typo.
Bart Van Assche [Sun, 15 May 2011 05:44:59 +0000 (05:44 +0000)] 
gdbserver_tests/t.c: Fixed two occurrences of the same typo.

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

14 years agoRemove old exp-ptrcheck tests which were never used.
Julian Seward [Thu, 12 May 2011 19:15:06 +0000 (19:15 +0000)] 
Remove old exp-ptrcheck tests which were never used.

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

14 years agoDelete exp-sgcheck tests that are redundant following the removal of the
Julian Seward [Thu, 12 May 2011 16:38:56 +0000 (16:38 +0000)] 
Delete exp-sgcheck tests that are redundant following the removal of the
heap checking facilities.

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

14 years ago* fixed two bugs reported by the IBM BEAM checker:
Julian Seward [Wed, 11 May 2011 22:54:57 +0000 (22:54 +0000)] 
* fixed two bugs reported by the IBM BEAM checker:
     fd leak in vgdb.c
     break missing in valgrind-low-s390x.c

* use option --vgdb=full for the tests mcsigpass.vgtest and mcsignopass.vgtest
  This might improve these tests on ppc32/debian 6.0

* added a paragraph in gdbserver_tests/README_DEVELOPPERS to indicate
  how to report problems about failing gdbserver tests.

(bug 214909 comment 71, Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoFixed bug 272661
Josef Weidendorfer [Wed, 11 May 2011 16:45:52 +0000 (16:45 +0000)] 
Fixed bug 272661

Paths should be quoted in regexps (in callgrind_annotate).

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

14 years agoFix bug 267383
Josef Weidendorfer [Wed, 11 May 2011 16:32:18 +0000 (16:32 +0000)] 
Fix bug 267383

As suggested by Florian. Cachegrind already does the same.

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

14 years agoRename 'exp-ptrcheck' to 'exp-sgcheck' and hope this does not cause
Julian Seward [Wed, 11 May 2011 16:04:28 +0000 (16:04 +0000)] 
Rename 'exp-ptrcheck' to 'exp-sgcheck' and hope this does not cause
too much build carnage.

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

14 years agoWhen reading Dwarf3 variable type and location information, print a
Julian Seward [Wed, 11 May 2011 15:31:24 +0000 (15:31 +0000)] 
When reading Dwarf3 variable type and location information, print a
line showing the number of variables read for each object.  Currently
disabled -- is a sanity-check mechanism for exp-sgcheck.

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

14 years agoUpdate the manual following removal of heap-check functionality.
Julian Seward [Wed, 11 May 2011 15:26:06 +0000 (15:26 +0000)] 
Update the manual following removal of heap-check functionality.

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

14 years agoFix bugs catched by BEAM
Josef Weidendorfer [Wed, 11 May 2011 12:28:01 +0000 (12:28 +0000)] 
Fix bugs catched by BEAM

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

14 years agoRemove heap checking from exp-ptrcheck, leaving only the ability to
Julian Seward [Wed, 11 May 2011 12:01:37 +0000 (12:01 +0000)] 
Remove heap checking from exp-ptrcheck, leaving only the ability to
check for overruns of stack and global arrays.

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

14 years agoImprovements for testing and compilation breakage for the GDB server
Julian Seward [Tue, 10 May 2011 11:01:07 +0000 (11:01 +0000)] 
Improvements for testing and compilation breakage for the GDB server
on various platforms:

* In all gdbserver_tests using gdb:
  Made a more general way to remove the initial start message.

* tests using threads burning cpu modified to have only 1 thread.
  This makes them independent of the scheduler fairness.

* filter_gdb and filter_vgdb enhanced to anonymise
    some debian 6.0/ppc specific things
    some s390x/gdb 7.0, gdb 7.1  specific things

* vgdb.c: added an #include <linux/ptrace.h> to fix compilation
  on s390x fedora and suse. (Christian Boerntrager)

* fixed a bug in valgrind-low.c debug log :
  when a register size is 0, its image cannot be output (and register
  should not be transferred).

* added a parameter --keep-unfiltered to vg_regtest.in
  This will make it easier to update filter_gdb:
  in case gdbserver_tests are failing due to "artificial"
  differences to be filtered, re-run the tests using:
     perl tests/vg_regtest --keep-unfiltered gdbserver_tests
  Then a tar file with all the *.out in gdbserver_tests
  will allow me to better/faster update the filter_gdb.

* made a better detection of a working PTRACE_GETREGS at compile time
  and/or at run-time.

This is the patch on bug 214909 comment 69.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agoHandle executables created by the Xcode 3.2.x linker. These contain
Julian Seward [Tue, 10 May 2011 08:42:14 +0000 (08:42 +0000)] 
Handle executables created by the Xcode 3.2.x linker.  These contain
LC_DYSYMTAB sections that apparently the 4.0.x created ones don't.

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

14 years agoBack out r11705, which was an attempt to make reading of line number
Julian Seward [Mon, 9 May 2011 22:51:14 +0000 (22:51 +0000)] 
Back out r11705, which was an attempt to make reading of line number
info created by LLVM 2.9 work properly.  As per long discussion in
#272189, this isn't actually possible -- LLVM 2.9 creates bogus line
number info, and the bogusness can't be worked around at the Valgrind
end.

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

14 years agoVG_(mkstemp): fix infinite loop in the case where /tmp isn't
Julian Seward [Mon, 9 May 2011 22:42:06 +0000 (22:42 +0000)] 
VG_(mkstemp): fix infinite loop in the case where /tmp isn't
writable.  Fixes #223249.  (Florian Krohm, britzel@acm.org)

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

14 years agoTidying up of branch-predict hint macros LIKELY/UNLIKELY. Fixes
Julian Seward [Mon, 9 May 2011 21:54:44 +0000 (21:54 +0000)] 
Tidying up of branch-predict hint macros LIKELY/UNLIKELY.  Fixes
#271504.  (Florian Krohm, britzel@acm.org)

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

14 years agoFix link flags so that 'vgdb' can be built on x86-darwin.
Julian Seward [Mon, 9 May 2011 21:33:32 +0000 (21:33 +0000)] 
Fix link flags so that 'vgdb' can be built on x86-darwin.

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

14 years agomemcheck: Fixed a bug in the address ranges reported in an error message. Closes...
Bart Van Assche [Mon, 9 May 2011 10:46:55 +0000 (10:46 +0000)] 
memcheck: Fixed a bug in the address ranges reported in an error message. Closes #272615.

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

14 years agoread_dwarf2_lineblock: debug printing fix (no functional change)
Julian Seward [Mon, 9 May 2011 09:19:32 +0000 (09:19 +0000)] 
read_dwarf2_lineblock: debug printing fix (no functional change)

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

14 years agoppc{32,64}-linux: mark VG_MINIMAL_LONGJMP as noreturn, since it is,
Julian Seward [Mon, 9 May 2011 09:15:28 +0000 (09:15 +0000)] 
ppc{32,64}-linux: mark VG_MINIMAL_LONGJMP as noreturn, since it is,
and not doing so leads to compiler warnings for functions that tail
call this one, which themselves are marked "attribute noreturn".

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 8 May 2011 10:10:46 +0000 (10:10 +0000)] 
Updated Subversion ignore list.

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

14 years agoFollow-up for r11729: make the gdbserver regression tests pass again.
Bart Van Assche [Sun, 8 May 2011 10:10:04 +0000 (10:10 +0000)] 
Follow-up for r11729: make the gdbserver regression tests pass again.

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

14 years agoFixed one bug in gdbserver_tests/t.c and several compiler warnings triggered by the...
Bart Van Assche [Sun, 8 May 2011 09:29:06 +0000 (09:29 +0000)] 
Fixed one bug in gdbserver_tests/t.c and several compiler warnings triggered by the gdbserver test programs.

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

14 years agoAdded Subversion ignore list for directory gdbserver_tests.
Bart Van Assche [Sun, 8 May 2011 09:10:33 +0000 (09:10 +0000)] 
Added Subversion ignore list for directory gdbserver_tests.

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

14 years agoImplement a GDB server in Valgrind. See #214909.
Julian Seward [Fri, 6 May 2011 21:02:55 +0000 (21:02 +0000)] 
Implement a GDB server in Valgrind.  See #214909.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

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

14 years agomkLazyN: fix incorrect type decl for 'mergeTy64', as spotted by IBM's
Julian Seward [Wed, 4 May 2011 09:09:31 +0000 (09:09 +0000)] 
mkLazyN: fix incorrect type decl for 'mergeTy64', as spotted by IBM's
BEAM checker.

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

14 years agoscalarts_limitations_fail_NORETURN: fix a format string error
Julian Seward [Wed, 4 May 2011 09:08:34 +0000 (09:08 +0000)] 
scalarts_limitations_fail_NORETURN: fix a format string error
spotted by IBM's BEAM checker.  (Why didn't gcc or clang see this?)

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

14 years agosetup_client_stack: use have_exename to consistently guard uses
Julian Seward [Wed, 4 May 2011 09:07:38 +0000 (09:07 +0000)] 
setup_client_stack: use have_exename to consistently guard uses
of VG_(args_the_exename), thereby avoiding a potential segfault.
Spotted by IBM's BEAM checker.

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

14 years agocalling format_message: when passing frameNo == -1, also pass
Julian Seward [Wed, 4 May 2011 09:06:17 +0000 (09:06 +0000)] 
calling format_message: when passing frameNo == -1, also pass
tid == VG_INVALID_THREADID rather than an uninitialised ThreadId.
Also in format_message, improve precondition assertions for
frameNo and tid.

There's no error in the current code since if frameNo == -1 then
tid is unused, but it caused IBM's BEAM checker to complain.

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

14 years agohandle_maybe_load_notifier: assert when symbol == NULL rather than
Julian Seward [Wed, 4 May 2011 09:03:41 +0000 (09:03 +0000)] 
handle_maybe_load_notifier: assert when symbol == NULL rather than
segfaulting.  Potential segfault was found by IBM's BEAM checker.

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

14 years agoVG_(env_unsetenv), VG_(env_clone): add assertions so as to cause
Julian Seward [Wed, 4 May 2011 09:01:58 +0000 (09:01 +0000)] 
VG_(env_unsetenv), VG_(env_clone): add assertions so as to cause
assertions instead of segfaults.  Potential segfaults were detected by
IBM's BEAM checker.

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

14 years agoarm-linux: Set _start symbol alignment and type. Bug 266035 comment 1.
Julian Seward [Tue, 3 May 2011 14:24:11 +0000 (14:24 +0000)] 
arm-linux: Set _start symbol alignment and type.  Bug 266035 comment 1.
(Jeff Brown, jeffbrown@google.com)

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

14 years agoDRD: fix issues reported by the IBM static analysis tool.
Bart Van Assche [Sat, 30 Apr 2011 07:27:41 +0000 (07:27 +0000)] 
DRD: fix issues reported by the IBM static analysis tool.

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

14 years agos390x : misc cleanups
Julian Seward [Thu, 28 Apr 2011 20:14:48 +0000 (20:14 +0000)] 
s390x : misc cleanups

- Forgotten cleanups in none/tests/s390x/Makefile.am

Partial fix for #271501.  (Florian Krohm, britzel@acm.org)

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

14 years agosyswrap/Linux: trace ioctl() calls only once / do not report two-argument
Bart Van Assche [Thu, 28 Apr 2011 18:36:49 +0000 (18:36 +0000)] 
syswrap/Linux: trace ioctl() calls only once / do not report two-argument
ioctl() calls as an error. Patch provided by Mark Hills. Closes #272730.

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

14 years agoChange the TT_FAST hash function for from "insn_address >> 2" to
Julian Seward [Thu, 28 Apr 2011 14:58:15 +0000 (14:58 +0000)] 
Change the TT_FAST hash function for from "insn_address >> 2" to
"insn_address >> 1".  The former is appropriate for ARM code, where
all insns are 4-sized and 4-aligned, but not for Thumb code, where the
minimum size and alignment is 2.  The old scheme happened to work for
Thumb (indeed, any hash function would), but caused huge amounts of
conflict misses in the fast cache for some programs.

The change has been observed to reduce conflict misses by up to 100
times, and in some cases, improves performance significantly for Thumb
code.  Performance of ARM code is unchanged or possibly a bit worse.

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

14 years agoChange the default (minimum) client malloc alignment from 8 to 16
Julian Seward [Wed, 27 Apr 2011 23:25:15 +0000 (23:25 +0000)] 
Change the default (minimum) client malloc alignment from 8 to 16
on ppc32-linux.  This is needed to make Altivec-using code work
correctly.  Noticed when running ./auxprogs/gsl16test with gcc-4.6
with args -mcpu=970 -g -O3 -ftree-vectorize on Memcheck, in
which case a few of the tests failed because malloc() returns
8 byte aligned memory when it should return 16-aligned memory.

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

14 years agoFix no-arg ioctls on Darwin.
Robert Walsh [Wed, 27 Apr 2011 19:04:31 +0000 (19:04 +0000)] 
Fix no-arg ioctls on Darwin.

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

14 years agos390x: fpr - gpr transfer facility -- valgrind side fixes,
Julian Seward [Wed, 27 Apr 2011 12:00:51 +0000 (12:00 +0000)] 
s390x: fpr - gpr transfer facility -- valgrind side fixes,
and test cases.  Fixes #268619.
(Florian Krohm, britzel@acm.org)

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

14 years agoFix bogus asm constraints in jm-insns.c. Fixes #263919.
Julian Seward [Wed, 27 Apr 2011 11:33:44 +0000 (11:33 +0000)] 
Fix bogus asm constraints in jm-insns.c.  Fixes #263919.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoAdd alternative expected output cases for more recent glibcs (eg,
Julian Seward [Wed, 27 Apr 2011 11:11:22 +0000 (11:11 +0000)] 
Add alternative expected output cases for more recent glibcs (eg,
2.12), which print a minus sign for NaNs.  Fixes #262989.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoFix a bunch of printf format-string warnings when compiling this "-m64".
Julian Seward [Wed, 27 Apr 2011 08:09:37 +0000 (08:09 +0000)] 
Fix a bunch of printf format-string warnings when compiling this "-m64".

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

14 years agoFix a type mismatch that gcc-4.6 warns about.
Julian Seward [Tue, 26 Apr 2011 10:23:54 +0000 (10:23 +0000)] 
Fix a type mismatch that gcc-4.6 warns about.

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

14 years agoRemove some unused code that gcc-4.6 warns about.
Julian Seward [Tue, 26 Apr 2011 10:23:33 +0000 (10:23 +0000)] 
Remove some unused code that gcc-4.6 warns about.

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

14 years agoFix a couple of bogus asm constraints observed when trying to build
Julian Seward [Tue, 26 Apr 2011 07:52:44 +0000 (07:52 +0000)] 
Fix a couple of bogus asm constraints observed when trying to build
V with clang-2.9.

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

14 years agoFix a couple of warnings when building the regtests.
Julian Seward [Thu, 21 Apr 2011 23:05:49 +0000 (23:05 +0000)] 
Fix a couple of warnings when building the regtests.

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

14 years agoMake reading of line number info from LLVM-2.9-generated Dwarf3 work.
Julian Seward [Thu, 21 Apr 2011 08:55:51 +0000 (08:55 +0000)] 
Make reading of line number info from LLVM-2.9-generated Dwarf3 work.

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

14 years agoChange a bunch of < > style includes to " " style.
Julian Seward [Wed, 20 Apr 2011 11:54:32 +0000 (11:54 +0000)] 
Change a bunch of < > style includes to " " style.

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

14 years agoLinux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards <bradh...
Bart Van Assche [Mon, 18 Apr 2011 10:37:56 +0000 (10:37 +0000)] 
Linux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards <bradh@frogmouth.net>).

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

14 years agoFix bogus .size directives which are now rejected by binutils 2.21.
Julian Seward [Fri, 15 Apr 2011 21:21:27 +0000 (21:21 +0000)] 
Fix bogus .size directives which are now rejected by binutils 2.21.
Fixes #271043.  (Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoUn-break configure check for VSX (a POWER7 extension). Fixes #271042.
Julian Seward [Fri, 15 Apr 2011 21:16:00 +0000 (21:16 +0000)] 
Un-break configure check for VSX (a POWER7 extension).  Fixes #271042.

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

14 years agoMark this as executable. Followup for #267630.
Julian Seward [Fri, 15 Apr 2011 12:33:14 +0000 (12:33 +0000)] 
Mark this as executable.  Followup for #267630.

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

14 years agoAdd support for IBM Power ISA 2.06 -- stage 1. Valgrind-side changes
Julian Seward [Fri, 15 Apr 2011 11:57:05 +0000 (11:57 +0000)] 
Add support for IBM Power ISA 2.06 -- stage 1.  Valgrind-side changes
and test cases. Bug #267630 and followup fix #270794.
(Maynard Johnson, maynardj@us.ibm.com)

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

14 years agoFollowup fix for r11693: add a file that was missed.
Julian Seward [Wed, 13 Apr 2011 16:05:35 +0000 (16:05 +0000)] 
Followup fix for r11693: add a file that was missed.
Related to #270115.    (Florian Krohm, britzel@acm.org)

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

14 years agos390x: reconsider "long displacement" requirement -- hwcaps detection
Julian Seward [Wed, 13 Apr 2011 15:40:10 +0000 (15:40 +0000)] 
s390x: reconsider "long displacement" requirement -- hwcaps detection
changes.  See #268620.  (Florian Krohm, britzel@acm.org)

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

14 years agoTest cases for #270082 (s390x: Make sure to point the PSW address to
Julian Seward [Wed, 13 Apr 2011 15:15:52 +0000 (15:15 +0000)] 
Test cases for #270082 (s390x: Make sure to point the PSW address to
the next address on SIGILL)
(Christian Borntraeger <borntraeger@de.ibm.com>)

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

14 years agos390x: rewrite some testcases. To make my testing and debugging life
Julian Seward [Wed, 13 Apr 2011 14:57:44 +0000 (14:57 +0000)] 
s390x: rewrite some testcases.  To make my testing and debugging life
simpler, I've rewritten those testcases from none/tests/s390x that
require binutils to recognize opcodes defined in the
extended-immediate and general-instruction-extension facilities. As a
side effect this change removes the special casing in
none/tests/s390x/Makefile.am and the configury bits to support it.
Fixes #270115.  (Florian Krohm, britzel@acm.org)

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

14 years agotimerfd-syscall regression test: Allow even more scheduler variation.
Bart Van Assche [Tue, 12 Apr 2011 10:28:31 +0000 (10:28 +0000)] 
timerfd-syscall regression test: Allow even more scheduler variation.

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

14 years agoGet rid of shadowing causing a perl warning. Minor fallout from
Julian Seward [Mon, 11 Apr 2011 22:14:03 +0000 (22:14 +0000)] 
Get rid of shadowing causing a perl warning.  Minor fallout from
r11686.

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

14 years agoMake MacOS builds work again following fixes for #259977
Julian Seward [Mon, 11 Apr 2011 22:08:06 +0000 (22:08 +0000)] 
Make MacOS builds work again following fixes for #259977
(revs 11687,8,9)

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

14 years agoAdd an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
Julian Seward [Mon, 11 Apr 2011 21:26:27 +0000 (21:26 +0000)] 
Add an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
for ppc32-linux, that works for gcc >= 4.4.  Related to #259977.
(modified version of patch from Maynard Johnson <maynardj@us.ibm.com>)

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

14 years agoAdd an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
Julian Seward [Mon, 11 Apr 2011 18:36:34 +0000 (18:36 +0000)] 
Add an alternative implementation of VG_MINIMAL_{SET,LONG}JMP
for ppc32-linux, that works for gcc >= 4.4.  Related to #259977.

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

14 years agoCreate new module m_libcsetjmp, which wraps up uses of
Julian Seward [Mon, 11 Apr 2011 16:17:51 +0000 (16:17 +0000)] 
Create new module m_libcsetjmp, which wraps up uses of
__builtin_setjmp and __builtin_longjmp so that they can be selectively
replaced, on a platform by platform basis.  Does not change any
functionality.  Related to #259977.

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

14 years agoOn OSX, post-process the tool executables to adjust the Mach-O headers
Julian Seward [Wed, 6 Apr 2011 11:17:16 +0000 (11:17 +0000)] 
On OSX, post-process the tool executables to adjust the Mach-O headers
in certain circumstances.  This works around a bug in the linker that
ships in Xcode 4.0.0 and 4.0.1 causing the 64-bit tool executables to
segfault at startup.  Fixes #267997.

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

14 years agoTestcases for s390x conditional load and store. See #269209.
Julian Seward [Tue, 5 Apr 2011 13:20:53 +0000 (13:20 +0000)] 
Testcases for s390x conditional load and store.  See #269209.
(Christian Borntraeger, borntraeger@de.ibm.com)

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

14 years agoAdd s390x-esque test for folding Iop_And16. From #268513 comment 3.
Julian Seward [Tue, 5 Apr 2011 11:15:28 +0000 (11:15 +0000)] 
Add s390x-esque test for folding Iop_And16.  From #268513 comment 3.
(Florian Krohm, britzel@acm.org)

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

14 years agoMade the line numbers in exp-ptrcheck/tests/partial.c and the regression test output...
Bart Van Assche [Mon, 4 Apr 2011 10:15:33 +0000 (10:15 +0000)] 
Made the line numbers in exp-ptrcheck/tests/partial.c and the regression test output match again.

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

14 years agogit-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682
Bart Van Assche [Sun, 3 Apr 2011 17:42:19 +0000 (17:42 +0000)] 
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682

14 years agoAlso consider libpthread when testing for functions. Removed test for floor().
Bart Van Assche [Sun, 3 Apr 2011 16:46:01 +0000 (16:46 +0000)] 
Also consider libpthread when testing for functions. Removed test for floor().

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

14 years agoUpdated Subversion ignore list.
Bart Van Assche [Wed, 30 Mar 2011 18:59:56 +0000 (18:59 +0000)] 
Updated Subversion ignore list.

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

14 years agoGeneralized Subversion ignore lists.
Bart Van Assche [Wed, 30 Mar 2011 18:58:40 +0000 (18:58 +0000)] 
Generalized Subversion ignore lists.

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

14 years agoFix yet another gcc-4.6 assigned-to-but-not-used warning.
Julian Seward [Tue, 29 Mar 2011 17:05:09 +0000 (17:05 +0000)] 
Fix yet another gcc-4.6 assigned-to-but-not-used warning.

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

14 years agotimerfd-syscall regression test: Allow even more scheduler variation.
Bart Van Assche [Tue, 29 Mar 2011 10:56:32 +0000 (10:56 +0000)] 
timerfd-syscall regression test: Allow even more scheduler variation.

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

14 years agoRemove a bunch more warnings generated by gcc-4.6 about dead
Julian Seward [Mon, 28 Mar 2011 21:19:00 +0000 (21:19 +0000)] 
Remove a bunch more warnings generated by gcc-4.6 about dead
assignments ("[-Wunused-but-set-variable]"), in the test suite.

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

14 years agoRemove a bunch more warnings generated by gcc-4.6 about dead
Julian Seward [Mon, 28 Mar 2011 20:33:52 +0000 (20:33 +0000)] 
Remove a bunch more warnings generated by gcc-4.6 about dead
assignments ("[-Wunused-but-set-variable]"), on ppc32-linux and
ppc64-linux.

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

14 years agoFix up most but not all warnings generated by gcc-4.6 about
Julian Seward [Mon, 28 Mar 2011 16:26:42 +0000 (16:26 +0000)] 
Fix up most but not all warnings generated by gcc-4.6 about
dead assignments ("[-Wunused-but-set-variable]").

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

14 years agoUse two separate assembler argument bindings for loading or storing
Tom Hughes [Mon, 28 Mar 2011 13:51:41 +0000 (13:51 +0000)] 
Use two separate assembler argument bindings for loading or storing
a value in an xmm register as trying to do it with offsets from a
single argument apparently causes problems in newer gcc versions.

Fix to bug #266931.

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

14 years agoFix generated assembler which writes the result to memory to correctly
Tom Hughes [Mon, 28 Mar 2011 13:08:52 +0000 (13:08 +0000)] 
Fix generated assembler which writes the result to memory to correctly
use an =m constraint to indicate that the address will be written to.

Partial fix to bug #266931.

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

14 years agoFix broken inline assembly preventing compilation on RHEL6.
Julian Seward [Mon, 28 Mar 2011 09:12:55 +0000 (09:12 +0000)] 
Fix broken inline assembly preventing compilation on RHEL6.
Fixes #256703.  (Jakub Jelinek, jakub@redhat.com)

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

14 years agoFix broken inline asm in these tests. Fixes #256726.
Julian Seward [Mon, 28 Mar 2011 08:37:19 +0000 (08:37 +0000)] 
Fix broken inline asm in these tests.  Fixes #256726.
(Jakub Jelinek, jakub@redhat.com)

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

14 years agoIntercept strlen in ld.so on x86. Fixes #266961.
Julian Seward [Mon, 28 Mar 2011 08:22:55 +0000 (08:22 +0000)] 
Intercept strlen in ld.so on x86.  Fixes #266961.
(Jakub Jelinek, jakub@redhat.com)

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

14 years agoAdd a test case for non-overwriting of CC_NDEP in shifts by zero.
Julian Seward [Sat, 26 Mar 2011 07:30:39 +0000 (07:30 +0000)] 
Add a test case for non-overwriting of CC_NDEP in shifts by zero.
See #269354.  (Stephen McCamant, smcc@CS.Berkeley.EDU)

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