]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoSort out amd64 issues.
Julian Seward [Wed, 23 Mar 2005 13:10:32 +0000 (13:10 +0000)] 
Sort out amd64 issues.

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

21 years agoamd64-linux build fix
Julian Seward [Wed, 23 Mar 2005 13:09:55 +0000 (13:09 +0000)] 
amd64-linux build fix

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

21 years agoMore syscall fixes (Tom Hughes).
Julian Seward [Wed, 23 Mar 2005 11:41:15 +0000 (11:41 +0000)] 
More syscall fixes (Tom Hughes).

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

21 years agoRe-enable a few cases.
Julian Seward [Wed, 23 Mar 2005 11:36:48 +0000 (11:36 +0000)] 
Re-enable a few cases.

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

21 years agoMake rdtsc return 1 instead of 0, to stop glibc's resolver looping.
Julian Seward [Wed, 23 Mar 2005 11:35:55 +0000 (11:35 +0000)] 
Make rdtsc return 1 instead of 0, to stop glibc's resolver looping.

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

21 years agoDeal more rationally with LOCK prefixes, correct at least in the way
Julian Seward [Wed, 23 Mar 2005 11:25:12 +0000 (11:25 +0000)] 
Deal more rationally with LOCK prefixes, correct at least in the way
Valgrind-3.0 intends to use Vex.  This should be applied to the x86 line
too.

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

21 years agoFix a bunch of amd64 syscalls.
Julian Seward [Wed, 23 Mar 2005 03:42:26 +0000 (03:42 +0000)] 
Fix a bunch of amd64 syscalls.

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

21 years ago* widening (u)mulq from memory operand
Julian Seward [Wed, 23 Mar 2005 03:39:55 +0000 (03:39 +0000)] 
* widening (u)mulq from memory operand
* movb imm8,%bh (untested)

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

21 years ago64-bit cleanness fix for command-line printing
Julian Seward [Wed, 23 Mar 2005 03:06:30 +0000 (03:06 +0000)] 
64-bit cleanness fix for command-line printing

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

21 years agoFix silly bug introduced in r1066.
Julian Seward [Wed, 23 Mar 2005 03:02:50 +0000 (03:02 +0000)] 
Fix silly bug introduced in r1066.

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

21 years agoPRE_(mmap2) and PRE(old_mmap): if not MAP_FIXED but addr != 0, don't
Julian Seward [Wed, 23 Mar 2005 02:53:13 +0000 (02:53 +0000)] 
PRE_(mmap2) and PRE(old_mmap): if not MAP_FIXED but addr != 0, don't
fail if we can't get addr; instead get something arbitrary.  This is
what SUSv3 requires.

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

21 years agoWe don't need two copies of this -- there's another in orig_x86.
Julian Seward [Tue, 22 Mar 2005 14:00:31 +0000 (14:00 +0000)] 
We don't need two copies of this -- there's another in orig_x86.

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

21 years agoDe-convolute somewhat the client request usage for reporting overlap errors.
Nicholas Nethercote [Tue, 22 Mar 2005 04:27:14 +0000 (04:27 +0000)] 
De-convolute somewhat the client request usage for reporting overlap errors.

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

21 years agomake function names more uniform
Nicholas Nethercote [Tue, 22 Mar 2005 04:02:43 +0000 (04:02 +0000)] 
make function names more uniform

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

21 years agoTrack recent jmp_with_stack hackery.
Julian Seward [Tue, 22 Mar 2005 02:43:14 +0000 (02:43 +0000)] 
Track recent jmp_with_stack hackery.

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

21 years agoRemove debug printing.
Julian Seward [Tue, 22 Mar 2005 02:29:22 +0000 (02:29 +0000)] 
Remove debug printing.

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

21 years agoTurns out the recent IRStmt_NoOp hackery broke the IR optimiser quite
Julian Seward [Tue, 22 Mar 2005 02:24:05 +0000 (02:24 +0000)] 
Turns out the recent IRStmt_NoOp hackery broke the IR optimiser quite
seriously.  It was still transforming correctly, but many of the
transformations had been hampered by no longer being able to recognise
no-ops properly.  This hopefully fixes it.

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

21 years agoFinally finish pissing around with jmp_with_stack. Now at least we
Julian Seward [Tue, 22 Mar 2005 02:03:09 +0000 (02:03 +0000)] 
Finally finish pissing around with jmp_with_stack.  Now at least we
can get a startup on amd64.

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

21 years agoMucho buggering about jmp_with_stack and its kin. Jeez. Now the
Julian Seward [Tue, 22 Mar 2005 01:55:35 +0000 (01:55 +0000)] 
Mucho buggering about jmp_with_stack and its kin.  Jeez.  Now the
amd64 version is broken again.  Writing code with undocumented
assumptions should be a firable offense.  At the very least.

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

21 years agojmp_with_stack is a hack which makes no sense on archs which pass args
Julian Seward [Tue, 22 Mar 2005 00:19:55 +0000 (00:19 +0000)] 
jmp_with_stack is a hack which makes no sense on archs which pass args
in registers.  Replace it (for amd64) with something more disciplined:
call_on_new_stack_0_0 and call_on_new_stack_0_1.

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

21 years agoamd64 back end: deal with (ignore) Ist_IMark and Ist_NoOp
Julian Seward [Tue, 22 Mar 2005 00:15:00 +0000 (00:15 +0000)] 
amd64 back end: deal with (ignore) Ist_IMark and Ist_NoOp

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

21 years agoHorrible syscall-related hacks to make it at least compile on amd64.
Julian Seward [Mon, 21 Mar 2005 17:43:34 +0000 (17:43 +0000)] 
Horrible syscall-related hacks to make it at least compile on amd64.
Doesn't work yet.

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

21 years agoGenerate offsets needed for V on amd64.
Julian Seward [Mon, 21 Mar 2005 17:41:45 +0000 (17:41 +0000)] 
Generate offsets needed for V on amd64.

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

21 years agohandleOneStatement: Derive a value for *instrAddr from the IMark in a
Julian Seward [Mon, 21 Mar 2005 11:53:38 +0000 (11:53 +0000)] 
handleOneStatement: Derive a value for *instrAddr from the IMark in a
way which is 64-bit clean.

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

21 years agoMake several more files compile cleanly with icc -Wall. Hopefully
Julian Seward [Mon, 21 Mar 2005 03:11:17 +0000 (03:11 +0000)] 
Make several more files compile cleanly with icc -Wall.  Hopefully
this doesn't break anything.

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

21 years agoThe "icc -Wall" placation project rumbles onward ...
Julian Seward [Mon, 21 Mar 2005 02:47:42 +0000 (02:47 +0000)] 
The "icc -Wall" placation project rumbles onward ...

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

21 years agoBring in the beginnings of 64-bit cleanness for IR mangling in cachegrind:
Julian Seward [Mon, 21 Mar 2005 01:35:02 +0000 (01:35 +0000)] 
Bring in the beginnings of 64-bit cleanness for IR mangling in cachegrind:
* use mkIRExpr_HWord to wrap constants
* add a bunch of paranoia to check we're not screwing up too obviously

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

21 years agoThe Icc typechecker police have been round banging on our doors again.
Julian Seward [Mon, 21 Mar 2005 01:06:20 +0000 (01:06 +0000)] 
The Icc typechecker police have been round banging on our doors again.
Placating icc -Wall is a Herculean task; I don't know if it will ever
get completed.

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

21 years agoBring up-to-date.
Julian Seward [Mon, 21 Mar 2005 01:03:49 +0000 (01:03 +0000)] 
Bring up-to-date.

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

21 years agoTrack Vex API change in rev 1062: pass both the guest and host word
Julian Seward [Mon, 21 Mar 2005 00:55:49 +0000 (00:55 +0000)] 
Track Vex API change in rev 1062: pass both the guest and host word
sizes to the instrumentatation functions.  Make most of the tools
abort if they are not the same; we can't handle that case yet.

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

21 years agoA small API change: pass both the guest and host word sizes to the
Julian Seward [Mon, 21 Mar 2005 00:54:33 +0000 (00:54 +0000)] 
A small API change: pass both the guest and host word sizes to the
instrumentatation functions.

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

21 years agoTrack Vex API (semantics) changes in rev 1061: introduction of IRStmt_NoOp.
Julian Seward [Mon, 21 Mar 2005 00:27:41 +0000 (00:27 +0000)] 
Track Vex API (semantics) changes in rev 1061: introduction of IRStmt_NoOp.

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

21 years agoAdd a new IR statement kind: IRStmt_NoOp, to denote a no-operation.
Julian Seward [Mon, 21 Mar 2005 00:15:53 +0000 (00:15 +0000)] 
Add a new IR statement kind: IRStmt_NoOp, to denote a no-operation.
These are generated by the IR optimiser.  The use of no-ops replaces
the old practice of allowing a BB to contain NULL pointers in its
statement array as a way of denoting no-ops.  NULL stmts are now no
longer allowed under any circumstances, and the IR sanity checker will
reject any BB containing them.

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

21 years agoFix copy-n-paste-o spotted by Ceri.
Julian Seward [Mon, 21 Mar 2005 00:12:15 +0000 (00:12 +0000)] 
Fix copy-n-paste-o spotted by Ceri.

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

21 years agoMove VG_(get_EIP)() out of vg_execontext.c, where it doesn't belong, into
Nicholas Nethercote [Mon, 21 Mar 2005 00:01:36 +0000 (00:01 +0000)] 
Move VG_(get_EIP)() out of vg_execontext.c, where it doesn't belong, into
vg_main.c, where it doesn't also really belong but at least it's now next to
VG_(get_stack_pointer)() which is very similar.

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

21 years agoThis commit partly cleans up and modularises ExeContext usage. It doesn't
Nicholas Nethercote [Sun, 20 Mar 2005 23:45:36 +0000 (23:45 +0000)] 
This commit partly cleans up and modularises ExeContext usage.  It doesn't
look like that much, but it's a good first step;  there's more to come.

- vg_errcontext.c:gen_suppressions() and vg_symtab2.c:VG_(mini_stack_dump)()
  had very similar stack-trace-traversing loops.  I factored these out into
  the higher-order function VG_(apply_ExeContext)().  I put this into
  vg_execontext.c, which is the obvious spot.  This is good because before
  this change we had two functions, neither in vg_execontext.c, which were
  crawling all over ExeContexts -- they shouldn't have to do that.

- Removed VG_(mini_stack_dump)(), which was almost identical to
  VG_(pp_ExeContext)().

- Removed dead function VG_(get_EIP_from_ExeContext)().

- Replaced a call to VG_(get_ExeContext2)() with the simpler
  VG_(get_ExeContext)() in vg_scheduler.c.

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

21 years agoTrack minor Vex API changes that occurred in Vex rev 1059.
Julian Seward [Sun, 20 Mar 2005 18:55:15 +0000 (18:55 +0000)] 
Track minor Vex API changes that occurred in Vex rev 1059.

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

21 years agoThis commit looks big but it is really quite small. Fixes some
Julian Seward [Sun, 20 Mar 2005 18:44:44 +0000 (18:44 +0000)] 
This commit looks big but it is really quite small.  Fixes some
matters arising from the first-pass attempt at IRifying cachegrind:

* Make all library-user visible functions have names that
  match either LibVEX_* or *IR[A-Z]*.

* Put a comment at the top of libvex_ir.h explaining the
  naming scheme a little.

* Make a previously-private function public, giving eqIRAtom.

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

21 years agoComment-only change -- replace old function name.
Nicholas Nethercote [Sun, 20 Mar 2005 18:23:11 +0000 (18:23 +0000)] 
Comment-only change -- replace old function name.

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

21 years agoPrint messages only shown with -v using Vg_DebugMsg, rather than Vg_UserMsg.
Nicholas Nethercote [Sun, 20 Mar 2005 18:21:14 +0000 (18:21 +0000)] 
Print messages only shown with -v using Vg_DebugMsg, rather than Vg_UserMsg.

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

21 years agoThe party never stops in x86-land: implement 'fstsw' as cachegrind's
Julian Seward [Sun, 20 Mar 2005 12:51:39 +0000 (12:51 +0000)] 
The party never stops in x86-land: implement 'fstsw' as cachegrind's
regression tests require it.

Also tighten up assertion checking in putIReg, and update some
copyright notices.

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

21 years agoUpdate expected outputs following institution of default --show-emwarns=no
Julian Seward [Sun, 20 Mar 2005 12:06:57 +0000 (12:06 +0000)] 
Update expected outputs following institution of default --show-emwarns=no

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

21 years agoReinstated Cachegrind. Seems to be working ok -- numbers compare pretty
Nicholas Nethercote [Sun, 20 Mar 2005 00:20:06 +0000 (00:20 +0000)] 
Reinstated Cachegrind.  Seems to be working ok -- numbers compare pretty
well with those for the CVS version... the I1 accesses are noticeably
higher, but everything else is nearly the same.

There's some ugliness in spots, partly due to shortcomings with Vex.  And
CPUID auto-detection is currently disabled, because cpuid is disabled in
general.

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

21 years agoChange .CVS to .SVN
Julian Seward [Sat, 19 Mar 2005 23:45:04 +0000 (23:45 +0000)] 
Change .CVS to .SVN

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

21 years agoDon't show VEX emulation warnings by default; they are just too tiresome.
Julian Seward [Sat, 19 Mar 2005 15:12:21 +0000 (15:12 +0000)] 
Don't show VEX emulation warnings by default; they are just too tiresome.
If you want to see them, use --show-emwarns=yes.

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

21 years agoMore insns: ftst, movupd
Julian Seward [Sat, 19 Mar 2005 14:27:04 +0000 (14:27 +0000)] 
More insns: ftst, movupd

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

21 years agoMove this file to the right place.
Julian Seward [Sat, 19 Mar 2005 14:26:27 +0000 (14:26 +0000)] 
Move this file to the right place.

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

21 years agoTest for the x87 'tst' instruction. In the wrong place unfortunately.
Julian Seward [Sat, 19 Mar 2005 14:25:49 +0000 (14:25 +0000)] 
Test for the x87 'tst' instruction.  In the wrong place unfortunately.

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

21 years agoFramework for front-end floating point disassembly
Cerion Armour-Brown [Fri, 18 Mar 2005 12:23:33 +0000 (12:23 +0000)] 
Framework for front-end floating point disassembly

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

21 years agoUpdate VG_(bbs_done) correctly, so it agrees with the BB counts
Julian Seward [Fri, 18 Mar 2005 03:18:30 +0000 (03:18 +0000)] 
Update VG_(bbs_done) correctly, so it agrees with the BB counts
presented by Lackey.

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

21 years agoFill in missing pinsrw memory-to-xmm case.
Julian Seward [Thu, 17 Mar 2005 14:03:46 +0000 (14:03 +0000)] 
Fill in missing pinsrw memory-to-xmm case.

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

21 years agoQuieten down gcc
Cerion Armour-Brown [Thu, 17 Mar 2005 14:03:36 +0000 (14:03 +0000)] 
Quieten down gcc

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

21 years agoUse ULong instead of Int for stopAfter and n_bbs_done - shouldn't run out of bbs...
Cerion Armour-Brown [Thu, 17 Mar 2005 13:11:06 +0000 (13:11 +0000)] 
Use ULong instead of Int for stopAfter and n_bbs_done - shouldn't run out of bbs for a while now...

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

21 years agohandy test wrapper
Cerion Armour-Brown [Thu, 17 Mar 2005 13:01:08 +0000 (13:01 +0000)] 
handy test wrapper

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

21 years agostop compiler errors on fp regs, add possibily of setting xer_ca, clearly choose...
Cerion Armour-Brown [Thu, 17 Mar 2005 13:00:11 +0000 (13:00 +0000)] 
stop compiler errors on fp regs, add possibily of setting xer_ca, clearly choose what tests to run

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

21 years agoExplaination from David Woodhouse about meaning of thread groups.
Julian Seward [Thu, 17 Mar 2005 12:55:35 +0000 (12:55 +0000)] 
Explaination from David Woodhouse about meaning of thread groups.

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

21 years agoPrint IMarks a bit more visibly.
Julian Seward [Thu, 17 Mar 2005 09:57:03 +0000 (09:57 +0000)] 
Print IMarks a bit more visibly.

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

21 years agoAdd missing break spotted by Nick. Turns out to be harmless - but
Julian Seward [Thu, 17 Mar 2005 03:17:54 +0000 (03:17 +0000)] 
Add missing break spotted by Nick.  Turns out to be harmless - but
only because I was lucky.

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

21 years agoFix VG_({un}pad_address_space) so as to make sys_io_setup work again.
Julian Seward [Thu, 17 Mar 2005 02:14:44 +0000 (02:14 +0000)] 
Fix VG_({un}pad_address_space) so as to make sys_io_setup work again.

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

21 years agoFill in a bunch of amd64-specific crud. Still won't link though.
Julian Seward [Wed, 16 Mar 2005 22:04:40 +0000 (22:04 +0000)] 
Fill in a bunch of amd64-specific crud.  Still won't link though.

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

21 years agoWe no longer need a complete spare copy of V hanging off the Vex tree.
Julian Seward [Wed, 16 Mar 2005 20:54:10 +0000 (20:54 +0000)] 
We no longer need a complete spare copy of V hanging off the Vex tree.

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

21 years agoMake existing tools aware of IR instruction marks. (They ignore them,
Julian Seward [Wed, 16 Mar 2005 18:20:21 +0000 (18:20 +0000)] 
Make existing tools aware of IR instruction marks.  (They ignore them,
though).

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

21 years agoAdd a new kind of IR stmt: "instruction marks" (IRStmt_IMark), so as
Julian Seward [Wed, 16 Mar 2005 18:19:10 +0000 (18:19 +0000)] 
Add a new kind of IR stmt: "instruction marks" (IRStmt_IMark), so as
to support profiling.  It is the responsibility of front ends (toIR.c)
to generate these.  For each instruction, the first IR stmt emitted
should be an IMark, stating the guest address and length of the guest
instruction represented by the IR that follows.  All IR stmts
following the IMark but before the next IMark are then assumed to
'belong to' the guest insn described by the first IMark.  IMarks do
not denote executable code and can be ignored at any point in the
proceedings; they are an optional addition which help
profiling-annotators to navigate the IR stmt stream.

This commit adds IR level infrastructure for IMarks and IMark
generation in the x86 front end.  The amd64 and ppc32 front end are
not yet done.

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

21 years agoRevert to doing x86->x86 (utterly trivial change)
Julian Seward [Wed, 16 Mar 2005 18:10:45 +0000 (18:10 +0000)] 
Revert to doing x86->x86 (utterly trivial change)

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

21 years agoFixed front-end srawi carry flag calc
Cerion Armour-Brown [Wed, 16 Mar 2005 14:12:58 +0000 (14:12 +0000)] 
Fixed front-end srawi carry flag calc

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

21 years agoAdd guest_TISTART and guest_TILEN fields to all guest state structs,
Julian Seward [Wed, 16 Mar 2005 13:57:58 +0000 (13:57 +0000)] 
Add guest_TISTART and guest_TILEN fields to all guest state structs,
since eventually users of the library will refer to them, and unless
they exist in all guest states, compilation failure will result.

These fields contain the size and length of an area of icache
invalidated by any icache-flushing instruction encountered.  On x86
and amd64 there is no such insn and so they are zeroed at startup and
play no further role at all.  But on ppc32 they are written to as a
result of executing an 'icbi' instruction.

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

21 years agoAdd an equally-valid looking alternative .stderr.exp for this test.
Julian Seward [Wed, 16 Mar 2005 13:32:48 +0000 (13:32 +0000)] 
Add an equally-valid looking alternative .stderr.exp for this test.

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

21 years agoAdd another possible .stderr output for memcheck/tests/writev.
Julian Seward [Wed, 16 Mar 2005 13:10:44 +0000 (13:10 +0000)] 
Add another possible .stderr output for memcheck/tests/writev.

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

21 years agoRemove pth_once from memcheck/tests. It already exists in
Julian Seward [Wed, 16 Mar 2005 12:37:30 +0000 (12:37 +0000)] 
Remove pth_once from memcheck/tests.  It already exists in
corecheck/tests and there is no point in duplicating it.  Given that
it was intended to check the behaviour of our now-defunct pthread
implementation there's not much point in keeping it at all.

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

21 years agoReinstate VG_(find_root_memory). This makes the leak detector work
Julian Seward [Wed, 16 Mar 2005 12:27:53 +0000 (12:27 +0000)] 
Reinstate VG_(find_root_memory).  This makes the leak detector work
again.

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

21 years agoGet rid of VG_(client_free) as it was never used. Rename its
Julian Seward [Wed, 16 Mar 2005 12:11:12 +0000 (12:11 +0000)] 
Get rid of VG_(client_free) as it was never used.  Rename its
counterpart VG_(client_alloc) to VG_(get_memory_from_mmap_for_client).
Man, this low level memory management is an undisciplined mess.

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

21 years agoUpdate expected outputs to include missing stack frames that old UCode
Julian Seward [Wed, 16 Mar 2005 11:55:34 +0000 (11:55 +0000)] 
Update expected outputs to include missing stack frames that old UCode
machinery caused to be missed due to not keeping %EBP up to date.

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

21 years agoAdd %EBP/%RBP to the set of registers for which redundant-PUT
Julian Seward [Wed, 16 Mar 2005 11:52:25 +0000 (11:52 +0000)] 
Add %EBP/%RBP to the set of registers for which redundant-PUT
elimination is not done.  This is needed so that Valgrind can
construct correct stack traces on x86/amd64.  Curiously enough old
UCode valgrind didn't do this correctly, but because it doesn't
optimise as aggressively as Vex, we didn't notice this.  Overall
result is that Vex-based valgrind now produces more accurate stack
traces, at least on x86, than valgrind-2.4.X will.

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

21 years agosmall fix to rlwnm_cb loop
Cerion Armour-Brown [Wed, 16 Mar 2005 11:51:03 +0000 (11:51 +0000)] 
small fix to rlwnm_cb loop

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

21 years agoDon't try to stuff 16 bit values into 12 bit variables.
Nicholas Nethercote [Wed, 16 Mar 2005 04:09:21 +0000 (04:09 +0000)] 
Don't try to stuff 16 bit values into 12 bit variables.

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

21 years agoReplace an 8-line macro with a 2-line function that is also easier to
Nicholas Nethercote [Wed, 16 Mar 2005 03:49:59 +0000 (03:49 +0000)] 
Replace an 8-line macro with a 2-line function that is also easier to
understand.

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

21 years agoMake scalar.c slightly more robust against certain kinds of failures.
Nicholas Nethercote [Wed, 16 Mar 2005 03:29:08 +0000 (03:29 +0000)] 
Make scalar.c slightly more robust against certain kinds of failures.

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

21 years agoTweak manuel2 so that the Memcheck-detected error is more reliable, and that
Nicholas Nethercote [Wed, 16 Mar 2005 03:07:33 +0000 (03:07 +0000)] 
Tweak manuel2 so that the Memcheck-detected error is more reliable, and that
we never accidentally also get an undefined-condition-error.

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

21 years agoDon't let GCC4.0 inline memcpy() and memcmp(), else the tests fail.
Nicholas Nethercote [Wed, 16 Mar 2005 02:49:11 +0000 (02:49 +0000)] 
Don't let GCC4.0 inline memcpy() and memcmp(), else the tests fail.

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

21 years agoLooks like the monkeys-with-typewriters department wrote the size-8
Julian Seward [Wed, 16 Mar 2005 00:41:34 +0000 (00:41 +0000)] 
Looks like the monkeys-with-typewriters department wrote the size-8
for-Vex load/store cases.  Try and improve things.

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

21 years agoStop sys_sigprocmask from dying with assertion failures.
Julian Seward [Wed, 16 Mar 2005 00:40:48 +0000 (00:40 +0000)] 
Stop sys_sigprocmask from dying with assertion failures.

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

21 years agoFixed xer_ca flag calc for subfze,
Cerion Armour-Brown [Wed, 16 Mar 2005 00:27:37 +0000 (00:27 +0000)] 
Fixed xer_ca flag calc for subfze,
Cleaned up ghelpers.c: calc_xer_ca, calc_xer_ov
Cleaned up toIR.c dis_int_arith, dis_int_cmp, dis_int_logic, dis_int_shift

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

21 years agoMerge in the revised client request stuff from 2.4.X. This significantly
Julian Seward [Tue, 15 Mar 2005 23:30:32 +0000 (23:30 +0000)] 
Merge in the revised client request stuff from 2.4.X.  This significantly
reduces the number of memcheck regtest failures we get.

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

21 years agoAllow mmaps etc all the way down to zero. This 'fixes' as_mmap.
Julian Seward [Tue, 15 Mar 2005 23:29:13 +0000 (23:29 +0000)] 
Allow mmaps etc all the way down to zero.  This 'fixes' as_mmap.

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

21 years agoBe a bit more paranoid about icbi.
Julian Seward [Tue, 15 Mar 2005 18:27:40 +0000 (18:27 +0000)] 
Be a bit more paranoid about icbi.

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

21 years agoImproved method for discarding invalidated translations.
Julian Seward [Tue, 15 Mar 2005 17:49:46 +0000 (17:49 +0000)] 
Improved method for discarding invalidated translations.

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

21 years agoSupport for vex-directed instruction-cache invalidation, needed for
Julian Seward [Tue, 15 Mar 2005 16:54:13 +0000 (16:54 +0000)] 
Support for vex-directed instruction-cache invalidation, needed for
PowerPC icbi instruction support.

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

21 years agoBrain-dead (but working) support for Vex-directed translation-cache
Julian Seward [Tue, 15 Mar 2005 16:52:13 +0000 (16:52 +0000)] 
Brain-dead (but working) support for Vex-directed translation-cache
invalidates.

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

21 years agoSomewhat reduce the number of immediate values in test-with-immediate
Julian Seward [Tue, 15 Mar 2005 16:51:30 +0000 (16:51 +0000)] 
Somewhat reduce the number of immediate values in test-with-immediate
style tests.

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

21 years agoFix backend cntlzw
Cerion Armour-Brown [Tue, 15 Mar 2005 16:36:02 +0000 (16:36 +0000)] 
Fix backend cntlzw

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

21 years agoCleanup backend: var name chages like src1,2 -> srcL,R etc
Cerion Armour-Brown [Tue, 15 Mar 2005 16:33:38 +0000 (16:33 +0000)] 
Cleanup backend: var name chages like src1,2 -> srcL,R etc

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

21 years agoPartially unbreak sigcontextings -- hopefully enough that self hosting
Julian Seward [Tue, 15 Mar 2005 14:48:45 +0000 (14:48 +0000)] 
Partially unbreak sigcontextings -- hopefully enough that self hosting
works.

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

21 years agoMake sys_rt_sigreturn work.
Julian Seward [Tue, 15 Mar 2005 14:47:30 +0000 (14:47 +0000)] 
Make sys_rt_sigreturn work.

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

21 years agoMemcheck complains a lot at glibc-2.2.5 startup, for unclear reasons.
Julian Seward [Tue, 15 Mar 2005 03:00:46 +0000 (03:00 +0000)] 
Memcheck complains a lot at glibc-2.2.5 startup, for unclear reasons.
This tries to shut it up a bit.  This may not be a good fix.

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

21 years agogcc-2.96 build fixes.
Julian Seward [Tue, 15 Mar 2005 01:41:08 +0000 (01:41 +0000)] 
gcc-2.96 build fixes.

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

21 years agoImprove debug printing.
Julian Seward [Tue, 15 Mar 2005 01:40:12 +0000 (01:40 +0000)] 
Improve debug printing.

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

21 years agoFix another merge-related problem. I think this may resolve the
Julian Seward [Tue, 15 Mar 2005 01:38:57 +0000 (01:38 +0000)] 
Fix another merge-related problem.  I think this may resolve the
thread-hang-at-exit issues.

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

21 years agoAvoid compile warning.
Nicholas Nethercote [Tue, 15 Mar 2005 01:20:08 +0000 (01:20 +0000)] 
Avoid compile warning.

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

21 years agoA gcc-2.96 build fix.
Julian Seward [Mon, 14 Mar 2005 19:52:16 +0000 (19:52 +0000)] 
A gcc-2.96 build fix.

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

21 years agoA few more suppressions and redirections to keep memcheck happy.
Julian Seward [Mon, 14 Mar 2005 19:25:49 +0000 (19:25 +0000)] 
A few more suppressions and redirections to keep memcheck happy.

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