]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
19 years agoRestore RIP on return from a signal handler on amd64 - mirrors the
Tom Hughes [Wed, 15 Feb 2006 10:44:02 +0000 (10:44 +0000)] 
Restore RIP on return from a signal handler on amd64 - mirrors the
change in revision 5641 to restore EIP on x86.

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

19 years agoFix the tkill system call wrapper and enable it on x86 and amd64.
Tom Hughes [Wed, 15 Feb 2006 10:34:50 +0000 (10:34 +0000)] 
Fix the tkill system call wrapper and enable it on x86 and amd64.
Fixes bug #121901.

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

19 years agoApparently on SLES9 the dynamic linker is called (soname'd) ld64.so.1.
Julian Seward [Tue, 14 Feb 2006 21:55:11 +0000 (21:55 +0000)] 
Apparently on SLES9 the dynamic linker is called (soname'd) ld64.so.1.
Add a corresponding strcmp redirect.

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

19 years agoA few more syscalls.
Julian Seward [Tue, 14 Feb 2006 21:48:42 +0000 (21:48 +0000)] 
A few more syscalls.

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

19 years agoTrawled v-users/bugzilla-mail and added entries.
Julian Seward [Tue, 14 Feb 2006 16:15:57 +0000 (16:15 +0000)] 
Trawled v-users/bugzilla-mail and added entries.

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

19 years agoEnsure memory acquired from sys_brk() really is zeroed. Fixes #121893.
Julian Seward [Tue, 14 Feb 2006 11:37:41 +0000 (11:37 +0000)] 
Ensure memory acquired from sys_brk() really is zeroed.  Fixes #121893.

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

19 years agoFix boundary conditions relating to stack permissions (see r5645).
Julian Seward [Mon, 13 Feb 2006 18:16:41 +0000 (18:16 +0000)] 
Fix boundary conditions relating to stack permissions (see r5645).

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

19 years agoWhen setting the initial permissions of the area below the initial
Julian Seward [Mon, 13 Feb 2006 17:54:31 +0000 (17:54 +0000)] 
When setting the initial permissions of the area below the initial
stack pointer, take into account any ABI-mandated red zone
(VG_STACK_REDZONE_SZB).  This also requires ensuring that at least
that much extra space is available when laying out the stack, in
setup_client_stack().

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

19 years ago'make dist' fix
Julian Seward [Mon, 13 Feb 2006 14:23:05 +0000 (14:23 +0000)] 
'make dist' fix

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

19 years agoUpdate Limitations section following recent ppc hackery.
Julian Seward [Mon, 13 Feb 2006 05:15:27 +0000 (05:15 +0000)] 
Update Limitations section following recent ppc hackery.

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

19 years agoYet another ppc test program, which duplicates jm-insns so isn't too useful.
Julian Seward [Sun, 12 Feb 2006 18:56:16 +0000 (18:56 +0000)] 
Yet another ppc test program, which duplicates jm-insns so isn't too useful.

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

19 years agoRestore %EIP from the info passed to the handler (ucontext), so as to
Julian Seward [Sun, 12 Feb 2006 15:45:46 +0000 (15:45 +0000)] 
Restore %EIP from the info passed to the handler (ucontext), so as to
be able to deal with signal handlers that mess with
third_arg->uc_mcontext.gregs[REG_EIP].  Apparently Wine does this.

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

19 years agoExtend stack-permissions-change fast-case machinery to handle +/- 112,
Julian Seward [Sun, 12 Feb 2006 15:42:20 +0000 (15:42 +0000)] 
Extend stack-permissions-change fast-case machinery to handle +/- 112,
128, 144 and 160.

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

19 years agoFix typo.
Tom Hughes [Sun, 12 Feb 2006 08:50:45 +0000 (08:50 +0000)] 
Fix typo.

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

19 years agoMore bug status updates.
Tom Hughes [Sat, 11 Feb 2006 17:08:15 +0000 (17:08 +0000)] 
More bug status updates.

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

19 years agoDocument fixes.
Tom Hughes [Sat, 11 Feb 2006 16:32:16 +0000 (16:32 +0000)] 
Document fixes.

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

19 years agoAdd missing VKI_ prefixes.
Tom Hughes [Sat, 11 Feb 2006 16:31:54 +0000 (16:31 +0000)] 
Add missing VKI_ prefixes.

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

19 years agoImplement the vm86 and vm86old system calls based on a patch
Tom Hughes [Sat, 11 Feb 2006 16:26:46 +0000 (16:26 +0000)] 
Implement the vm86 and vm86old system calls based on a patch
from Alper Akcan. Fixes bug #118939.

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

19 years agoEnable enough syscalls to make self-hosting work on ppc64.
Julian Seward [Sat, 11 Feb 2006 14:35:17 +0000 (14:35 +0000)] 
Enable enough syscalls to make self-hosting work on ppc64.

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

19 years agoImplement a few extra ioctls based on patch from Eric Pouech in bug #120728.
Tom Hughes [Sat, 11 Feb 2006 13:29:09 +0000 (13:29 +0000)] 
Implement a few extra ioctls based on patch from Eric Pouech in bug #120728.

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

19 years agoAnother ppc related suppression (Dave Nomura).
Julian Seward [Fri, 10 Feb 2006 12:42:46 +0000 (12:42 +0000)] 
Another ppc related suppression (Dave Nomura).

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

19 years agoDon't use -gstabs on ppc64-linux, as it doesn't work with some gccs (Dave Nomura).
Julian Seward [Fri, 10 Feb 2006 12:42:11 +0000 (12:42 +0000)] 
Don't use -gstabs on ppc64-linux, as it doesn't work with some gccs (Dave Nomura).

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

19 years agoFix minor anomaly pointed out by icc9.
Julian Seward [Fri, 10 Feb 2006 11:57:17 +0000 (11:57 +0000)] 
Fix minor anomaly pointed out by icc9.

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

19 years agoDenestification.
Robert Walsh [Fri, 10 Feb 2006 03:33:10 +0000 (03:33 +0000)] 
Denestification.

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

19 years agoTeach the Dwarf2 line-info reader how to handle so-called 64-bit
Julian Seward [Thu, 9 Feb 2006 23:35:11 +0000 (23:35 +0000)] 
Teach the Dwarf2 line-info reader how to handle so-called 64-bit
Dwarf, which is a (fully documented) Dwarf3 variant in which some
32-bit fields are expanded to 64 bits.  Presumably this is useful for
those vast hordes of folks who regularly build executables or shared
objects more than 4GB long.  For whatever reason, IBM's xlc/xlC/xlf
insist on generating 64-bit Dwarf when compiling even hello-world size
programs for ppc64-linux.

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

19 years agoEnable sys_getrusage.
Julian Seward [Thu, 9 Feb 2006 11:16:58 +0000 (11:16 +0000)] 
Enable sys_getrusage.

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

19 years agoHandle main thread stacks up to 16MB.
Julian Seward [Thu, 9 Feb 2006 11:16:18 +0000 (11:16 +0000)] 
Handle main thread stacks up to 16MB.

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

19 years agoFix erroneous hardwired redirect spec.
Julian Seward [Thu, 9 Feb 2006 10:29:43 +0000 (10:29 +0000)] 
Fix erroneous hardwired redirect spec.

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

19 years agoGet rid of general case in mkLazy3 and instead add new cases as they appear.
Julian Seward [Thu, 9 Feb 2006 03:25:06 +0000 (03:25 +0000)] 
Get rid of general case in mkLazy3 and instead add new cases as they appear.

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

19 years agoEnable rounding checks for fmadd/fmsub et al.
Julian Seward [Wed, 8 Feb 2006 19:32:20 +0000 (19:32 +0000)] 
Enable rounding checks for fmadd/fmsub et al.

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

19 years agoTrack vex r1573 (introduction of 4-arg IR primops for ppc fmadd/fmsub).
Julian Seward [Wed, 8 Feb 2006 19:32:02 +0000 (19:32 +0000)] 
Track vex r1573 (introduction of 4-arg IR primops for ppc fmadd/fmsub).

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

19 years agoAdd regression tests for the twi and tdi instructions, and also for
Julian Seward [Tue, 7 Feb 2006 20:58:12 +0000 (20:58 +0000)] 
Add regression tests for the twi and tdi instructions, and also for
consequent SIGTRAP handling.

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

19 years agoSynthesise and deliver SIGTRAP to clients when requested to do so by vex.
Julian Seward [Tue, 7 Feb 2006 20:56:41 +0000 (20:56 +0000)] 
Synthesise and deliver SIGTRAP to clients when requested to do so by vex.

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

19 years agoThis causes problems on setups where ld.so is mapped at just over 1M:
Julian Seward [Mon, 6 Feb 2006 23:22:31 +0000 (23:22 +0000)] 
This causes problems on setups where ld.so is mapped at just over 1M:
it zeroes out that area (as a result of one of the mmaps) and the
program consequently goes into an infinite loop.  Change the map sizes
to just one page to avoid that.

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

19 years agoSet fpscr back to a known state after running generated code (64-bit mode).
Julian Seward [Mon, 6 Feb 2006 05:31:37 +0000 (05:31 +0000)] 
Set fpscr back to a known state after running generated code (64-bit mode).

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

19 years agoSet fpscr back to a known state after running generated code.
Julian Seward [Mon, 6 Feb 2006 05:14:31 +0000 (05:14 +0000)] 
Set fpscr back to a known state after running generated code.

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

19 years agoTest program aimed at exercising x87 insns a bit on amd64.
Julian Seward [Mon, 6 Feb 2006 04:49:58 +0000 (04:49 +0000)] 
Test program aimed at exercising x87 insns a bit on amd64.

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

19 years agoRegtest for a double -> unsigned int conversion that xlc generates
Julian Seward [Mon, 6 Feb 2006 04:20:51 +0000 (04:20 +0000)] 
Regtest for a double -> unsigned int conversion that xlc generates
inline, which requires observing rounding modes properly for fadd.

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

19 years agoAdd a program for checking behaviour of ppc floating point insns in
Julian Seward [Mon, 6 Feb 2006 04:19:30 +0000 (04:19 +0000)] 
Add a program for checking behaviour of ppc floating point insns in
the presence of different rounding modes.  This should really be a ppc
regression test, but the output is so large (~30MB) that the
.stdout.exp file would be unviably large.

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

19 years agoAdd a check for fsincos.
Julian Seward [Sat, 4 Feb 2006 15:43:14 +0000 (15:43 +0000)] 
Add a check for fsincos.

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

19 years agoYet more x86 instruction tests, mostly aimed at wierd/transcendental
Julian Seward [Sat, 4 Feb 2006 15:26:11 +0000 (15:26 +0000)] 
Yet more x86 instruction tests, mostly aimed at wierd/transcendental
x87 insns.

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

19 years agoTidy up a couple more x86-related primops following rounding changes.
Julian Seward [Sat, 4 Feb 2006 15:25:23 +0000 (15:25 +0000)] 
Tidy up a couple more x86-related primops following rounding changes.

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

19 years agoFollowup to r5605: fixes for x86
Julian Seward [Fri, 3 Feb 2006 22:55:04 +0000 (22:55 +0000)] 
Followup to r5605: fixes for x86

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

19 years agoFollowup to r5605: fixes for ppc64
Julian Seward [Fri, 3 Feb 2006 19:14:33 +0000 (19:14 +0000)] 
Followup to r5605: fixes for ppc64

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

19 years ago* Track introduction of IR ternary primops and rounding modes, at least as
Julian Seward [Fri, 3 Feb 2006 16:12:27 +0000 (16:12 +0000)] 
* Track introduction of IR ternary primops and rounding modes, at least as
  to the extent needed to make ppc32 work.

* As a result, remove the replacements for glibc's floor/ceil fns on
  ppc32/64, since vex can now correctly simulate the real ones.

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

19 years agoUpdate ignores.
Robert Walsh [Thu, 2 Feb 2006 05:53:44 +0000 (05:53 +0000)] 
Update ignores.

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

19 years agoChange the number of client request args from 4 to 5 as that may
Julian Seward [Wed, 1 Feb 2006 14:59:42 +0000 (14:59 +0000)] 
Change the number of client request args from 4 to 5 as that may
be useful in future.

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

19 years agoBring these tests into operation.
Julian Seward [Sun, 29 Jan 2006 18:18:18 +0000 (18:18 +0000)] 
Bring these tests into operation.

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

19 years agoAdd test cases for soem FX (general-purpose) and GX (graphics) optional insns.
Julian Seward [Sun, 29 Jan 2006 17:08:58 +0000 (17:08 +0000)] 
Add test cases for soem FX (general-purpose) and GX (graphics) optional insns.

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

19 years agoAdd configure flags --enable-only64bit and --enable-only32bit with
Julian Seward [Sat, 28 Jan 2006 18:39:09 +0000 (18:39 +0000)] 
Add configure flags --enable-only64bit and --enable-only32bit with
subvert the biarch build system, something that is sometimes
convenient to do.

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

19 years agoCheck lsw/stsw insns in 64-bit mode.
Julian Seward [Sat, 28 Jan 2006 17:08:23 +0000 (17:08 +0000)] 
Check lsw/stsw insns in 64-bit mode.

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

19 years agoUn-break ppc32 following recent hw-capabilities hackery.
Julian Seward [Fri, 27 Jan 2006 21:52:39 +0000 (21:52 +0000)] 
Un-break ppc32 following recent hw-capabilities hackery.

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

19 years agoTrack vex r1555 (Change the way Vex represents architecture variants
Julian Seward [Fri, 27 Jan 2006 21:23:23 +0000 (21:23 +0000)] 
Track vex r1555 (Change the way Vex represents architecture variants
into something more flexible.)

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

19 years agoTrack vex r1553 (addition of Iop_Est8FRecip, case Iop_Est5FRSqrt)
Julian Seward [Fri, 27 Jan 2006 15:11:31 +0000 (15:11 +0000)] 
Track vex r1553 (addition of Iop_Est8FRecip, case Iop_Est5FRSqrt)

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

19 years agoGet rid of some will-never-be-used redirections -- names which are in
Julian Seward [Thu, 26 Jan 2006 18:04:46 +0000 (18:04 +0000)] 
Get rid of some will-never-be-used redirections -- names which are in
libstdc++ but which are not (C++) mangled.

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

19 years agoppc32-linux: enable __NR_statfs
Julian Seward [Thu, 26 Jan 2006 14:25:51 +0000 (14:25 +0000)] 
ppc32-linux: enable __NR_statfs

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

19 years agoEnsure -Wdeclaration-after-statement gets through to vex-land.
Julian Seward [Wed, 25 Jan 2006 02:58:28 +0000 (02:58 +0000)] 
Ensure -Wdeclaration-after-statement gets through to vex-land.

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

19 years agoDon't build the Altivec constant tables unless Altivec instruction
Julian Seward [Tue, 24 Jan 2006 18:50:38 +0000 (18:50 +0000)] 
Don't build the Altivec constant tables unless Altivec instruction
tests have been requested.

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

19 years agoVex can't simulate floor() or ceil() correctly on ppc32/64 from
Julian Seward [Tue, 24 Jan 2006 01:01:17 +0000 (01:01 +0000)] 
Vex can't simulate floor() or ceil() correctly on ppc32/64 from
glibc-2.3.4 onwards, so just replace the functions with the older
glibc implementation.  This is an ugly kludge.

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

19 years agoTest program to check the behaviour of a bunch of FP functions.
Julian Seward [Tue, 24 Jan 2006 00:40:35 +0000 (00:40 +0000)] 
Test program to check the behaviour of a bunch of FP functions.

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

19 years agoEnable message-queue syscalls.
Julian Seward [Mon, 23 Jan 2006 04:34:22 +0000 (04:34 +0000)] 
Enable message-queue syscalls.

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

19 years agoUse perf/fbench as a simple FP test too. This is a modified copy, not a symlink.
Julian Seward [Mon, 23 Jan 2006 03:36:40 +0000 (03:36 +0000)] 
Use perf/fbench as a simple FP test too.  This is a modified copy, not a symlink.

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

19 years agoFix profiling dispatcher.
Julian Seward [Mon, 23 Jan 2006 00:09:07 +0000 (00:09 +0000)] 
Fix profiling dispatcher.

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

19 years agoComment-only changes.
Julian Seward [Sun, 22 Jan 2006 20:12:45 +0000 (20:12 +0000)] 
Comment-only changes.

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

19 years agoUse the bz2 test in perf/ as a regression-test, just as a moderately
Julian Seward [Sun, 22 Jan 2006 16:44:35 +0000 (16:44 +0000)] 
Use the bz2 test in perf/ as a regression-test, just as a moderately
complex integer program which exercises Vex a bit.

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

19 years agorm unneeded headers
Julian Seward [Sun, 22 Jan 2006 15:51:49 +0000 (15:51 +0000)] 
rm unneeded headers

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

19 years agoTwo unrelated changes:
Julian Seward [Sun, 22 Jan 2006 01:15:36 +0000 (01:15 +0000)] 
Two unrelated changes:

- create an IMark at the start of the IR for the ppc64 magic return stub
  as cachegrind will barf if it doesn't find one in a BB

- ppc64: for the same reason that _NRADDR is set to zero at the start of
  redirect block which is a function replacement entry (as opposed to a
  function wrapper entry), also set _NRADDR_GPR2 to zero.

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

19 years agoIndex the BB_info table by redirected guest address, not
Julian Seward [Sun, 22 Jan 2006 01:12:51 +0000 (01:12 +0000)] 
Index the BB_info table by redirected guest address, not
non-redirected guest address.  This is a small but significant change
needed to make function wrapping work.  The problem is that with
function wrapping two different translations are associated with the
non-redirected address (of a wrapped function entry point), and so
cachegrind asserts.  Whereas the redirected guest addresses reflect
the reality of only one translation associated with each address.  So
use them instead.

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

19 years agorm 'inline' - produces too many complaints with -Winline
Julian Seward [Sun, 22 Jan 2006 01:10:12 +0000 (01:10 +0000)] 
rm 'inline' - produces too many complaints with -Winline

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

19 years agoGet rid of compiler warnings.
Julian Seward [Sun, 22 Jan 2006 01:09:37 +0000 (01:09 +0000)] 
Get rid of compiler warnings.

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

19 years agoTest to check that cachegrind's BB_info management system isn't
Julian Seward [Sun, 22 Jan 2006 01:08:40 +0000 (01:08 +0000)] 
Test to check that cachegrind's BB_info management system isn't
confused by function wrapping.

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

19 years agoUpdate.
Julian Seward [Sat, 21 Jan 2006 03:47:44 +0000 (03:47 +0000)] 
Update.

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

19 years agoHandle __NR_madvise.
Julian Seward [Fri, 20 Jan 2006 21:46:03 +0000 (21:46 +0000)] 
Handle __NR_madvise.

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

19 years agoppc64-linux: compute the correct initial program counter and tocptr
Julian Seward [Fri, 20 Jan 2006 21:45:36 +0000 (21:45 +0000)] 
ppc64-linux: compute the correct initial program counter and tocptr
when the interpreter is loaded at a different address than what it
asked for.

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

19 years agoYet another possible output, due to trivial differences in backtraces.
Julian Seward [Fri, 20 Jan 2006 16:48:31 +0000 (16:48 +0000)] 
Yet another possible output, due to trivial differences in backtraces.
This is getting rediculous.  We need a better way to compare
backtraces in regression test outputs.

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

19 years agoWibble
Julian Seward [Fri, 20 Jan 2006 16:47:20 +0000 (16:47 +0000)] 
Wibble

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

19 years agoMake fn wrapping work again on ppc32-linux.
Julian Seward [Fri, 20 Jan 2006 16:46:34 +0000 (16:46 +0000)] 
Make fn wrapping work again on ppc32-linux.

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

19 years agoForgot to svn add this.
Julian Seward [Fri, 20 Jan 2006 15:55:21 +0000 (15:55 +0000)] 
Forgot to svn add this.

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

19 years agox86 function wrapping fixes.
Julian Seward [Fri, 20 Jan 2006 15:46:46 +0000 (15:46 +0000)] 
x86 function wrapping fixes.

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

19 years agoMake amd64 function wrapping work again following recent changes.
Julian Seward [Fri, 20 Jan 2006 15:17:20 +0000 (15:17 +0000)] 
Make amd64 function wrapping work again following recent changes.
Includes expected outputs for wrap8 for the non ppc64-linux case.

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

19 years agoChanges to make function wrapping work better on ppc64-linux:
Julian Seward [Fri, 20 Jan 2006 14:31:57 +0000 (14:31 +0000)] 
Changes to make function wrapping work better on ppc64-linux:

- when recording the non-redirected address in guest_NRADDR, also
  snapshot the current R2 value, as that will be needed to run the
  original safely

- As a consequence, the original-function information extracted by
  VALGRIND_GET_ORIG_FN is different on ppc64-linux (2 words) from
  all other platforms (1 word).  So change the type of it from
  void* to a new type OrigFn which can be defined differently for
  each platform.

- Change the CALL_FN_* macros for ppc64-linux to save/restore
  R2 values appropriately.

- ppc64-linux: detect overflow/underflow of the redirect stack
  and bring Valgrind to a halt if this happens

- Update VG_CLREQ_SZB for ppc32/64 (was out of date).

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

19 years agoMore function wrapping tests.
Julian Seward [Fri, 20 Jan 2006 14:21:28 +0000 (14:21 +0000)] 
More function wrapping tests.

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

19 years ago- Make this work on systems where the stack is non executable:
Julian Seward [Thu, 19 Jan 2006 17:44:38 +0000 (17:44 +0000)] 
- Make this work on systems where the stack is non executable:
  put the to-be-modified insns in an mmap'd page

- Clarify init_function a bit (does not change what it does)

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

19 years agoWibble.
Julian Seward [Thu, 19 Jan 2006 05:01:28 +0000 (05:01 +0000)] 
Wibble.

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

19 years agoTrack line number changes.
Julian Seward [Thu, 19 Jan 2006 04:40:35 +0000 (04:40 +0000)] 
Track line number changes.

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

19 years agoMore __libc_start_main -> "(below_main)" changes.
Julian Seward [Thu, 19 Jan 2006 04:33:39 +0000 (04:33 +0000)] 
More __libc_start_main -> "(below_main)" changes.

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

19 years agoUpdate with new expected outputs.
Julian Seward [Thu, 19 Jan 2006 03:57:06 +0000 (03:57 +0000)] 
Update with new expected outputs.

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

19 years agoSuppressions-tests fixes.
Julian Seward [Thu, 19 Jan 2006 03:56:33 +0000 (03:56 +0000)] 
Suppressions-tests fixes.

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

19 years agoFixes to track the "(below main)" change.
Julian Seward [Thu, 19 Jan 2006 03:55:54 +0000 (03:55 +0000)] 
Fixes to track the "(below main)" change.

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

19 years agoDon't try sys_sigprocmask on ppc64-linux.
Julian Seward [Thu, 19 Jan 2006 03:55:01 +0000 (03:55 +0000)] 
Don't try sys_sigprocmask on ppc64-linux.

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

19 years agogetcontext() seems to be unimplemented on glibc-2.3.3 on ppc64-linux.
Julian Seward [Thu, 19 Jan 2006 03:53:53 +0000 (03:53 +0000)] 
getcontext() seems to be unimplemented on glibc-2.3.3 on ppc64-linux.
Handle that eventuality.

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

19 years agoClever handling of partially defined equality does not work on
Julian Seward [Thu, 19 Jan 2006 03:52:19 +0000 (03:52 +0000)] 
Clever handling of partially defined equality does not work on
ppc32/64 at the moment.  Make this test handle that whilst still
testing the facility on x86/amd64.

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

19 years agoThis was segfaulting on ppc64-linux, even natively. These changes
Julian Seward [Thu, 19 Jan 2006 03:50:48 +0000 (03:50 +0000)] 
This was segfaulting on ppc64-linux, even natively.  These changes
stop it doing that.  Am not convinced this is a good fix -- I don't
really understand how this program works.

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

19 years agoMake a bit less nonsensical on 64-bit platforms.
Julian Seward [Thu, 19 Jan 2006 03:48:47 +0000 (03:48 +0000)] 
Make a bit less nonsensical on 64-bit platforms.

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

19 years agoppc64-linux: apply the bogus-LR kludge in a second place.
Julian Seward [Thu, 19 Jan 2006 03:47:30 +0000 (03:47 +0000)] 
ppc64-linux: apply the bogus-LR kludge in a second place.

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

19 years agoDeal with somewhat dubious numbers showing up from the kernel for the
Julian Seward [Thu, 19 Jan 2006 03:44:10 +0000 (03:44 +0000)] 
Deal with somewhat dubious numbers showing up from the kernel for the
r3 (syscall return) value in the ucontext for a signal interrupting a
syscall.

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

19 years agoRationalise demangling a bit more, so that suppression matching works
Julian Seward [Thu, 19 Jan 2006 03:38:19 +0000 (03:38 +0000)] 
Rationalise demangling a bit more, so that suppression matching works
properly again.

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

19 years agoAdd handy debugging line.
Julian Seward [Thu, 19 Jan 2006 03:36:52 +0000 (03:36 +0000)] 
Add handy debugging line.

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

19 years agoMore syscalls.
Julian Seward [Thu, 19 Jan 2006 03:36:13 +0000 (03:36 +0000)] 
More syscalls.

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

19 years agoConsistently call init() before doing any MALLOC_TRACE, since the
Julian Seward [Thu, 19 Jan 2006 03:35:37 +0000 (03:35 +0000)] 
Consistently call init() before doing any MALLOC_TRACE, since the
latter depends on function pointers obtained by the former.

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