]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoUse sigprocmask(SIG_SETMASK) to make sure the signal mask is in a
Tom Hughes [Tue, 16 Nov 2004 12:09:43 +0000 (12:09 +0000)] 
Use sigprocmask(SIG_SETMASK) to make sure the signal mask is in a
known state before performing the test. This is done because perl on
some systems leaves some signals blocked when starting child
processes which can cause this test to fail.

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

21 years agoDon't try and return the old mask from sigprocmask if the user gave
Tom Hughes [Tue, 16 Nov 2004 12:08:45 +0000 (12:08 +0000)] 
Don't try and return the old mask from sigprocmask if the user gave
a null pointer for that argument.

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

21 years agoAdd arguments to the prctl call in the scalar test.
Tom Hughes [Tue, 16 Nov 2004 08:27:21 +0000 (08:27 +0000)] 
Add arguments to the prctl call in the scalar test.

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

21 years agoUse improved 80 <-> 64 bit FP conversion routines, as developed in
Julian Seward [Tue, 16 Nov 2004 02:07:18 +0000 (02:07 +0000)] 
Use improved 80 <-> 64 bit FP conversion routines, as developed in
useful/fp_80_64.c

git-svn-id: svn://svn.valgrind.org/vex/trunk@562

21 years ago\18Further improve accuracy of 80->64 bit conversions, by rounding
Julian Seward [Tue, 16 Nov 2004 02:06:09 +0000 (02:06 +0000)] 
\18Further improve accuracy of 80->64 bit conversions, by rounding
correctly in the case where the infinitely precise value is mid-way
between the two closest representable values.  None of this has the
slightest affect on any test cases, unfortunately.

git-svn-id: svn://svn.valgrind.org/vex/trunk@561

21 years agoProgram for testing IEEE gradual underflow.
Julian Seward [Tue, 16 Nov 2004 00:56:35 +0000 (00:56 +0000)] 
Program for testing IEEE gradual underflow.

git-svn-id: svn://svn.valgrind.org/vex/trunk@560

21 years agoDo at least a passable job converting denormals and therefore
Julian Seward [Tue, 16 Nov 2004 00:38:19 +0000 (00:38 +0000)] 
Do at least a passable job converting denormals and therefore
significantly improve accuracy on conversions of numbers in the range
+/- 1e-308 down to about +/- 1e-325.

git-svn-id: svn://svn.valgrind.org/vex/trunk@559

21 years agoadd a bunch of tests
Nicholas Nethercote [Mon, 15 Nov 2004 20:42:06 +0000 (20:42 +0000)] 
add a bunch of tests

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

21 years agoConverted more syscalls, including futex() which I'm not too sure about.
Nicholas Nethercote [Mon, 15 Nov 2004 20:23:15 +0000 (20:23 +0000)] 
Converted more syscalls, including futex() which I'm not too sure about.

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

21 years agoConverted rt_sigpending. This allowed PREALIAS/POSTALIAS to be removed too.
Nicholas Nethercote [Mon, 15 Nov 2004 19:23:46 +0000 (19:23 +0000)] 
Converted rt_sigpending.  This allowed PREALIAS/POSTALIAS to be removed too.

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

21 years agoForgot to add the expected stderr output.
Nicholas Nethercote [Mon, 15 Nov 2004 19:09:03 +0000 (19:09 +0000)] 
Forgot to add the expected stderr output.

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

21 years agoConverted sigprocmask and rt_sigprocmask.
Nicholas Nethercote [Mon, 15 Nov 2004 19:03:27 +0000 (19:03 +0000)] 
Converted sigprocmask and rt_sigprocmask.

While doing so, fixed bug #93328, by using the right sized types in
sigprocmask(), and converting them as necessary.  Added a regression test for
it too.

(partly) MERGE TO STABLE

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

21 years agoconvert a couple more
Nicholas Nethercote [Mon, 15 Nov 2004 17:19:22 +0000 (17:19 +0000)] 
convert a couple more

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

21 years agoConvert more syscalls. Avoid obvious seg faults due to NULL vectors in readv()
Nicholas Nethercote [Mon, 15 Nov 2004 17:04:14 +0000 (17:04 +0000)] 
Convert more syscalls.  Avoid obvious seg faults due to NULL vectors in readv()
and writev().

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

21 years agoPass an argument to exit_group in the scalar_exit_group test.
Tom Hughes [Mon, 15 Nov 2004 16:59:18 +0000 (16:59 +0000)] 
Pass an argument to exit_group in the scalar_exit_group test.

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

21 years agoConverted modify_ldt() and init_module(); the old code for init_module() was
Nicholas Nethercote [Mon, 15 Nov 2004 16:40:40 +0000 (16:40 +0000)] 
Converted modify_ldt() and init_module();  the old code for init_module() was
seemingly totally wrong, as the man page doesn't reflect the real kernel code.

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

21 years agoAdd scalar_exit_group to reg tests. Tweak scalar.c again.
Nicholas Nethercote [Mon, 15 Nov 2004 16:11:20 +0000 (16:11 +0000)] 
Add scalar_exit_group to reg tests.  Tweak scalar.c again.

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

21 years agoProperly sanity check IRConst values.
Julian Seward [Mon, 15 Nov 2004 15:46:26 +0000 (15:46 +0000)] 
Properly sanity check IRConst values.

git-svn-id: svn://svn.valgrind.org/vex/trunk@558

21 years agoAfter a clone system call there are two threads of control running so we
Tom Hughes [Mon, 15 Nov 2004 15:35:49 +0000 (15:35 +0000)] 
After a clone system call there are two threads of control running so we
need to make sure the child exits or we will get two copies of the output
from each test which follows. Also some older systems do not define the
CLONE_PARENT_SETTID flag.

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

21 years agoFill in missing cases in scalar.
Nicholas Nethercote [Mon, 15 Nov 2004 15:31:17 +0000 (15:31 +0000)] 
Fill in missing cases in scalar.

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

21 years agoRename the boolean field in IRStmt_Exit from 'cond' to 'guard' to be
Julian Seward [Mon, 15 Nov 2004 15:30:21 +0000 (15:30 +0000)] 
Rename the boolean field in IRStmt_Exit from 'cond' to 'guard' to be
consistent with other places where boolean guards are stored.

git-svn-id: svn://svn.valgrind.org/vex/trunk@557

21 years agoRename all the _Bit types to I1 so as to be consistent with all the
Julian Seward [Mon, 15 Nov 2004 15:21:17 +0000 (15:21 +0000)] 
Rename all the _Bit types to I1 so as to be consistent with all the
other notation used.

git-svn-id: svn://svn.valgrind.org/vex/trunk@556

21 years agoconverted more syscalls
Nicholas Nethercote [Mon, 15 Nov 2004 14:50:02 +0000 (14:50 +0000)] 
converted more syscalls

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

21 years agoConverted more syscalls
Nicholas Nethercote [Mon, 15 Nov 2004 14:32:12 +0000 (14:32 +0000)] 
Converted more syscalls

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

21 years agoRename INVALID_IRTEMP to IRTemp_INVALID to be consistent with
Julian Seward [Mon, 15 Nov 2004 14:22:12 +0000 (14:22 +0000)] 
Rename INVALID_IRTEMP to IRTemp_INVALID to be consistent with
other *_INVALID symbols.

git-svn-id: svn://svn.valgrind.org/vex/trunk@555

21 years agoGet rid of some unused primops: And1 Or1 Neg8/16/32/64.
Julian Seward [Mon, 15 Nov 2004 13:54:26 +0000 (13:54 +0000)] 
Get rid of some unused primops: And1 Or1 Neg8/16/32/64.

git-svn-id: svn://svn.valgrind.org/vex/trunk@554

21 years agoRecord stuff that needs to be done
Julian Seward [Mon, 15 Nov 2004 13:30:26 +0000 (13:30 +0000)] 
Record stuff that needs to be done

git-svn-id: svn://svn.valgrind.org/vex/trunk@553

21 years agoconverted mmap and mmap2
Nicholas Nethercote [Mon, 15 Nov 2004 12:57:39 +0000 (12:57 +0000)] 
converted mmap and mmap2

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

21 years ago15-bit tt-fast cache has excessive miss rate on 176.gcc; this change
Julian Seward [Mon, 15 Nov 2004 12:43:22 +0000 (12:43 +0000)] 
15-bit tt-fast cache has excessive miss rate on 176.gcc; this change
more or less halves the miss rate.

git-svn-id: svn://svn.valgrind.org/vex/trunk@552

21 years agoMore eflags-specialisation rules.
Julian Seward [Mon, 15 Nov 2004 12:42:26 +0000 (12:42 +0000)] 
More eflags-specialisation rules.

git-svn-id: svn://svn.valgrind.org/vex/trunk@551

21 years agoConverted a few more, including clone() which I'm not at all sure about, and
Nicholas Nethercote [Mon, 15 Nov 2004 12:28:58 +0000 (12:28 +0000)] 
Converted a few more, including clone() which I'm not at all sure about, and
ipc() which is done too simplistically.

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

21 years agoAdd some missing system call arguments to the scalar test.
Tom Hughes [Mon, 15 Nov 2004 10:02:53 +0000 (10:02 +0000)] 
Add some missing system call arguments to the scalar test.

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

21 years agoRemove trailing space after \ continuation marker.
Tom Hughes [Mon, 15 Nov 2004 09:38:26 +0000 (09:38 +0000)] 
Remove trailing space after \ continuation marker.

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

21 years agoAdd comments documenting the difference between the sigsuspend
Tom Hughes [Mon, 15 Nov 2004 09:27:24 +0000 (09:27 +0000)] 
Add comments documenting the difference between the sigsuspend
function in the C library and the sigsuspend and rt_sigsuspend
system calls.

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

21 years agoAdd reroutes needed for RHAS 3.
Julian Seward [Mon, 15 Nov 2004 02:51:21 +0000 (02:51 +0000)] 
Add reroutes needed for RHAS 3.

git-svn-id: svn://svn.valgrind.org/vex/trunk@550

21 years agoConverted some more syscalls.
Nicholas Nethercote [Sun, 14 Nov 2004 20:06:27 +0000 (20:06 +0000)] 
Converted some more syscalls.

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

21 years agoFix the sigsuspend wrapper - the existing implementation was totally
Tom Hughes [Sun, 14 Nov 2004 19:44:25 +0000 (19:44 +0000)] 
Fix the sigsuspend wrapper - the existing implementation was totally
bogus. Also checked the rt_sigsuspend wrapper, which does seem to be
correct.

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

21 years agoConverted a few more syscalls.
Nicholas Nethercote [Sun, 14 Nov 2004 19:11:56 +0000 (19:11 +0000)] 
Converted a few more syscalls.

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

21 years agoconverted a few more syscalls
Nicholas Nethercote [Sun, 14 Nov 2004 18:37:07 +0000 (18:37 +0000)] 
converted a few more syscalls

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

21 years agoforgot to remove these files in last commit
Nicholas Nethercote [Sun, 14 Nov 2004 18:22:09 +0000 (18:22 +0000)] 
forgot to remove these files in last commit

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

21 years agoUndo splitting of scalar from the last commit, which was stupid; just use
Nicholas Nethercote [Sun, 14 Nov 2004 18:11:55 +0000 (18:11 +0000)] 
Undo splitting of scalar from the last commit, which was stupid;  just use
--error-limit=no instead.

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

21 years agoConverted a few more syscalls.
Nicholas Nethercote [Sun, 14 Nov 2004 17:58:27 +0000 (17:58 +0000)] 
Converted a few more syscalls.

Also split scalar into 6 pieces, to avoid hitting the 300 error limit.

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

21 years agoConverted a couple more
Nicholas Nethercote [Sun, 14 Nov 2004 17:03:47 +0000 (17:03 +0000)] 
Converted a couple more

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

21 years agoAdd gettimeofday() to test.
Nicholas Nethercote [Sun, 14 Nov 2004 15:56:32 +0000 (15:56 +0000)] 
Add gettimeofday() to test.

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

21 years agoAdd missing params. Tom's nightly tests should work now.
Nicholas Nethercote [Sun, 14 Nov 2004 15:55:06 +0000 (15:55 +0000)] 
Add missing params.  Tom's nightly tests should work now.

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

21 years agoconverted sigsuspend, rt_sigsuspend. Not very sure about them.
Nicholas Nethercote [Sun, 14 Nov 2004 14:13:05 +0000 (14:13 +0000)] 
converted sigsuspend, rt_sigsuspend.  Not very sure about them.

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

21 years agoconverted a few more
Nicholas Nethercote [Sun, 14 Nov 2004 13:42:51 +0000 (13:42 +0000)] 
converted a few more

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

21 years agoconverted some more
Nicholas Nethercote [Sat, 13 Nov 2004 13:57:12 +0000 (13:57 +0000)] 
converted some more

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

21 years agoAdd the post handlers for the console ioctls that I managed to
Tom Hughes [Sat, 13 Nov 2004 10:38:04 +0000 (10:38 +0000)] 
Add the post handlers for the console ioctls that I managed to
forget to include yesterday.

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

21 years agoRemove a couple of commented out lines that were left in when committing
Tom Hughes [Sat, 13 Nov 2004 00:40:18 +0000 (00:40 +0000)] 
Remove a couple of commented out lines that were left in when committing
the previous stabs fix.

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

21 years agoFix compiler warning.
Tom Hughes [Sat, 13 Nov 2004 00:39:37 +0000 (00:39 +0000)] 
Fix compiler warning.

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

21 years agoAdd support for most of the console driver ioctls. This fixes one of
Tom Hughes [Sat, 13 Nov 2004 00:36:15 +0000 (00:36 +0000)] 
Add support for most of the console driver ioctls. This fixes one of
the ioctls complained about in bug 93096 as well as one that came up
on the mailing list a few weeks ago.

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

21 years agoTry and improve the parsing of C++ stabs that contain :: sequences. This
Tom Hughes [Fri, 12 Nov 2004 23:16:31 +0000 (23:16 +0000)] 
Try and improve the parsing of C++ stabs that contain :: sequences. This
patch attempts to follow the same rules that gdb uses and is based on the
fact that there appear to be three places where :: can appear:

  - In the name of a undefined struct/union/enum after an x type
    marker. In this case we follow a simplified version of the old
    rules and only allow :: inside <> characters.

  - In a method name. These are mangled so :: will never appear as
    part of the name but will always occurs as the terminator. We
    handle this by stopping at the first :: sequence.

  - In a symbol/type name. This can include :: but can only be ended
    by a single colon so we simply carry on until we see that.

I suspect this will resolve a number of bugs but I'm still waiting for
the submitters to confirm exactly which ones it resolves.

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

21 years agoChange VG_(nuke_all_threads) to disassociate the the stacks of the threads
Tom Hughes [Fri, 12 Nov 2004 23:11:21 +0000 (23:11 +0000)] 
Change VG_(nuke_all_threads) to disassociate the the stacks of the threads
being killed from the threads rather than marking them as inaccessible.

This should fix the problem with the environment (and other data from the
stacks of other threads) causing warnings after a fork. I believe that
VG_(nuke_all_threads) is only called in places where this is the behaviour
that we want or where it doesn't matter because we're about to exit anyway.

I believe this fixes bug 85625 but I'm still waiting for confirmation.

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

21 years agoconvert some more, mash some more
Nicholas Nethercote [Fri, 12 Nov 2004 21:21:07 +0000 (21:21 +0000)] 
convert some more, mash some more

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

21 years agoAdd commented-out templates so further additions are easier.
Nicholas Nethercote [Fri, 12 Nov 2004 21:00:08 +0000 (21:00 +0000)] 
Add commented-out templates so further additions are easier.

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

21 years agomash things around to make further conversions quicker
Nicholas Nethercote [Fri, 12 Nov 2004 20:38:34 +0000 (20:38 +0000)] 
mash things around to make further conversions quicker

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

21 years agoconverted some more
Nicholas Nethercote [Fri, 12 Nov 2004 19:55:08 +0000 (19:55 +0000)] 
converted some more

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

21 years agowibble
Nicholas Nethercote [Fri, 12 Nov 2004 18:49:50 +0000 (18:49 +0000)] 
wibble

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

21 years agoand converted a few more
Nicholas Nethercote [Fri, 12 Nov 2004 18:49:27 +0000 (18:49 +0000)] 
and converted a few more

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

21 years agorenamed variables
Nicholas Nethercote [Fri, 12 Nov 2004 18:21:17 +0000 (18:21 +0000)] 
renamed variables

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

21 years agoconverted some more
Nicholas Nethercote [Fri, 12 Nov 2004 18:20:12 +0000 (18:20 +0000)] 
converted some more

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

21 years agoUpdate startup message.
Julian Seward [Fri, 12 Nov 2004 17:48:35 +0000 (17:48 +0000)] 
Update startup message.

git-svn-id: svn://svn.valgrind.org/vex/trunk@549

21 years agoAdd copyright notices.
Julian Seward [Fri, 12 Nov 2004 17:40:23 +0000 (17:40 +0000)] 
Add copyright notices.

git-svn-id: svn://svn.valgrind.org/vex/trunk@548

21 years agoRemove unnecessary comment.
Nicholas Nethercote [Fri, 12 Nov 2004 17:13:17 +0000 (17:13 +0000)] 
Remove unnecessary comment.

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

21 years agoUse our own unistd.h, because the system one might be missing some of the
Nicholas Nethercote [Fri, 12 Nov 2004 17:12:04 +0000 (17:12 +0000)] 
Use our own unistd.h, because the system one might be missing some of the
constants.

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

21 years agoConverted a whole bunch of syscalls.
Nicholas Nethercote [Fri, 12 Nov 2004 17:07:26 +0000 (17:07 +0000)] 
Converted a whole bunch of syscalls.

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

21 years agoConverted execve().
Nicholas Nethercote [Fri, 12 Nov 2004 15:41:06 +0000 (15:41 +0000)] 
Converted execve().

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

21 years agoConverted vfork() and acct(). Properly annotated all the ones we don't handle,
Nicholas Nethercote [Fri, 12 Nov 2004 14:57:34 +0000 (14:57 +0000)] 
Converted vfork() and acct().  Properly annotated all the ones we don't handle,
plus a few we do.

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

21 years agoConverted lookup_dcookie.
Nicholas Nethercote [Fri, 12 Nov 2004 13:29:24 +0000 (13:29 +0000)] 
Converted lookup_dcookie.

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

21 years agoCVS fixups: cvs add files I forgot to before; add .cvsignore entries.
Nicholas Nethercote [Fri, 12 Nov 2004 11:25:39 +0000 (11:25 +0000)] 
CVS fixups: cvs add files I forgot to before;  add .cvsignore entries.

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

21 years agoConverted uname(); annotated some obsolete ones.
Nicholas Nethercote [Fri, 12 Nov 2004 11:19:36 +0000 (11:19 +0000)] 
Converted uname();  annotated some obsolete ones.

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

21 years agoAdded a syscall flag "NBRunInLWP" for non-blocking syscalls that must
Nicholas Nethercote [Fri, 12 Nov 2004 11:02:00 +0000 (11:02 +0000)] 
Added a syscall flag "NBRunInLWP" for non-blocking syscalls that must
nonetheless be run in LWP context.  Just makes things clearer.

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

21 years agoAdd a couple more constant folding rules.
Julian Seward [Fri, 12 Nov 2004 00:13:21 +0000 (00:13 +0000)] 
Add a couple more constant folding rules.

git-svn-id: svn://svn.valgrind.org/vex/trunk@547

21 years agoNow handling non-existent syscalls appropriately -- just returning ENOSYS
Nicholas Nethercote [Thu, 11 Nov 2004 19:43:50 +0000 (19:43 +0000)] 
Now handling non-existent syscalls appropriately -- just returning ENOSYS
rather than giving the warning about the syscall being missing.  (Nb: this only
applies to syscall numbers for which the kernel has no corresponding syscall;
Valgrind will still give that warning if new syscalls are added to the kernel.)

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

21 years agoConverted fork(), and added a separate regtest for it.
Nicholas Nethercote [Thu, 11 Nov 2004 19:03:34 +0000 (19:03 +0000)] 
Converted fork(), and added a separate regtest for it.

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

21 years agoConverted a bunch more syscalls.
Nicholas Nethercote [Thu, 11 Nov 2004 18:00:47 +0000 (18:00 +0000)] 
Converted a bunch more syscalls.

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

21 years agoConverted a bunch of zero-arg syscalls.
Nicholas Nethercote [Thu, 11 Nov 2004 16:38:21 +0000 (16:38 +0000)] 
Converted a bunch of zero-arg syscalls.

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

21 years agoLet the insn selector know that
Julian Seward [Thu, 11 Nov 2004 02:17:53 +0000 (02:17 +0000)] 
Let the insn selector know that

   CmpNE32(1Sto32(bit),0) == bit

and ditto in 64-bits, and do not generate any code for it.  This helps
some massive expressions made by memcheck on x86 FP code.

git-svn-id: svn://svn.valgrind.org/vex/trunk@546

21 years agoFix some missing cases in printing FP insns.
Julian Seward [Thu, 11 Nov 2004 02:15:15 +0000 (02:15 +0000)] 
Fix some missing cases in printing FP insns.

git-svn-id: svn://svn.valgrind.org/vex/trunk@545

21 years agoMake cse_BB globally visible, and rename to do_cse_BB, but don't use
Julian Seward [Thu, 11 Nov 2004 02:14:45 +0000 (02:14 +0000)] 
Make cse_BB globally visible, and rename to do_cse_BB, but don't use
it for anything new.

git-svn-id: svn://svn.valgrind.org/vex/trunk@544

21 years agoUpdate included copy of the mc_instrument.c.
Julian Seward [Thu, 11 Nov 2004 02:13:30 +0000 (02:13 +0000)] 
Update included copy of the mc_instrument.c.

git-svn-id: svn://svn.valgrind.org/vex/trunk@543

21 years ago--help-debug: don't forget to mention --vex-iropt-verbosity
Julian Seward [Wed, 10 Nov 2004 23:28:01 +0000 (23:28 +0000)] 
--help-debug: don't forget to mention --vex-iropt-verbosity

git-svn-id: svn://svn.valgrind.org/vex/trunk@542

21 years agoComment change, and remove some '#if 1's.
Julian Seward [Wed, 10 Nov 2004 23:27:07 +0000 (23:27 +0000)] 
Comment change, and remove some '#if 1's.

git-svn-id: svn://svn.valgrind.org/vex/trunk@541

21 years agoOops .. C flag after inc/dec is in ndep, not dep1.
Julian Seward [Wed, 10 Nov 2004 23:25:37 +0000 (23:25 +0000)] 
Oops .. C flag after inc/dec is in ndep, not dep1.

git-svn-id: svn://svn.valgrind.org/vex/trunk@540

21 years agoArch-abstraction, syscall overhaul: rename functions appropriately
Nicholas Nethercote [Wed, 10 Nov 2004 19:08:31 +0000 (19:08 +0000)] 
Arch-abstraction, syscall overhaul:  rename functions appropriately

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

21 years agoaugmented scalar
Nicholas Nethercote [Wed, 10 Nov 2004 18:59:57 +0000 (18:59 +0000)] 
augmented scalar

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

21 years agoArch-abstraction: syscall overhauling.
Nicholas Nethercote [Wed, 10 Nov 2004 18:57:37 +0000 (18:57 +0000)] 
Arch-abstraction: syscall overhauling.
- Folded special_sys[] into sys_info[], which is cleaner and allows the one
  table to have the __NR_ constants in order.  An extra per-syscall flag
  (Special) was added to distinguish the special ones.

- Started moving the per-syscall flags attribute from being associated with the
  sys_info[] table, to being associated with the PRE/POST wrappers, since
  that's what the flags really apply to.

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

21 years agoArch-abstraction: syscall overhauling.
Nicholas Nethercote [Wed, 10 Nov 2004 17:43:43 +0000 (17:43 +0000)] 
Arch-abstraction: syscall overhauling.
- Reordered the table according to the __NR_xxx numbering order, which is the
  order the final versions (there will be one per architecture) will be in.
  This shows clearly which syscalls we don't have wrappers for.

- Annotated each entry with its number and the sys_foo() function that it
  calls.  This will be useful as I convert them all to the new regime.
  For the same reason, I marked the ones that are generic across all Linux's
  architectures.

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

21 years agoProvide our own versions of strchrnul and rawmemchr so we don't have
Julian Seward [Wed, 10 Nov 2004 17:24:44 +0000 (17:24 +0000)] 
Provide our own versions of strchrnul and rawmemchr so we don't have
to deal with glibc's ultra-optimised versions.

--> CVS repo ?

git-svn-id: svn://svn.valgrind.org/vex/trunk@539

21 years agoBuild mc_main.o with -fomit-frame-pointer; gives a 2-3% performance
Julian Seward [Wed, 10 Nov 2004 13:33:17 +0000 (13:33 +0000)] 
Build mc_main.o with -fomit-frame-pointer; gives a 2-3% performance
gain on x86.

git-svn-id: svn://svn.valgrind.org/vex/trunk@538

21 years agoAllow tools to tell Vex when it can/can't chase across basic block
Julian Seward [Wed, 10 Nov 2004 13:02:48 +0000 (13:02 +0000)] 
Allow tools to tell Vex when it can/can't chase across basic block
boundaries, so as to make the intercept mechanism work properly again.

Unfortunately also contains a huge number of tab-to-space whitespace
changes in guest-x86/toIR.c.

git-svn-id: svn://svn.valgrind.org/vex/trunk@537

21 years agoReinstate some more flag-helper specialisations.
Julian Seward [Wed, 10 Nov 2004 12:10:23 +0000 (12:10 +0000)] 
Reinstate some more flag-helper specialisations.

git-svn-id: svn://svn.valgrind.org/vex/trunk@536

21 years agoComment change only.
Julian Seward [Wed, 10 Nov 2004 12:09:42 +0000 (12:09 +0000)] 
Comment change only.

git-svn-id: svn://svn.valgrind.org/vex/trunk@535

21 years agoFinish off Memcheck's handling of dirty helper calls. Memcheck is now
Julian Seward [Wed, 10 Nov 2004 12:07:51 +0000 (12:07 +0000)] 
Finish off Memcheck's handling of dirty helper calls.  Memcheck is now
feature-complete (!)

git-svn-id: svn://svn.valgrind.org/vex/trunk@534

21 years ago* memcheck: handle dirty helper calls (mostly)
Julian Seward [Wed, 10 Nov 2004 02:39:49 +0000 (02:39 +0000)] 
* memcheck: handle dirty helper calls (mostly)
* memcheck: improve call sequences to value-check-fail helpers

git-svn-id: svn://svn.valgrind.org/vex/trunk@533

21 years agoConverted __NR_{mount,getpid,getppid}.
Nicholas Nethercote [Tue, 9 Nov 2004 16:45:33 +0000 (16:45 +0000)] 
Converted __NR_{mount,getpid,getppid}.

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

21 years ago- Convert open() to the new syscall regime.
Nicholas Nethercote [Tue, 9 Nov 2004 16:20:46 +0000 (16:20 +0000)] 
- Convert open() to the new syscall regime.
- Improve scalar regtest;  I will add new syscalls to it as I convert them.

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

21 years agoAnother day, another bunch of primops need doing ...
Julian Seward [Tue, 9 Nov 2004 16:02:11 +0000 (16:02 +0000)] 
Another day, another bunch of primops need doing ...

git-svn-id: svn://svn.valgrind.org/vex/trunk@532

21 years agoMore primop support needed by memcheck.
Julian Seward [Tue, 9 Nov 2004 16:01:40 +0000 (16:01 +0000)] 
More primop support needed by memcheck.

git-svn-id: svn://svn.valgrind.org/vex/trunk@531