]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoImprove pth_cvsimple test in two ways:
Nicholas Nethercote [Tue, 9 Nov 2004 14:58:02 +0000 (14:58 +0000)] 
Improve pth_cvsimple test in two ways:

1. Make the output deterministic;  different thread interleaving from expected
was causing failures for me.

2. Make it actually use the condition variable -- the condvar stupidly wasn't
actually being used in the expected case, because the other threads finished
all their work before pthread_cond_wait() even got called, and this prevented
the condition guarding pthread_cond_wait() from succeeding.

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

21 years agoDisable --skin=, so you have to use --tool= now. No great loss.
Nicholas Nethercote [Tue, 9 Nov 2004 14:35:43 +0000 (14:35 +0000)] 
Disable --skin=, so you have to use --tool= now.  No great loss.

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

21 years agoImproved memcheck/tests/scalar so that it shows an example whereby the syscall
Nicholas Nethercote [Mon, 8 Nov 2004 19:30:08 +0000 (19:30 +0000)] 
Improved memcheck/tests/scalar so that it shows an example whereby the syscall
number itself is undefined.

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

21 years agoImproved Memcheck's error checking messages in two significant ways:
Nicholas Nethercote [Mon, 8 Nov 2004 19:20:09 +0000 (19:20 +0000)] 
Improved Memcheck's error checking messages in two significant ways:

- All memory-related errors are now clear whether they are caused by
  unaddressable or uninitialised memory.  (Previously, writes were
  clearly addressability errors, but reads could be either.)  Mostly
  done by replacing the 'isWrite' field in MAC_Error with 'isUnaddr'.
  Also, mc_check_readable() now indicates not just if an error occurred,
  but what kind of error (ie. addressability or definedness).

- Put machinery into place in the core to inform tools when registers
  are being read by the core -- ie. a 'pre_reg_read' event.  Most
  notably, this facilitates syscall scalar arg definedness checking for
  Memcheck.  Currently this is only working for read(), write(), exit()
  and exit_group(), but it will be extended as the syscalls are
  overhauled as part of the arch-abstraction work.

  A consequence of this is that the ParamErr messages have changed.  This:

    Syscall param write(buf) contains uninitialised byte(s)

  now means that the pointer 'buf' is partially undefined.  If the memory
  pointed to by 'buf' is partially undefined or unaddressable, it says one of:

    Syscall param write(buf) points to uninitialised byte(s)
    Syscall param write(buf) points to unaddressable byte(s)

  The docs have been updated accordingly.

  I also added a couple of regression tests.

These two change sare notable for being the first improvements to
Memcheck's checking/errors in a long time.

I also folded mc_clientreqs.c into mc_main.c, which saves exporting a
whole bunch of things that are not used anywhere else.

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

21 years agoCall specialised report-a-value-error helper functions rather than
Julian Seward [Mon, 8 Nov 2004 18:55:47 +0000 (18:55 +0000)] 
Call specialised report-a-value-error helper functions rather than
endlessly having to pass a size parameter to a generic one.

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

21 years agoLearn how to assemble an x86 negl insn.
Julian Seward [Mon, 8 Nov 2004 18:54:50 +0000 (18:54 +0000)] 
Learn how to assemble an x86 negl insn.

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

21 years agox86 host: translate Sub32(0,x) into a negl insn. This is a very
Julian Seward [Mon, 8 Nov 2004 18:53:52 +0000 (18:53 +0000)] 
x86 host: translate Sub32(0,x) into a negl insn.  This is a very
common idiom from Memcheck ("Left4").

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

21 years agoUn-break eflag helper specialiser.
Julian Seward [Mon, 8 Nov 2004 18:20:23 +0000 (18:20 +0000)] 
Un-break eflag helper specialiser.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Mon, 8 Nov 2004 17:51:39 +0000 (17:51 +0000)] 
Arch-abstraction:
- Started overhauling the syscalls to account for different architectures;
  in particular, accounts for the fact that the __NR_foo syscall number
  often doesn't directly match with the sys_foo() function that implements the
  function in the Linux kernel.  So started introducing this indirection as
  needed.  Currently, only read() and write() have been done;  the transition
  will be staged, since doing all syscalls in one hit is a total pain.

  This will also pave the way for scalar syscall arg checking with Memcheck,
  now that it is clear what the prototypes of the relevant syscalls are.

- Removed support for 2.2 kernels in the configure test, after discussion with
  Julian.  If it causes major problems, we can consider reverting.

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

21 years agox86 guest: reinstate specialisation of the flags thunk helper
Julian Seward [Mon, 8 Nov 2004 17:39:55 +0000 (17:39 +0000)] 
x86 guest: reinstate specialisation of the flags thunk helper
functions following recent flags thunk hackery.

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

21 years agoDon't silently ignore any suppression contexts beyond the 4th -- instead abort
Nicholas Nethercote [Mon, 8 Nov 2004 13:24:25 +0000 (13:24 +0000)] 
Don't silently ignore any suppression contexts beyond the 4th -- instead abort
with a warning.  Addresses part of bug #77922.

MERGE TO STABLE

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

21 years agox86 guest: majorly rehash eflags thunk scheme for a second time. See
Julian Seward [Mon, 8 Nov 2004 13:14:06 +0000 (13:14 +0000)] 
x86 guest: majorly rehash eflags thunk scheme for a second time.  See
detailed comment in priv/guest-x86/gdefs.h.  In short we move to a
4-word thunk so as to be able to present Memcheck with the data
dependencies we want, and at the same time allow iropt to easily
optimise away most of the helper calls that evaluate the thunk.
Hopefully this is the last change.

Comment in priv/guest-x86/gdefs.h also explains properly the
relationship between the thunk arrangements and how we expect Memcheck
to behave with respect to definedness of flags.

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

21 years agoAdd mkIRExprVec_5.
Julian Seward [Mon, 8 Nov 2004 13:10:44 +0000 (13:10 +0000)] 
Add mkIRExprVec_5.

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

21 years agoFill in more cases.
Julian Seward [Mon, 8 Nov 2004 13:08:53 +0000 (13:08 +0000)] 
Fill in more cases.

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

21 years agoWe need ever-more spill space ...
Julian Seward [Mon, 8 Nov 2004 13:08:25 +0000 (13:08 +0000)] 
We need ever-more spill space ...

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

21 years ago--trace-syscalls=yes wibble
Nicholas Nethercote [Mon, 8 Nov 2004 13:02:53 +0000 (13:02 +0000)] 
--trace-syscalls=yes wibble

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

21 years agoMemcheck: add helper functions to support 64-bit loads/stores. This
Julian Seward [Sun, 7 Nov 2004 18:46:22 +0000 (18:46 +0000)] 
Memcheck: add helper functions to support 64-bit loads/stores.  This
stuff all needs serious rethinking to make it work on 64-bit platforms
and on big-endian platforms.

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

21 years agox86 code generation for 64-bit integer stuff, required by Memchecking
Julian Seward [Sun, 7 Nov 2004 18:45:15 +0000 (18:45 +0000)] 
x86 code generation for 64-bit integer stuff, required by Memchecking
of floating point code.

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

21 years agoAdd very thorough string functions test from glibc.
Nicholas Nethercote [Sun, 7 Nov 2004 10:58:19 +0000 (10:58 +0000)] 
Add very thorough string functions test from glibc.

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

21 years agoImprove debug printing a bit.
Julian Seward [Sun, 7 Nov 2004 01:00:26 +0000 (01:00 +0000)] 
Improve debug printing a bit.

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

21 years agoInstall a bogus-literals hack a la old UCode scheme, but do not use
Julian Seward [Sun, 7 Nov 2004 00:57:46 +0000 (00:57 +0000)] 
Install a bogus-literals hack a la old UCode scheme, but do not use
it.  Instead, observe that all of the residual errors are from
stpcpy/strnlen in glibc.  Then observe that the redirect mechanism
seems to fail to redirect these to our "safe" equivalents.  Then,
finally realise that the redirect mechanism is defeated by vex's
cross-BB-chasing and specifically by chasing across function call
boundaries.

So, the good news is that giving --vex-guest-chase-thresh=0 makes all
these errors go away.  This should be straightforward to fix properly.

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

21 years agorm debug printing.
Julian Seward [Sat, 6 Nov 2004 17:02:03 +0000 (17:02 +0000)] 
rm debug printing.

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

21 years agoAdd more folding rules.
Julian Seward [Sat, 6 Nov 2004 17:01:15 +0000 (17:01 +0000)] 
Add more folding rules.

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

21 years agoMinor VKI_* fixups.
Nicholas Nethercote [Sat, 6 Nov 2004 16:31:43 +0000 (16:31 +0000)] 
Minor VKI_* fixups.

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

21 years agowhitespace changes only
Nicholas Nethercote [Sat, 6 Nov 2004 16:17:52 +0000 (16:17 +0000)] 
whitespace changes only

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

21 years agoFix nasty bug with 32HLto64.
Julian Seward [Sat, 6 Nov 2004 16:17:21 +0000 (16:17 +0000)] 
Fix nasty bug with 32HLto64.

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

21 years agoIncrease size of spill area.
Julian Seward [Sat, 6 Nov 2004 16:10:39 +0000 (16:10 +0000)] 
Increase size of spill area.

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

21 years agoFix 'make clean'.
Julian Seward [Sat, 6 Nov 2004 16:10:08 +0000 (16:10 +0000)] 
Fix 'make clean'.

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

21 years agoSome syscall improvements:
Nicholas Nethercote [Sat, 6 Nov 2004 15:38:43 +0000 (15:38 +0000)] 
Some syscall improvements:
- made pre_mem_read etc. calls more concise by improving the macros used
- made printing calls more concise by renaming the macro used
- updated README_MISSING_SYSCALL_OR_IOCTL
- improved --trace-syscalls=yes;  a bit neater, and now prints return values
  for all syscalls.
- introduced LOHI64 macro for 64-bit args that are created from 2 32-bit args
- 64-bit cleanness tweaks for *xattr* syscall printing

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

21 years agoRename a var to avoid nameclashes during standalone testing.
Julian Seward [Sat, 6 Nov 2004 14:22:03 +0000 (14:22 +0000)] 
Rename a var to avoid nameclashes during standalone testing.

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

21 years agoAdd a complete standalone copy of the memcheck instrumenter so it can
Julian Seward [Sat, 6 Nov 2004 14:20:54 +0000 (14:20 +0000)] 
Add a complete standalone copy of the memcheck instrumenter so it can
be valgrinded.

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

21 years agoDelete all the old UCode stuff.
Julian Seward [Sat, 6 Nov 2004 13:56:36 +0000 (13:56 +0000)] 
Delete all the old UCode stuff.

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

21 years agoTidy up, make readable, add comments. Does not change behaviour or
Julian Seward [Sat, 6 Nov 2004 13:51:48 +0000 (13:51 +0000)] 
Tidy up, make readable, add comments.  Does not change behaviour or
fix any problems.

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

21 years agoTry to make builds quieter.
Julian Seward [Sat, 6 Nov 2004 13:50:54 +0000 (13:50 +0000)] 
Try to make builds quieter.

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

21 years agoFix 'all' target to build nulgrind, lackey, addrcheck, memcheck.
Julian Seward [Sat, 6 Nov 2004 12:31:16 +0000 (12:31 +0000)] 
Fix 'all' target to build nulgrind, lackey, addrcheck, memcheck.

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

21 years agoMore fiddling in an attempt to make it work properly (so far
Julian Seward [Sat, 6 Nov 2004 12:27:15 +0000 (12:27 +0000)] 
More fiddling in an attempt to make it work properly (so far
unsuccessful):

* in clean helper calls, take notice of exclusion-mask (mcx_mask)
  specifying which args to ignore.  Seems to have no effect.

* Add Paul-Mackerras-style expensive-add.  Seems to have no effect.

* When doing a shadow PUT, do not complain if uninitialised data
  is written to guest state areas which are marked in the layout info
  as 'always defined'.  This seems to help reduce the false positive
  rate, because (in guest x86) the CC_AUX field of the flags thunk
  is sometimes given an undefined value (old C flag) when setting
  the thunk after inc/dec.  Since we assume that no compiler would
  examine the C flag after inc/dec unless it knew the C flag before it
  was defined (inc/dec do not change C), this is assumed to be safe.

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

21 years agox86 guest: update description of which guest state bits are always
Julian Seward [Sat, 6 Nov 2004 12:21:23 +0000 (12:21 +0000)] 
x86 guest: update description of which guest state bits are always
defined.

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

21 years agoIRCallee: add a mcx_mask field, through which front ends can pass
Julian Seward [Sat, 6 Nov 2004 12:17:57 +0000 (12:17 +0000)] 
IRCallee: add a mcx_mask field, through which front ends can pass
hints to Memcheck about which arguments in a helper call should be
ignored when it comes to computing lazy approximations of definedness
through that function.  Not sure if this mechanism needs to remain,
but for the time being ...

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

21 years agoFurther integration of baseblock stuff for shadow state. Get rid of
Julian Seward [Sat, 6 Nov 2004 12:14:43 +0000 (12:14 +0000)] 
Further integration of baseblock stuff for shadow state.  Get rid of
tons of now-irrelevant baseblock fields and offsets.  The layout
defined in coregrind/x86/state.c is now more or less (completely?)
target-independent: vex-defined guest state, vex-defined shadow guest
state, and vex-specified spill area.

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

21 years agoAnd-identity folding rule.
Julian Seward [Sat, 6 Nov 2004 12:10:04 +0000 (12:10 +0000)] 
And-identity folding rule.

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

21 years agoTrack Vex API changes.
Julian Seward [Sat, 6 Nov 2004 12:08:25 +0000 (12:08 +0000)] 
Track Vex API changes.

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

21 years agox86 guest: un-break handling of eflags after inc/dec.
Julian Seward [Fri, 5 Nov 2004 20:22:03 +0000 (20:22 +0000)] 
x86 guest: un-break handling of eflags after inc/dec.

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

21 years agoDebug printing wibble.
Julian Seward [Fri, 5 Nov 2004 20:21:27 +0000 (20:21 +0000)] 
Debug printing wibble.

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

21 years agoMake the 1.0.4 testbed work again.
Julian Seward [Fri, 5 Nov 2004 20:14:54 +0000 (20:14 +0000)] 
Make the 1.0.4 testbed work again.

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

21 years agoOops, forgot to commit this earlier.
Julian Seward [Fri, 5 Nov 2004 19:53:22 +0000 (19:53 +0000)] 
Oops, forgot to commit this earlier.

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

21 years agoMajor overhaul of x86 guest eflags handling, so as to make one
Julian Seward [Fri, 5 Nov 2004 19:49:09 +0000 (19:49 +0000)] 
Major overhaul of x86 guest eflags handling, so as to make one
specific word of the thunk (CC_RES) have all data dependencies on
result of the flag setting operation.  The delayed-flag mechanism is
thusly modified so as to prevent Memcheck from giving false positives.

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

21 years agoFix incorrect cast that was causing wrong output with --trace-syscalls=yes.
Nicholas Nethercote [Fri, 5 Nov 2004 14:57:08 +0000 (14:57 +0000)] 
Fix incorrect cast that was causing wrong output with --trace-syscalls=yes.

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

21 years agoRemove writev.stderr.exp3 -- not necessary if we pass -q to Valgrind.
Nicholas Nethercote [Fri, 5 Nov 2004 13:45:53 +0000 (13:45 +0000)] 
Remove writev.stderr.exp3 -- not necessary if we pass -q to Valgrind.

Add writev.stderr.exp2 to the Makefile.am so it gets included in the distro.

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

21 years agoMake the checking of poll() more accurate.
Nicholas Nethercote [Fri, 5 Nov 2004 12:02:27 +0000 (12:02 +0000)] 
Make the checking of poll() more accurate.

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

21 years agoOrder wibble
Nicholas Nethercote [Fri, 5 Nov 2004 11:09:53 +0000 (11:09 +0000)] 
Order wibble

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

21 years agoStart adding floating point stuff to memcheck.
Julian Seward [Fri, 5 Nov 2004 01:56:14 +0000 (01:56 +0000)] 
Start adding floating point stuff to memcheck.

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

21 years agoAdd new primop 1Sto16.
Julian Seward [Fri, 5 Nov 2004 01:55:46 +0000 (01:55 +0000)] 
Add new primop 1Sto16.

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

21 years agoFill in a few more cases.
Julian Seward [Thu, 4 Nov 2004 20:27:37 +0000 (20:27 +0000)] 
Fill in a few more cases.

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

21 years ago64-bit cleanness: some more.
Nicholas Nethercote [Thu, 4 Nov 2004 20:00:44 +0000 (20:00 +0000)] 
64-bit cleanness: some more.

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

21 years ago64-bit cleanness: fix the memory arg of socketcall syscalls.
Nicholas Nethercote [Thu, 4 Nov 2004 19:57:03 +0000 (19:57 +0000)] 
64-bit cleanness: fix the memory arg of socketcall syscalls.

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

21 years agoVarious plumbing to allow the optimiser (really, just a subset) to be
Julian Seward [Thu, 4 Nov 2004 19:44:48 +0000 (19:44 +0000)] 
Various plumbing to allow the optimiser (really, just a subset) to be
run post-instrumentation.

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

21 years agoSilence compiler warning.
Julian Seward [Thu, 4 Nov 2004 19:43:51 +0000 (19:43 +0000)] 
Silence compiler warning.

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

21 years agowhitespace wibbles
Nicholas Nethercote [Thu, 4 Nov 2004 19:43:22 +0000 (19:43 +0000)] 
whitespace wibbles

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

21 years agoVarious folding rules to clean up the IR made by Memcheck.
Julian Seward [Thu, 4 Nov 2004 19:42:59 +0000 (19:42 +0000)] 
Various folding rules to clean up the IR made by Memcheck.

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

21 years agoDo a few more cases.
Julian Seward [Thu, 4 Nov 2004 19:41:09 +0000 (19:41 +0000)] 
Do a few more cases.

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

21 years agoMake computations more understandable.
Nicholas Nethercote [Thu, 4 Nov 2004 19:40:59 +0000 (19:40 +0000)] 
Make computations more understandable.

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

21 years agocomment wibble
Nicholas Nethercote [Thu, 4 Nov 2004 19:39:14 +0000 (19:39 +0000)] 
comment wibble

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

21 years agoMore minor 64-bit cleanness tweaks.
Nicholas Nethercote [Thu, 4 Nov 2004 19:38:14 +0000 (19:38 +0000)] 
More minor 64-bit cleanness tweaks.

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

21 years agoComment/formatting wibbles.
Nicholas Nethercote [Thu, 4 Nov 2004 19:33:51 +0000 (19:33 +0000)] 
Comment/formatting wibbles.

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

21 years agoMake size calculation more robust.
Nicholas Nethercote [Thu, 4 Nov 2004 19:32:10 +0000 (19:32 +0000)] 
Make size calculation more robust.

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

21 years ago64-bit cleanness tweak.
Nicholas Nethercote [Thu, 4 Nov 2004 19:29:06 +0000 (19:29 +0000)] 
64-bit cleanness tweak.

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

21 years agoFormatting wibbles.
Nicholas Nethercote [Thu, 4 Nov 2004 19:28:38 +0000 (19:28 +0000)] 
Formatting wibbles.

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

21 years ago64-bit cleanness: fix up types in libpthread.c.
Nicholas Nethercote [Thu, 4 Nov 2004 19:11:19 +0000 (19:11 +0000)] 
64-bit cleanness: fix up types in libpthread.c.

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

21 years agoGet rid of compile errors and warnings (ahem).
Nicholas Nethercote [Thu, 4 Nov 2004 19:10:43 +0000 (19:10 +0000)] 
Get rid of compile errors and warnings (ahem).

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

21 years ago64-bit cleanness wibbles.
Nicholas Nethercote [Thu, 4 Nov 2004 18:56:47 +0000 (18:56 +0000)] 
64-bit cleanness wibbles.

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

21 years agoArch-abstraction: factor out a use of mmap() appropriately.
Nicholas Nethercote [Thu, 4 Nov 2004 18:45:22 +0000 (18:45 +0000)] 
Arch-abstraction: factor out a use of mmap() appropriately.

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

21 years ago64-bit cleanness: introduced OffT type for off_t, used it in a few important
Nicholas Nethercote [Thu, 4 Nov 2004 18:39:22 +0000 (18:39 +0000)] 
64-bit cleanness: introduced OffT type for off_t, used it in a few important
places.

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

21 years agox86 back end: clear up confusion over which registers carry which
Julian Seward [Thu, 4 Nov 2004 18:25:33 +0000 (18:25 +0000)] 
x86 back end: clear up confusion over which registers carry which
arguments in regparm(2) calls.  This makes memcheck work much better.

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

21 years ago64-bit cleanness: convert client requests to receive and return UWords.
Nicholas Nethercote [Thu, 4 Nov 2004 18:22:28 +0000 (18:22 +0000)] 
64-bit cleanness: convert client requests to receive and return UWords.

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

21 years ago64-bit cleanness: lots more replacing of UInt with UWord as necessary.
Nicholas Nethercote [Thu, 4 Nov 2004 18:03:06 +0000 (18:03 +0000)] 
64-bit cleanness: lots more replacing of UInt with UWord as necessary.

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

21 years ago64-bit cleanness: fix some more pointer casts to UInt.
Nicholas Nethercote [Thu, 4 Nov 2004 17:24:57 +0000 (17:24 +0000)] 
64-bit cleanness: fix some more pointer casts to UInt.

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

21 years agoFormat wibbles.
Nicholas Nethercote [Thu, 4 Nov 2004 17:10:24 +0000 (17:10 +0000)] 
Format wibbles.

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

21 years ago64-bit cleanness: convert some (UInt) casts of pointers to (UWord) casts.
Nicholas Nethercote [Thu, 4 Nov 2004 17:02:42 +0000 (17:02 +0000)] 
64-bit cleanness: convert some (UInt) casts of pointers to (UWord) casts.
Also, remove some unnecessary (UInt) casts of integers.

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

21 years agoFix compile warnings.
Julian Seward [Thu, 4 Nov 2004 16:59:37 +0000 (16:59 +0000)] 
Fix compile warnings.

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

21 years agoAdd a couple more primops needed by Memcheck.
Julian Seward [Thu, 4 Nov 2004 16:57:50 +0000 (16:57 +0000)] 
Add a couple more primops needed by Memcheck.

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

21 years agoFix enough stuff to make 'ls' work.
Julian Seward [Thu, 4 Nov 2004 16:56:29 +0000 (16:56 +0000)] 
Fix enough stuff to make 'ls' work.

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

21 years ago64-bit cleanness: make the hash-table have UWord keys instead of UInt keys.
Nicholas Nethercote [Thu, 4 Nov 2004 16:39:43 +0000 (16:39 +0000)] 
64-bit cleanness: make the hash-table have UWord keys instead of UInt keys.
Allows addresses as keys.

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

21 years agoChanged to be consistant with the rest of the files
Benjamin Meyer [Thu, 4 Nov 2004 16:16:59 +0000 (16:16 +0000)] 
Changed to be consistant with the rest of the files

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

21 years agoFill in a whole bunch more cases.
Julian Seward [Thu, 4 Nov 2004 15:21:04 +0000 (15:21 +0000)] 
Fill in a whole bunch more cases.

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

21 years agoFill in a few more Memcheck-supporting cases.
Julian Seward [Thu, 4 Nov 2004 15:20:15 +0000 (15:20 +0000)] 
Fill in a few more Memcheck-supporting cases.

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

21 years ago64-bit cleanness: replace hard-wired 0xffffffff literals with something less
Nicholas Nethercote [Thu, 4 Nov 2004 13:49:28 +0000 (13:49 +0000)] 
64-bit cleanness: replace hard-wired 0xffffffff literals with something less
32-bit-specific.

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

21 years agoAdd support for the settimeofday system call.
Tom Hughes [Thu, 4 Nov 2004 13:20:13 +0000 (13:20 +0000)] 
Add support for the settimeofday system call.

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

21 years ago64-bit cleanness: Yet more UInt-->SizeT changes.
Nicholas Nethercote [Wed, 3 Nov 2004 18:10:37 +0000 (18:10 +0000)] 
64-bit cleanness: Yet more UInt-->SizeT changes.

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

21 years ago64-bit cleanness: More UInt-->SizeT changes.
Nicholas Nethercote [Wed, 3 Nov 2004 17:07:46 +0000 (17:07 +0000)] 
64-bit cleanness: More UInt-->SizeT changes.

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

21 years agoMake the x86 back end capable of generating conditional calls.
Julian Seward [Wed, 3 Nov 2004 15:24:42 +0000 (15:24 +0000)] 
Make the x86 back end capable of generating conditional calls.

NOTE, the argument marshalling for regparm'd calls is observed to
be wrong.  Arguments are computed directly into the real registers,
thus trashing themselves if a regparm-call should be contained in
an argument to another regparm-call.

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

21 years agoFix many more cases.
Julian Seward [Wed, 3 Nov 2004 15:22:25 +0000 (15:22 +0000)] 
Fix many more cases.

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

21 years agoFirst pass at Memcheck.
Julian Seward [Wed, 3 Nov 2004 09:10:30 +0000 (09:10 +0000)] 
First pass at Memcheck.

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

21 years agoremove pointless #define
Julian Seward [Wed, 3 Nov 2004 09:10:08 +0000 (09:10 +0000)] 
remove pointless #define

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

21 years agoChanges to support Memcheck:
Julian Seward [Wed, 3 Nov 2004 09:08:33 +0000 (09:08 +0000)] 
Changes to support Memcheck:

* Pass host word type to instrumentation functions
* irdefs.c: add beginnings of proper sanity checking for flatness
* refine guest-state-layout stuff
* new primop Iop_1Sto32

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

21 years ago64-bit cleanness:
Nicholas Nethercote [Tue, 2 Nov 2004 13:29:50 +0000 (13:29 +0000)] 
64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.

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

21 years ago64-bit cleanness:
Nicholas Nethercote [Tue, 2 Nov 2004 13:06:32 +0000 (13:06 +0000)] 
64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.

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

21 years ago64-bit cleanness: Converted malloc() et al to use SizeT rather than Int.
Nicholas Nethercote [Tue, 2 Nov 2004 12:36:02 +0000 (12:36 +0000)] 
64-bit cleanness: Converted malloc() et al to use SizeT rather than Int.
This required some tricks with casting to maintain Memcheck's silly (ie.
negative) arg checking.  The allocator was also changed accordingly. It
should now be able to allocate more than 4GB blocks on 64-bit platforms.

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

21 years agoRewrite and concisify addrcheck's instrumentation function, and fill
Julian Seward [Tue, 2 Nov 2004 11:16:02 +0000 (11:16 +0000)] 
Rewrite and concisify addrcheck's instrumentation function, and fill
in missing cases.  I think addrcheck should be able to run anything at
all now.

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

21 years agoMake sure we are using perl 5.6.0 as earlier versions won't work.
Tom Hughes [Tue, 2 Nov 2004 09:49:19 +0000 (09:49 +0000)] 
Make sure we are using perl 5.6.0 as earlier versions won't work.

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

21 years agoUse -w instead of "use warnings" to enable warnings so that older
Tom Hughes [Tue, 2 Nov 2004 09:45:21 +0000 (09:45 +0000)] 
Use -w instead of "use warnings" to enable warnings so that older
versions of perl can handle the script.

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