]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
19 years agoglibc 2.6 support
Dirk Mueller [Wed, 23 May 2007 17:39:08 +0000 (17:39 +0000)] 
glibc 2.6 support

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

19 years agoClarify --trace-children a little.
Nicholas Nethercote [Tue, 15 May 2007 03:59:23 +0000 (03:59 +0000)] 
Clarify --trace-children a little.

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

19 years agoUpdate svn:ignore properties.
Robert Walsh [Mon, 14 May 2007 01:55:34 +0000 (01:55 +0000)] 
Update svn:ignore properties.

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

19 years agoUpdate
Josef Weidendorfer [Tue, 8 May 2007 12:07:52 +0000 (12:07 +0000)] 
Update

Not really a bug, but the callgrind doc improvement is useful
on the 3.2 branch as well.

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

19 years agoCallgrind: improve documentation
Josef Weidendorfer [Tue, 8 May 2007 11:58:23 +0000 (11:58 +0000)] 
Callgrind: improve documentation

* Looks a little bit more like the Cachegrind manual
  (at least in front)
* Removed the out-of-place general section about profiling
  and gprof. Perhaps something like this can be put at
  another place
* Notes about Callgrinds problems with call tracing on PPC
* Include usage of callgrind_annotate, and note its lack of
  cycle detection

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

19 years agoAdd branch-misprediction profiling to Cachegrind. When the (new) flag
Julian Seward [Tue, 8 May 2007 09:20:25 +0000 (09:20 +0000)] 
Add branch-misprediction profiling to Cachegrind.  When the (new) flag
--branch-sim=yes is specified, Cachegrind simulates a simple indirect
branch predictor and a conditional branch predictor.  The latter
considers both the branch instruction's address and the behaviour of
the last few conditional branches.  Return stack prediction is not
modelled.

The new counted events are: conditional branches (Bc), mispredicted
conditional branches (Bcm), indirect branches (Bi) and mispredicted
indirect branches (Bim).  Postprocessing tools (cg_annotate, cg_merge)
handle the new events as you would expect.  Note that branch
simulation is not enabled by default as it gives a 20%-25% slowdown,
so you need to ask for it explicitly using --branch-sim=yes.

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

19 years agoUpdate.
Julian Seward [Sun, 6 May 2007 11:28:18 +0000 (11:28 +0000)] 
Update.

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

19 years agoOops. Fix longstanding bug which will have caused an unnecessary 4M
Julian Seward [Sat, 5 May 2007 12:26:23 +0000 (12:26 +0000)] 
Oops.  Fix longstanding bug which will have caused an unnecessary 4M
of bss space to be allocated.

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

19 years agoFix stack overflow which lead to totally mysterious .bss corruption
Julian Seward [Sat, 5 May 2007 11:40:35 +0000 (11:40 +0000)] 
Fix stack overflow which lead to totally mysterious .bss corruption
and hence to segfaulting in vex on ppc32/64-linux in obscure
circumstances.  VKI_MAX_PAGE_SIZE is 64k in recent Valgrinds.

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

19 years agoHandle x87 FCOMP.
Julian Seward [Fri, 4 May 2007 09:41:24 +0000 (09:41 +0000)] 
Handle x87 FCOMP.

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

19 years agoOlder assemblers on amd64-linux don't do lahf/sahf; work around that.
Julian Seward [Thu, 3 May 2007 21:25:37 +0000 (21:25 +0000)] 
Older assemblers on amd64-linux don't do lahf/sahf; work around that.

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

19 years agoFix regression in new/new[]/delete/delete[] intercepts for gcc-2.96.
Julian Seward [Wed, 2 May 2007 16:24:30 +0000 (16:24 +0000)] 
Fix regression in new/new[]/delete/delete[] intercepts for gcc-2.96.

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

19 years agoAvoid compilation warnings with gcc-4.2.
Julian Seward [Tue, 1 May 2007 14:18:48 +0000 (14:18 +0000)] 
Avoid compilation warnings with gcc-4.2.

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

19 years agoStop gcc-4.2 producing hundreds of complaints of the form "warning:
Julian Seward [Tue, 1 May 2007 13:53:01 +0000 (13:53 +0000)] 
Stop gcc-4.2 producing hundreds of complaints of the form "warning:
cast from pointer to integer of different size" when compiling on a
64-bit target.  gcc-4.2 is correct to complain.  An interesting
question is why no previous gcc warned about this.

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

19 years agoIf gcc supports -fno-stack-protector, use it. This should fix
Julian Seward [Tue, 1 May 2007 13:44:08 +0000 (13:44 +0000)] 
If gcc supports -fno-stack-protector, use it.  This should fix
compilation failures on distros where -fstack-protector is enabled by
default.  See #144112.

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

19 years agoUpdate.
Julian Seward [Tue, 1 May 2007 09:19:29 +0000 (09:19 +0000)] 
Update.

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

19 years agoAdd disclaimers.
Julian Seward [Sun, 29 Apr 2007 09:06:40 +0000 (09:06 +0000)] 
Add disclaimers.

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

19 years agoaugment previous commit
Nicholas Nethercote [Fri, 20 Apr 2007 02:15:28 +0000 (02:15 +0000)] 
augment previous commit

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

19 years agoIt's generally a good idea to set call-by-reference arguments, especially
Nicholas Nethercote [Thu, 19 Apr 2007 23:35:42 +0000 (23:35 +0000)] 
It's generally a good idea to set call-by-reference arguments, especially
when the function comments says that they always are set.

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

19 years agowrap env related functions to be able to track undefined
Dirk Mueller [Thu, 19 Apr 2007 09:47:32 +0000 (09:47 +0000)] 
wrap env related functions to be able to track undefined
values better

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

19 years agoFix some copyright notices:
Nicholas Nethercote [Sun, 15 Apr 2007 22:15:57 +0000 (22:15 +0000)] 
Fix some copyright notices:
- extend some to 2007
- use njn@valgrind.org instead of njn25@cam.ac.uk
- use "tool" instead of "skin"

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

19 years agoWhen doing 'demo' translations for --profile-flags=, make at least
Julian Seward [Mon, 9 Apr 2007 22:24:57 +0000 (22:24 +0000)] 
When doing 'demo' translations for --profile-flags=, make at least
some attempt to discard existing translations first.  Otherwise
Cachegrind (rightly) asserts on the basis that it is seeing duplicate
translation requests for the same entry point.

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

19 years agoUpdate.
Julian Seward [Sat, 7 Apr 2007 14:46:45 +0000 (14:46 +0000)] 
Update.

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

19 years agoFix out of date comment.
Julian Seward [Sat, 7 Apr 2007 14:46:13 +0000 (14:46 +0000)] 
Fix out of date comment.

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

19 years agoImplement lahf/sahf on amd64. Also set NDEP on x86 sahf. Fixes #143907.
Julian Seward [Sat, 7 Apr 2007 12:25:37 +0000 (12:25 +0000)] 
Implement lahf/sahf on amd64.  Also set NDEP on x86 sahf.  Fixes #143907.

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

19 years agoTest sahf/lahf on amd64.
Julian Seward [Sat, 7 Apr 2007 12:15:44 +0000 (12:15 +0000)] 
Test sahf/lahf on amd64.

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

19 years agoFix various cases where the instruction decoder asserted/paniced
Julian Seward [Thu, 5 Apr 2007 15:06:56 +0000 (15:06 +0000)] 
Fix various cases where the instruction decoder asserted/paniced
instead of doing the normal SIGILL thing.  Fixes #143354.

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

19 years agoHandle some more types: {REAL,INTEGER}{4,8} and 2INT. Also a change
Julian Seward [Thu, 5 Apr 2007 00:35:20 +0000 (00:35 +0000)] 
Handle some more types: {REAL,INTEGER}{4,8} and 2INT.  Also a change
to reduce the number of error messages printed if there is an
unhandled type.

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

19 years agoFold Add8(t,t) ==> t << 1. Fixes #143817 (Unused bitfield pad bits
Julian Seward [Wed, 4 Apr 2007 22:48:06 +0000 (22:48 +0000)] 
Fold Add8(t,t) ==> t << 1.  Fixes #143817 (Unused bitfield pad bits
confuse memcheck)

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

19 years agoExplicitly zero CCs. It's already being done by VG_(OSet_AllocNode), but
Nicholas Nethercote [Mon, 2 Apr 2007 03:11:41 +0000 (03:11 +0000)] 
Explicitly zero CCs.  It's already being done by VG_(OSet_AllocNode), but
that's more by chance than design.

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

19 years agoCounterpart to r1745: teach the amd64 back end how to generate 'lea'
Julian Seward [Sat, 31 Mar 2007 19:12:38 +0000 (19:12 +0000)] 
Counterpart to r1745: teach the amd64 back end how to generate 'lea'
instructions, and generate them in an important place.

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

19 years agoTeach the x86 back end how generate 'lea' instructions, and generate
Julian Seward [Sat, 31 Mar 2007 14:30:12 +0000 (14:30 +0000)] 
Teach the x86 back end how generate 'lea' instructions, and generate
them in a couple of places which are important.  This reduces the
amount of generated code for memcheck and none by about 1%, and (in
very unscientific tests on perf/bz2) speeds memcheck up by about 1%.

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

19 years agoTest some Fortran types.
Julian Seward [Thu, 29 Mar 2007 16:35:00 +0000 (16:35 +0000)] 
Test some Fortran types.

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

19 years agoadd a comment
Nicholas Nethercote [Wed, 28 Mar 2007 12:16:55 +0000 (12:16 +0000)] 
add a comment

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

19 years agoRemove duplicate code -- make XArray use VG_(ssort).
Nicholas Nethercote [Wed, 28 Mar 2007 01:27:05 +0000 (01:27 +0000)] 
Remove duplicate code -- make XArray use VG_(ssort).

Had to change XArray's comparison function to return an Int rather than a
Word so it's consistent with the rest of the world.

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

19 years agoupdate
Nicholas Nethercote [Tue, 27 Mar 2007 07:43:51 +0000 (07:43 +0000)] 
update

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

19 years agoAugment a comment.
Nicholas Nethercote [Tue, 27 Mar 2007 07:41:33 +0000 (07:41 +0000)] 
Augment a comment.

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

19 years agoclarify comment
Nicholas Nethercote [Tue, 27 Mar 2007 06:46:03 +0000 (06:46 +0000)] 
clarify comment

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

19 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 23:53:25 +0000 (23:53 +0000)] 
update

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

19 years agoFix bug 142491: allow more --alloc-fn functions (128, up from 32).
Nicholas Nethercote [Mon, 26 Mar 2007 23:51:29 +0000 (23:51 +0000)] 
Fix bug 142491: allow more --alloc-fn functions (128, up from 32).

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

19 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 23:45:19 +0000 (23:45 +0000)] 
update

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

19 years agoFix bug 142197: don't free --toolname:foo options after they've been munged,
Nicholas Nethercote [Mon, 26 Mar 2007 23:38:42 +0000 (23:38 +0000)] 
Fix bug 142197: don't free --toolname:foo options after they've been munged,
because tools should be able to assume that they are never freed, just like
other options.

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

19 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 22:12:58 +0000 (22:12 +0000)] 
update

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

19 years agoFix 142488: don't read ./.valgrindrc if CWD==HOME.
Nicholas Nethercote [Mon, 26 Mar 2007 22:05:30 +0000 (22:05 +0000)] 
Fix 142488: don't read ./.valgrindrc if CWD==HOME.

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

19 years agoAdd a variant of gsl16test which handles the newer gsl-1.9 package.
Julian Seward [Mon, 26 Mar 2007 15:27:01 +0000 (15:27 +0000)] 
Add a variant of gsl16test which handles the newer gsl-1.9 package.

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

19 years agoAdd assertion + comment to a loop using VG_(getcwd).
Julian Seward [Mon, 26 Mar 2007 15:23:20 +0000 (15:23 +0000)] 
Add assertion + comment to a loop using VG_(getcwd).

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

19 years agoUpdate slightly.
Julian Seward [Mon, 26 Mar 2007 02:11:17 +0000 (02:11 +0000)] 
Update slightly.

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

19 years agox86 back end: use 80-bit loads/stores for floating point spills rather
Julian Seward [Sun, 25 Mar 2007 04:14:58 +0000 (04:14 +0000)] 
x86 back end: use 80-bit loads/stores for floating point spills rather
than 64-bit ones, to reduce accuracy loss.  To support this, in
reg-alloc, allocate 2 64-bit spill slots for each HRcFlt64 vreg
instead of just 1.

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

19 years agoMore info about the VEX changes.
Nicholas Nethercote [Thu, 22 Mar 2007 20:58:50 +0000 (20:58 +0000)] 
More info about the VEX changes.

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

19 years agoDon't build SSE3 tests if the configure test determined that the assembler
Julian Seward [Thu, 22 Mar 2007 12:13:13 +0000 (12:13 +0000)] 
Don't build SSE3 tests if the configure test determined that the assembler
does not know about SSE3 instructions.

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

19 years agoClarify the "out of memory" message.
Nicholas Nethercote [Thu, 22 Mar 2007 03:36:55 +0000 (03:36 +0000)] 
Clarify the "out of memory" message.

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

19 years agoOlder assemblers don't speak SSE3. Add a configure test for it.
Julian Seward [Thu, 22 Mar 2007 00:24:21 +0000 (00:24 +0000)] 
Older assemblers don't speak SSE3.  Add a configure test for it.

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

19 years agoUnbreak the build on ppc64-linux.
Julian Seward [Wed, 21 Mar 2007 02:27:38 +0000 (02:27 +0000)] 
Unbreak the build on ppc64-linux.

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

19 years agoamd64 equivalents of vx1742 (synthesise SIGILL in the normal way for
Julian Seward [Wed, 21 Mar 2007 00:21:56 +0000 (00:21 +0000)] 
amd64 equivalents of vx1742 (synthesise SIGILL in the normal way for
some obscure invalid instruction cases, rather than asserting)

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

19 years agox86 front end: synthesise SIGILL in the normal way for some obscure
Julian Seward [Tue, 20 Mar 2007 14:18:45 +0000 (14:18 +0000)] 
x86 front end: synthesise SIGILL in the normal way for some obscure
invalid instruction cases, rather than asserting, as happened in
#143079 and #142279.  amd64 equivalents to follow.

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

19 years agoMake ptrace-based launchers able to handle --help, --version etc.
Julian Seward [Mon, 19 Mar 2007 18:38:55 +0000 (18:38 +0000)] 
Make ptrace-based launchers able to handle --help, --version etc.
Problem is that --help etc are handled by the tool exe.  But a
ptrace-based launch scheme can't run "no program" if the user just
types "valgrind --help" because the launcher depends on starting the
client first and only then attaching valgrind to it using ptrace.  So
instead provide a dummy do-nothing program to run when no program is
specified.  m_main notices this and acts as if there really had been
no program specified.

This has no effect at all on Linux/ELF program launching.

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

19 years agoFollowup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.
Julian Seward [Mon, 19 Mar 2007 15:29:23 +0000 (15:29 +0000)] 
Followup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.

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

19 years agoFollowup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.
Julian Seward [Mon, 19 Mar 2007 14:34:08 +0000 (14:34 +0000)] 
Followup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.

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

19 years agoDocument and tidy up one of the more arcane corners of signal
Julian Seward [Mon, 19 Mar 2007 13:38:11 +0000 (13:38 +0000)] 
Document and tidy up one of the more arcane corners of signal
handling: why PRE(sys_sigreturn) has to construct a fake syscall
return value which, when written back to the guest state, leaves it
unchanged.  It's only taken me about 3 years to realise why :-)
Fixes to ppc platforms to follow.

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

19 years agoUse a 64-bit counter to keep track of the total number of bytes
Julian Seward [Wed, 14 Mar 2007 11:57:37 +0000 (11:57 +0000)] 
Use a 64-bit counter to keep track of the total number of bytes
allocated, rather than SizeT which is word-sized.  Your average C++
lardware can easily turn over more than 4G in total in a half hour run
on a 32-bit machine, in which case the counter wraps around.

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

19 years agoBack out r6640; I'm pretty sure it is the wrong thing to do now.
Julian Seward [Wed, 14 Mar 2007 11:55:28 +0000 (11:55 +0000)] 
Back out r6640; I'm pretty sure it is the wrong thing to do now.

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

19 years agoTidy up a lot
Julian Seward [Mon, 12 Mar 2007 15:10:59 +0000 (15:10 +0000)] 
Tidy up a lot

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

19 years agoMore redhat8 suppressions.
Julian Seward [Mon, 12 Mar 2007 14:53:58 +0000 (14:53 +0000)] 
More redhat8 suppressions.

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

19 years agoAdd a test for vex ppc64 code generation bug fixed by vex r1739
Julian Seward [Mon, 12 Mar 2007 02:10:23 +0000 (02:10 +0000)] 
Add a test for vex ppc64 code generation bug fixed by vex r1739
(When generating 64-bit code, ensure that any addresses used in 4 or 8
byte loads or stores of the form reg+imm have the lowest 2 bits of imm
set to zero, so that they can safely be used in ld/ldu/lda/std/stdu
instructions.)

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

19 years agoAdd a custom stderr filter for memcheck/tests/amd64/defcfaexpr.
Julian Seward [Mon, 12 Mar 2007 01:29:31 +0000 (01:29 +0000)] 
Add a custom stderr filter for memcheck/tests/amd64/defcfaexpr.

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

19 years agoSupport 'INT $3' instruction on amd64 (counterpart to vx1736).
Julian Seward [Mon, 12 Mar 2007 00:43:59 +0000 (00:43 +0000)] 
Support 'INT $3' instruction on amd64 (counterpart to vx1736).

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

19 years agoAdd a test for int3 on x86 (from Peter Maydell)
Julian Seward [Mon, 12 Mar 2007 00:42:26 +0000 (00:42 +0000)] 
Add a test for int3 on x86 (from Peter Maydell)

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

19 years agoAdd a test for int3 on amd64 (from Peter Maydell)
Julian Seward [Mon, 12 Mar 2007 00:27:30 +0000 (00:27 +0000)] 
Add a test for int3 on amd64 (from Peter Maydell)

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

19 years agoTolerate redundant REX.W prefix produced by Mono for 'fsqrt' (a lame
Julian Seward [Sun, 11 Mar 2007 19:34:13 +0000 (19:34 +0000)] 
Tolerate redundant REX.W prefix produced by Mono for 'fsqrt' (a lame
kludge).

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

19 years agoHandle sys_ioprio_set on amd64-linux.
Julian Seward [Sun, 11 Mar 2007 19:28:02 +0000 (19:28 +0000)] 
Handle sys_ioprio_set on amd64-linux.

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

19 years agoIt appears glibc-2.5's getenv() function steps along environment
Julian Seward [Sun, 11 Mar 2007 13:00:34 +0000 (13:00 +0000)] 
It appears glibc-2.5's getenv() function steps along environment
strings in 16-bit chunks, which can cause false errors in some cases
(sigh).  So do the usual thing and replace it.

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

19 years agowibble
Nicholas Nethercote [Sat, 10 Mar 2007 02:27:44 +0000 (02:27 +0000)] 
wibble

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

19 years agoupdate
Nicholas Nethercote [Sat, 10 Mar 2007 00:52:54 +0000 (00:52 +0000)] 
update

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

19 years agoWhen generating 64-bit code, ensure that any addresses used in 4 or 8
Julian Seward [Fri, 9 Mar 2007 18:07:00 +0000 (18:07 +0000)] 
When generating 64-bit code, ensure that any addresses used in 4 or 8
byte loads or stores of the form reg+imm have the lowest 2 bits of imm
set to zero, so that they can safely be used in ld/ldu/lda/std/stdu
instructions.  This boils down to doing an extra check in
iselWordExpr_AMode and avoiding the reg+imm case in cases where the
amode might end up in any of the abovementioned instructions.

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

19 years agoComment-only changes.
Julian Seward [Fri, 9 Mar 2007 14:24:38 +0000 (14:24 +0000)] 
Comment-only changes.

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

19 years agoUpdate.
Julian Seward [Thu, 8 Mar 2007 19:57:43 +0000 (19:57 +0000)] 
Update.

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

19 years agoRecord which SuSE 10.1 packages are needed for a successful 'make dist'.
Julian Seward [Thu, 8 Mar 2007 19:56:58 +0000 (19:56 +0000)] 
Record which SuSE 10.1 packages are needed for a successful 'make dist'.

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

19 years agoGenerate valid XML (conforming to docs/internals/xml-output.txt) even
Julian Seward [Thu, 8 Mar 2007 19:56:14 +0000 (19:56 +0000)] 
Generate valid XML (conforming to docs/internals/xml-output.txt) even
when VG_(name_of_launcher) is NULL.

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

19 years agoHorrible hacks to make 'make dist' work properly. Previously it only
Julian Seward [Thu, 8 Mar 2007 01:52:37 +0000 (01:52 +0000)] 
Horrible hacks to make 'make dist' work properly.  Previously it only
worked on systems when the configure script found a usable mpicc,
bizarrely.

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

19 years agoUpdate bug status file.
Tom Hughes [Wed, 7 Mar 2007 11:14:22 +0000 (11:14 +0000)] 
Update bug status file.

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

19 years agoAdd support for linux key management system calls.
Tom Hughes [Wed, 7 Mar 2007 11:12:13 +0000 (11:12 +0000)] 
Add support for linux key management system calls.
Based on patch from Ezra Peisach <epeisach@bu.edu>.
Fixes bug #139300.

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

19 years agoAdd support for some I2C ioctls.
Tom Hughes [Wed, 7 Mar 2007 10:07:13 +0000 (10:07 +0000)] 
Add support for some I2C ioctls.
Based on patch from Jean Delvare <khali@linux-fr.org>.
Fixes bug #142186.

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

19 years agoHandle some additional ptrace reason codes. Based on a patch
Tom Hughes [Wed, 7 Mar 2007 09:48:32 +0000 (09:48 +0000)] 
Handle some additional ptrace reason codes. Based on a patch
from Magnus Vesterlund <magnus_vesterlund@hotmail.com>.

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

19 years agoHandle the (bizarre) no-op "26 2E 64 65 90 %es:%cs:%fs:%gs:nop". This
Julian Seward [Thu, 1 Mar 2007 18:42:07 +0000 (18:42 +0000)] 
Handle the (bizarre) no-op "26 2E 64 65 90 %es:%cs:%fs:%gs:nop".  This
makes it possible to run Sun's JVM 1.5.0 on Valgrind.

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

19 years agoSupport 'INT $3' instruction.
Julian Seward [Wed, 28 Feb 2007 23:31:42 +0000 (23:31 +0000)] 
Support 'INT $3' instruction.

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

19 years agoUpdate.
Julian Seward [Wed, 28 Feb 2007 14:10:43 +0000 (14:10 +0000)] 
Update.

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

19 years agoAdd a regression test for unwind handling of DW_CFA_def_cfa_expression.
Julian Seward [Wed, 28 Feb 2007 13:27:37 +0000 (13:27 +0000)] 
Add a regression test for unwind handling of DW_CFA_def_cfa_expression.

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

19 years agoHandle DW_CFA_def_cfa_expression; also DW_OP_mul.
Julian Seward [Wed, 28 Feb 2007 13:03:27 +0000 (13:03 +0000)] 
Handle DW_CFA_def_cfa_expression; also DW_OP_mul.

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

19 years agoFill in a few more DWARF3 'expression' related cases.
Julian Seward [Wed, 28 Feb 2007 01:46:30 +0000 (01:46 +0000)] 
Fill in a few more DWARF3 'expression' related cases.

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

19 years agoTrack recent XArray changes.
Julian Seward [Tue, 27 Feb 2007 22:36:14 +0000 (22:36 +0000)] 
Track recent XArray changes.

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

19 years agoupdate
Nicholas Nethercote [Tue, 27 Feb 2007 22:31:45 +0000 (22:31 +0000)] 
update

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

19 years agoBarf more elegantly.
Julian Seward [Tue, 27 Feb 2007 18:38:33 +0000 (18:38 +0000)] 
Barf more elegantly.

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

19 years agoAdd .eh_frame gunk for VG_(amd64_linux_REDIR_FOR_vgettimeofday) and
Julian Seward [Tue, 27 Feb 2007 18:37:21 +0000 (18:37 +0000)] 
Add .eh_frame gunk for VG_(amd64_linux_REDIR_FOR_vgettimeofday) and
VG_(amd64_linux_REDIR_FOR_vgettimeofday) so they can participate in
stack unwinding.

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

19 years agoMake the leb readers 64-bit clean. That should guard against another
Julian Seward [Tue, 27 Feb 2007 17:43:43 +0000 (17:43 +0000)] 
Make the leb readers 64-bit clean.  That should guard against another
couple of decades of Moore's law.

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

19 years agoAdd limited support for DWARF3 'expressions' in stack-unwind (CFI)
Julian Seward [Tue, 27 Feb 2007 16:52:23 +0000 (16:52 +0000)] 
Add limited support for DWARF3 'expressions' in stack-unwind (CFI)
info (DW_CFA_def_cfa_expression, DW_CFA_expression,
DW_CFA_val_expression).  Mechanism to support all of these is in place
although only DW_CFA_val_expression is currently connected up.

This is really nasty.  The basic idea is to partially evaluate each
expression at the debuginfo-reading time by running it on a stack
machine in which each stack element is an expression tree.  If the
expression can be 'run' successfully, the tree (dag, really) remaining
at the top of the stack is massaged and put into the DiCfSI record for
that address range.  At unwind time the tree is evaluated if needed.
Such cases are in fact extremely rare and so the vast majority of
unwindings use the same mechanism as before.

As a result of all this:

* some obscure cases in glibc-2.5's libpthread.so unwind when they
  didn't before

* --debug-dump=frames produces identical output to that of readelf
  for libc-2.5.so and associated libpthread.so

* All the action centers around the new type CfiExpr, which is a
  union expression-tree type in the same style as IRExpr et al

* Many dark corners of the CFI reader have been looked at and
  (re-)validated

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

19 years agoVG_(addToXA): return index in the array where the item was added.
Julian Seward [Tue, 27 Feb 2007 16:40:53 +0000 (16:40 +0000)] 
VG_(addToXA): return index in the array where the item was added.

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

19 years agoCallgrind: Fix potential buffer overruns with user provided strings
Josef Weidendorfer [Mon, 26 Feb 2007 00:16:09 +0000 (00:16 +0000)] 
Callgrind: Fix potential buffer overruns with user provided strings

This introduces some macros to shorten the code for output of
strings to a file descriptor. I could use this a lot,
but this commit limits itself to the potential buffer overruns
(to ease backporting - provided we want to do this)

Heavy use of the macros probably blows up the code. Perhaps
it would be better to provide e.g. a VG_(write_str3) function
in the tool API.

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

19 years agoComment-only change.
Julian Seward [Sun, 25 Feb 2007 17:13:19 +0000 (17:13 +0000)] 
Comment-only change.

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

19 years agoGet rid of the type XArrayStrings in m_clientstate and use new generic
Julian Seward [Sun, 25 Feb 2007 15:08:24 +0000 (15:08 +0000)] 
Get rid of the type XArrayStrings in m_clientstate and use new generic
equivalents in module m_xarray instead.  A suprisingly pervasive
change.

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

19 years agoMake all the m_xarray functions tool-visible.
Julian Seward [Sun, 25 Feb 2007 15:04:40 +0000 (15:04 +0000)] 
Make all the m_xarray functions tool-visible.

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