]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoRemoving the insn_* tests from helgrind, memcheck, addrcheck and
Nicholas Nethercote [Thu, 25 Nov 2004 17:47:43 +0000 (17:47 +0000)] 
Removing the insn_* tests from helgrind, memcheck, addrcheck and
cachegrind, because having them there doesn't add anything beyond that
tested in 'none'.

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

21 years agoTest driver stuff for arm.
Julian Seward [Thu, 25 Nov 2004 13:08:26 +0000 (13:08 +0000)] 
Test driver stuff for arm.

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

21 years agoBuild stuff for arm.
Julian Seward [Thu, 25 Nov 2004 13:07:51 +0000 (13:07 +0000)] 
Build stuff for arm.

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

21 years agoAdd a skeletal ARM insn decoder.
Julian Seward [Thu, 25 Nov 2004 13:07:02 +0000 (13:07 +0000)] 
Add a skeletal ARM insn decoder.

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

21 years agoStart adding some ARM guest infrastructure stuff, but as a result get
Julian Seward [Thu, 25 Nov 2004 02:46:58 +0000 (02:46 +0000)] 
Start adding some ARM guest infrastructure stuff, but as a result get
diverted into a massive renaming of the x86 guest stuff so as to avoid
namespace clashes.

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

21 years agoFix another potentially-failing use of get_current_tid(), in
Julian Seward [Wed, 24 Nov 2004 21:24:24 +0000 (21:24 +0000)] 
Fix another potentially-failing use of get_current_tid(), in
proxy_sendsig().  Fixes the pth_blockesig regression test.

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

21 years agoRemove now-unnecessary macro.
Nicholas Nethercote [Wed, 24 Nov 2004 18:58:41 +0000 (18:58 +0000)] 
Remove now-unnecessary macro.

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

21 years agoWhoops, unbreak syscall number checking.
Nicholas Nethercote [Wed, 24 Nov 2004 18:31:40 +0000 (18:31 +0000)] 
Whoops, unbreak syscall number checking.

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

21 years agoCleanups:
Nicholas Nethercote [Wed, 24 Nov 2004 18:14:41 +0000 (18:14 +0000)] 
Cleanups:
- move things around so that each arch doesn't duplicate stuff to do with
  VG_(do_thread_syscall)().
- enum PXState doesn't need to be visible outside vg_proxylwp.c

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

21 years agoRemoved shadow_regs 'need', because it was being used only trivially in
Nicholas Nethercote [Wed, 24 Nov 2004 16:57:16 +0000 (16:57 +0000)] 
Removed shadow_regs 'need', because it was being used only trivially in
a couple of places, and is no longer needed.

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

21 years agoCleanups, mostly for the baseBlock removal.
Nicholas Nethercote [Wed, 24 Nov 2004 16:43:43 +0000 (16:43 +0000)] 
Cleanups, mostly for the baseBlock removal.

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

21 years agoRemoved all uses of register numbers (eg. arch-specific ones like R_EAX, and
Nicholas Nethercote [Wed, 24 Nov 2004 16:30:22 +0000 (16:30 +0000)] 
Removed all uses of register numbers (eg. arch-specific ones like R_EAX, and
arch-neutral ones like R_STACK_PTR).  Where they were used, we now always talk
about an offset into the Vex guest state, and an offset.  As a result,
the shadow register get/set functions had to change.  They now also use
an offset and size, and in an arch-neutral way.

Also, I combined the five the post_reg_write* functions into a single one that
takes a 'CorePart' parameter (plus also a ThreadId).  Also, I added more
arguments (the CorePart, and the ThreadId) to the post_mem_write event, for
consistency with the pre_mem_* events.

Also, I reduced the number of register names that must be specified by each
arch, by factoring out duplication; and shortened their names for the core (eg.
ARCH_STACK_PTR is now STACK_PTR).

Plus some related minor cleanups in syscall wrappers.

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

21 years agoCleanups for baseBlock removal: fix some comments, remove two decls
Nicholas Nethercote [Wed, 24 Nov 2004 11:57:51 +0000 (11:57 +0000)] 
Cleanups for baseBlock removal:  fix some comments, remove two decls
that are no longer needed.

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

21 years agoAdd a pseudo-guest-register to hold the 'next syscall number.'
Julian Seward [Wed, 24 Nov 2004 11:22:31 +0000 (11:22 +0000)] 
Add a pseudo-guest-register to hold the 'next syscall number.'

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

21 years agoUpdate comments for the renaming of arch_thread_t.
Nicholas Nethercote [Wed, 24 Nov 2004 10:55:37 +0000 (10:55 +0000)] 
Update comments for the renaming of arch_thread_t.

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

21 years agoRemove unneeded comments.
Nicholas Nethercote [Wed, 24 Nov 2004 10:47:42 +0000 (10:47 +0000)] 
Remove unneeded comments.

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

21 years agoGet rid of baseBlock. Now, when generated code is running, the guest
Julian Seward [Wed, 24 Nov 2004 10:44:19 +0000 (10:44 +0000)] 
Get rid of baseBlock.  Now, when generated code is running, the guest
state pointer points directly at the ThreadState.arch.vex field, thus
updating it in place and avoiding a lot of code (and time-wasting)
which copies stuff back and forth to baseBlock.

Fix zillions of other places in the system where the current thread id
is needed.  It is now passed to all needed places.

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

21 years agoClean slightly.
Nicholas Nethercote [Tue, 23 Nov 2004 19:10:18 +0000 (19:10 +0000)] 
Clean slightly.

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

21 years agoRemove out-of-date comment.
Nicholas Nethercote [Tue, 23 Nov 2004 18:42:54 +0000 (18:42 +0000)] 
Remove out-of-date comment.

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

21 years agoComment-only changes.
Nicholas Nethercote [Tue, 23 Nov 2004 18:19:29 +0000 (18:19 +0000)] 
Comment-only changes.

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

21 years agoRemove out-of-date comment.
Nicholas Nethercote [Tue, 23 Nov 2004 18:01:21 +0000 (18:01 +0000)] 
Remove out-of-date comment.

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

21 years agoSeveral unrelated changes:
Nicholas Nethercote [Tue, 23 Nov 2004 17:52:24 +0000 (17:52 +0000)] 
Several unrelated changes:
- don't use AS_STRING_HELP, as older autoconfs don't like it
- fix a minor stupidity about the GDB path
- allow amd64 as a platform (wee!)

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

21 years agoFix this regression test to account for the fact that FP regs are now
Nicholas Nethercote [Tue, 23 Nov 2004 17:19:53 +0000 (17:19 +0000)] 
Fix this regression test to account for the fact that FP regs are now
checked for definedness errors lazily, just like integer regs.

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

21 years agoMake these work again.
Nicholas Nethercote [Tue, 23 Nov 2004 17:13:58 +0000 (17:13 +0000)] 
Make these work again.

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

21 years agoMake Vex less verbose, so regression tests pass again.
Nicholas Nethercote [Tue, 23 Nov 2004 17:11:49 +0000 (17:11 +0000)] 
Make Vex less verbose, so regression tests pass again.

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

21 years agoMake Vex less verbose, so the regression tests work again.
Nicholas Nethercote [Tue, 23 Nov 2004 17:10:15 +0000 (17:10 +0000)] 
Make Vex less verbose, so the regression tests work again.

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

21 years agoAdd a mandatory --with-vex option to configure script.
Nicholas Nethercote [Tue, 23 Nov 2004 16:31:56 +0000 (16:31 +0000)] 
Add a mandatory --with-vex option to configure script.

Also, fix a Makefile so that Memcheck's regtests all build again.

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

21 years agoThe syscall wrappers for sys_fcntl{,64} were too simplistic -- the 3rd
Nicholas Nethercote [Tue, 23 Nov 2004 14:57:49 +0000 (14:57 +0000)] 
The syscall wrappers for sys_fcntl{,64} were too simplistic -- the 3rd
arg is only used if the 2nd arg has particular values, so we were
getting false positives.  This commit makes the wrappers smarter to
account for this.  I updated the reg test too.

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

21 years agoMake a start on a guest state definition for AMD64.
Julian Seward [Tue, 23 Nov 2004 14:07:46 +0000 (14:07 +0000)] 
Make a start on a guest state definition for AMD64.

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

21 years agoAdd enough gunk to configure.in to get through ./configure on
Julian Seward [Tue, 23 Nov 2004 01:17:29 +0000 (01:17 +0000)] 
Add enough gunk to configure.in to get through ./configure on
armv4l-unknown-linux-gnu.

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

21 years agoGet rid of the high/low baseblock distinction. Pointless in a way
Julian Seward [Tue, 23 Nov 2004 00:50:25 +0000 (00:50 +0000)] 
Get rid of the high/low baseblock distinction.  Pointless in a way
since baseblock itself will soon enough bite the dust.

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

21 years agoGet rid of the machinery for registering helper functions. VEX calls
Julian Seward [Tue, 23 Nov 2004 00:40:33 +0000 (00:40 +0000)] 
Get rid of the machinery for registering helper functions.  VEX calls
them directly.

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

21 years agoPoint back to my VEX tree. This needs to be fixed with high priority.
Julian Seward [Tue, 23 Nov 2004 00:39:29 +0000 (00:39 +0000)] 
Point back to my VEX tree.  This needs to be fixed with high priority.

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

21 years agoDo our own implementations of strchrnul() and rawmemchr().
Julian Seward [Tue, 23 Nov 2004 00:20:17 +0000 (00:20 +0000)] 
Do our own implementations of strchrnul() and rawmemchr().

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

21 years agoDo 32Uto64.
Julian Seward [Tue, 23 Nov 2004 00:19:06 +0000 (00:19 +0000)] 
Do 32Uto64.

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

21 years agoRemoved now-defunct read/write checks for FPU ops.
Nicholas Nethercote [Mon, 22 Nov 2004 21:29:38 +0000 (21:29 +0000)] 
Removed now-defunct read/write checks for FPU ops.

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

21 years agoRemoved the now-defunct files vg_from_ucode.c and vg_to_ucode.c.
Nicholas Nethercote [Mon, 22 Nov 2004 21:23:08 +0000 (21:23 +0000)] 
Removed the now-defunct files vg_from_ucode.c and vg_to_ucode.c.

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

21 years agoRemove now-defunct --cleanup option for Memcheck.
Nicholas Nethercote [Mon, 22 Nov 2004 21:16:08 +0000 (21:16 +0000)] 
Remove now-defunct --cleanup option for Memcheck.

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

21 years agoMove redundant function decls from core.h (they end up in tool.h
Nicholas Nethercote [Mon, 22 Nov 2004 21:13:31 +0000 (21:13 +0000)] 
Move redundant function decls from core.h (they end up in tool.h
anyway).

Also remove a declaration for a no-longer-existing function from tool.h.

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

21 years agoUpdate Massif's TL_(instrument)() to work with Vex (trivial).
Nicholas Nethercote [Mon, 22 Nov 2004 21:08:46 +0000 (21:08 +0000)] 
Update Massif's TL_(instrument)() to work with Vex (trivial).

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

21 years agoFix some linking problems which were preventing memcheck from starting.
Julian Seward [Mon, 22 Nov 2004 20:51:49 +0000 (20:51 +0000)] 
Fix some linking problems which were preventing memcheck from starting.

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

21 years agoMake various other tools compile; also fix the stage2 linker script.
Julian Seward [Mon, 22 Nov 2004 20:38:40 +0000 (20:38 +0000)] 
Make various other tools compile; also fix the stage2 linker script.

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

21 years agoRemove extended_UCode 'need', which has been obsoleted by Vex. Kept the
Nicholas Nethercote [Mon, 22 Nov 2004 20:37:42 +0000 (20:37 +0000)] 
Remove extended_UCode 'need', which has been obsoleted by Vex.  Kept the
field in the struct for backward compatibility (but renamed it to
no_longer_used_0).

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

21 years agoFix some out-of-date comments.
Nicholas Nethercote [Mon, 22 Nov 2004 20:25:56 +0000 (20:25 +0000)] 
Fix some out-of-date comments.

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

21 years agoMake Memcheck compilable.
Julian Seward [Mon, 22 Nov 2004 20:19:51 +0000 (20:19 +0000)] 
Make Memcheck compilable.

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

21 years agoRemove useless parameters to TL_(pre_syscall)() and TL_(post_syscall)().
Nicholas Nethercote [Mon, 22 Nov 2004 19:57:39 +0000 (19:57 +0000)] 
Remove useless parameters to TL_(pre_syscall)() and TL_(post_syscall)().

Also remove Memcheck's and Addrcheck's use of syscall_wrappers,
since they didn't do anything useful.

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

21 years agoLast few skin-->tool changes, in various places.
Nicholas Nethercote [Mon, 22 Nov 2004 19:26:27 +0000 (19:26 +0000)] 
Last few skin-->tool changes, in various places.

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

21 years agoRename macros ("SKIN"-->"TOOL")
Nicholas Nethercote [Mon, 22 Nov 2004 19:12:49 +0000 (19:12 +0000)] 
Rename macros ("SKIN"-->"TOOL")

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

21 years agoMerge in enough changes from the old Vex tree to make stage2 link, at
Julian Seward [Mon, 22 Nov 2004 19:01:47 +0000 (19:01 +0000)] 
Merge in enough changes from the old Vex tree to make stage2 link, at
least.

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

21 years agoConverted the SK_ prefix to TL_ everywhere.
Nicholas Nethercote [Mon, 22 Nov 2004 18:33:15 +0000 (18:33 +0000)] 
Converted the SK_ prefix to TL_ everywhere.

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

21 years agoRenamed some profiling events.
Nicholas Nethercote [Mon, 22 Nov 2004 18:10:36 +0000 (18:10 +0000)] 
Renamed some profiling events.

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

21 years agoRemoved include/vg_skin.h, which has been a shell just pointing to
Nicholas Nethercote [Mon, 22 Nov 2004 18:04:29 +0000 (18:04 +0000)] 
Removed include/vg_skin.h, which has been a shell just pointing to
tool.h for a while now.

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

21 years agoRenamed VG_(skin_panic) as VG_(tool_panic).
Nicholas Nethercote [Mon, 22 Nov 2004 18:02:32 +0000 (18:02 +0000)] 
Renamed VG_(skin_panic) as VG_(tool_panic).

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

21 years agoRenamed functions with 'Skin' in them: SK_(pp_SkinError),
Nicholas Nethercote [Mon, 22 Nov 2004 17:57:07 +0000 (17:57 +0000)] 
Renamed functions with 'Skin' in them: SK_(pp_SkinError),
SK_(eq_SkinError), MAC_(pp_shared_SkinError)

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

21 years agoRenamed sk_assert() as tl_assert().
Nicholas Nethercote [Mon, 22 Nov 2004 17:18:48 +0000 (17:18 +0000)] 
Renamed sk_assert() as tl_assert().

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

21 years agoChanged name of tool shared objects from vgskin_XXX.so to vgtool_XXX.so.
Nicholas Nethercote [Mon, 22 Nov 2004 16:58:05 +0000 (16:58 +0000)] 
Changed name of tool shared objects from vgskin_XXX.so to vgtool_XXX.so.

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

21 years agoConvert the 'skin_errors' need to 'tool_errors'.
Nicholas Nethercote [Mon, 22 Nov 2004 16:46:13 +0000 (16:46 +0000)] 
Convert the 'skin_errors' need to 'tool_errors'.

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

21 years agoAdd a dummy ARM guest state include that Valgrind can be compiled
Julian Seward [Mon, 22 Nov 2004 16:02:34 +0000 (16:02 +0000)] 
Add a dummy ARM guest state include that Valgrind can be compiled
against.

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

21 years agoTiresome build-system hacks to connect to the VEX includes.
Julian Seward [Mon, 22 Nov 2004 13:44:11 +0000 (13:44 +0000)] 
Tiresome build-system hacks to connect to the VEX includes.

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

21 years agoMake VEX's "Char" type always be signed, so as to bring it into line
Julian Seward [Mon, 22 Nov 2004 12:55:45 +0000 (12:55 +0000)] 
Make VEX's "Char" type always be signed, so as to bring it into line
with Valgrind conventions.

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

21 years agogcc-2.95 build fixes.
Julian Seward [Mon, 22 Nov 2004 11:29:33 +0000 (11:29 +0000)] 
gcc-2.95 build fixes.

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

21 years agorec_alloc.c is defunct; reg_alloc2.c replaced it a while back.
Julian Seward [Mon, 22 Nov 2004 11:26:51 +0000 (11:26 +0000)] 
rec_alloc.c is defunct; reg_alloc2.c replaced it a while back.

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

21 years agoFix behaviour so that out-of-range shifts behave the same as on a
Julian Seward [Sun, 21 Nov 2004 19:22:35 +0000 (19:22 +0000)] 
Fix behaviour so that out-of-range shifts behave the same as on a
PIII.

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

21 years agoTest each insn 25000 times with random data, rather than just once or
Julian Seward [Sun, 21 Nov 2004 19:21:36 +0000 (19:21 +0000)] 
Test each insn 25000 times with random data, rather than just once or
twice.

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

21 years agoFix various failings in the MMX simulation code.
Julian Seward [Sun, 21 Nov 2004 17:41:09 +0000 (17:41 +0000)] 
Fix various failings in the MMX simulation code.

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

21 years agoAdd MMX shift-by-vector (not correct yet).
Julian Seward [Sun, 21 Nov 2004 17:04:50 +0000 (17:04 +0000)] 
Add MMX shift-by-vector (not correct yet).

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

21 years agoComplete MMX and/or/xor/andn.
Julian Seward [Sun, 21 Nov 2004 13:45:05 +0000 (13:45 +0000)] 
Complete MMX and/or/xor/andn.

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

21 years agoImplement a bunch more MMX insns.
Julian Seward [Sun, 21 Nov 2004 12:30:18 +0000 (12:30 +0000)] 
Implement a bunch more MMX insns.

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

21 years agoSome more MMX insns.
Julian Seward [Sat, 20 Nov 2004 13:17:04 +0000 (13:17 +0000)] 
Some more MMX insns.

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

21 years agoPartial support for MMX, using a low-performance scheme.
Julian Seward [Fri, 19 Nov 2004 22:17:29 +0000 (22:17 +0000)] 
Partial support for MMX, using a low-performance scheme.

aAlso gets rid of some old FP stuff from toIR.c that wasn't ever going
to get used.

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

21 years agoNo longer producing this file.
Nicholas Nethercote [Fri, 19 Nov 2004 16:10:23 +0000 (16:10 +0000)] 
No longer producing this file.

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

21 years agoMinor tweaks for external tools, for Josef W.
Nicholas Nethercote [Fri, 19 Nov 2004 15:42:49 +0000 (15:42 +0000)] 
Minor tweaks for external tools, for Josef W.

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

21 years agoYipes - my last checking borked the memcheck scalar test. This should
Robert Walsh [Fri, 19 Nov 2004 02:11:56 +0000 (02:11 +0000)] 
Yipes - my last checking borked the memcheck scalar test.  This should
make it better.

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

21 years agoAllow readlink to handle /proc/self/exe and /proc/<pid>/exe properly.
Robert Walsh [Thu, 18 Nov 2004 22:56:09 +0000 (22:56 +0000)] 
Allow readlink to handle /proc/self/exe and /proc/<pid>/exe properly.

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

21 years agoFix incorrect info about using GDB on Valgrind.
Nicholas Nethercote [Thu, 18 Nov 2004 18:34:04 +0000 (18:34 +0000)] 
Fix incorrect info about using GDB on Valgrind.

MERGE TO STABLE

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

21 years agoArch-abstraction:
Nicholas Nethercote [Thu, 18 Nov 2004 18:21:56 +0000 (18:21 +0000)] 
Arch-abstraction:
- Added a hacky mechanism which prevents the regtest script from entering
directories for other architectures.  (Eg. when running on x86/, it won't enter
a ppc/ subdir.)

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

21 years agoAn MMX test program.
Julian Seward [Thu, 18 Nov 2004 15:56:56 +0000 (15:56 +0000)] 
An MMX test program.

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

21 years agoNuke this useless bunch of tests.
Julian Seward [Thu, 18 Nov 2004 15:38:37 +0000 (15:38 +0000)] 
Nuke this useless bunch of tests.

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

21 years agoRestore ability to run with no instrumentation.
Julian Seward [Thu, 18 Nov 2004 13:44:15 +0000 (13:44 +0000)] 
Restore ability to run with no instrumentation.

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

21 years agoCSE enhancements: handle binop(const,temp), and get rid of
Julian Seward [Thu, 18 Nov 2004 13:43:24 +0000 (13:43 +0000)] 
CSE enhancements: handle binop(const,temp), and get rid of
unused load-from-memory case

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

21 years agoAdded missing .cvsignore file.
Nicholas Nethercote [Thu, 18 Nov 2004 13:34:00 +0000 (13:34 +0000)] 
Added missing .cvsignore file.

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

21 years agoTweaks for keeping Josef's external Callgrind tool running, including a bumping
Nicholas Nethercote [Thu, 18 Nov 2004 12:58:53 +0000 (12:58 +0000)] 
Tweaks for keeping Josef's external Callgrind tool running, including a bumping
of the interface major version number.

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

21 years agoGeneralised the reg test script again: replaced the "cpu_test" line,
Nicholas Nethercote [Thu, 18 Nov 2004 12:48:17 +0000 (12:48 +0000)] 
Generalised the reg test script again:  replaced the "cpu_test" line,
which caused the test to be skipped if the CPU type wasn't appropriate,
with a "prereq" line, which specifies a command that must succeed before
the test is run.

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

21 years agoReplace magic number with proper constant.
Nicholas Nethercote [Thu, 18 Nov 2004 12:45:40 +0000 (12:45 +0000)] 
Replace magic number with proper constant.

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

21 years agoGeneralised reg test script: instead of having a "delete:" line, for removing
Nicholas Nethercote [Thu, 18 Nov 2004 11:57:00 +0000 (11:57 +0000)] 
Generalised reg test script:  instead of having a "delete:" line, for removing
files once a test has completed, we have a "cleanup:" line, which specifies a
cleanup command.

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

21 years agoConvert a whole bunch of "(UWord)NULL" occurrences to 0, which is easier to
Nicholas Nethercote [Wed, 17 Nov 2004 18:42:20 +0000 (18:42 +0000)] 
Convert a whole bunch of "(UWord)NULL" occurrences to 0, which is easier to
read and understand.

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

21 years agoAdd explanatory comment to set_tid_address wrapper.
Nicholas Nethercote [Wed, 17 Nov 2004 18:24:10 +0000 (18:24 +0000)] 
Add explanatory comment to set_tid_address wrapper.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Wed, 17 Nov 2004 18:22:38 +0000 (18:22 +0000)] 
Arch-abstraction:
- Moved some more syscall wrappers into linux/syscalls.c and
  x86-linux/syscalls.c.  There are still heaps of wrappers that probably aren't
  generic, but I'm not sure, so they're staying in vg_syscalls.c for now.
  Let's worry about that when we do an OS port.

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

21 years agoAdd coregrind/linux/ and coregrind/linux/* that was supposed to go in the last
Nicholas Nethercote [Wed, 17 Nov 2004 17:21:12 +0000 (17:21 +0000)] 
Add coregrind/linux/ and coregrind/linux/* that was supposed to go in the last
commit.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Wed, 17 Nov 2004 17:11:45 +0000 (17:11 +0000)] 
Arch-abstraction:
- Moved the system call table into x86-linux, since it's platform specific.

- Started moving the non-generic syscall wrappers into linux/syscalls.c and
  x86-linux/syscalls.c as appropriate.

- Added new coregrind/linux/ directory and some files in it.

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

21 years agox86 guest: finally redo marshalling of register-passed parameters so
Julian Seward [Wed, 17 Nov 2004 13:06:21 +0000 (13:06 +0000)] 
x86 guest: finally redo marshalling of register-passed parameters so
that it's always correct (hopefully).  If any of the regparm
parameters look like they might need a fixed register, compute them
all into temporaries and then move all the temps at the end into the
arg regs.  OTOH, if all the args are simple enough so that they
definitely don't need fixed regs to compute, compute them directly
into the argument registers, thereby saving some reg-reg moves.

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

21 years agoThe calculation used to round the size of a new thread's stack to a
Tom Hughes [Tue, 16 Nov 2004 19:40:05 +0000 (19:40 +0000)] 
The calculation used to round the size of a new thread's stack to a
multiple of the page size had an off by one error. Fixed it to use
the PGROUNDUP macro instead of trying to do the calculation itself
and then get it wrong.

BUG: 93309

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

21 years agodebug output wibble
Nicholas Nethercote [Tue, 16 Nov 2004 18:26:11 +0000 (18:26 +0000)] 
debug output wibble

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

21 years agoaccount for restart_syscall
Nicholas Nethercote [Tue, 16 Nov 2004 18:20:35 +0000 (18:20 +0000)] 
account for restart_syscall

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

21 years agofix incorrect counts
Nicholas Nethercote [Tue, 16 Nov 2004 18:13:11 +0000 (18:13 +0000)] 
fix incorrect counts

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

21 years agoAdd some missing test cases.
Nicholas Nethercote [Tue, 16 Nov 2004 17:59:04 +0000 (17:59 +0000)] 
Add some missing test cases.

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

21 years agoCleanups: removing stuff no longer needed now that all syscalls have been
Nicholas Nethercote [Tue, 16 Nov 2004 17:31:56 +0000 (17:31 +0000)] 
Cleanups:  removing stuff no longer needed now that all syscalls have been
converted.

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

21 years agoConverted the last syscalls. Phew. Still some cleaning up to do, esp. with
Nicholas Nethercote [Tue, 16 Nov 2004 17:13:24 +0000 (17:13 +0000)] 
Converted the last syscalls.  Phew.  Still some cleaning up to do, esp. with
socketcall() and ipc() which are done too simplistically.

Also, VG_([gs]et_thread_area)() both now return -VKI_EFAULT if they are given a
NULL pointer.

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

21 years agoConverted the timer_* and clock_* syscalls.
Nicholas Nethercote [Tue, 16 Nov 2004 16:15:41 +0000 (16:15 +0000)] 
Converted the timer_* and clock_* syscalls.

Also now checking the return value of every syscall in scalar, to make sure
that they (mostly) fail as expected.  Because occasionally one would succeed
unexpectedly and unaddressable memory would be marked as addressable, and
things would go haywire.  (The fact that the wrapper sets the memory as
addressable in these cases is a bug with the relevant wrappers;  I'll fix them
later.)

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

21 years agoConverted the io_* and mq_* syscalls.
Nicholas Nethercote [Tue, 16 Nov 2004 12:58:04 +0000 (12:58 +0000)] 
Converted the io_* and mq_* syscalls.

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