]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
20 years agoRecategorise some options in the usage message.
Nicholas Nethercote [Wed, 20 Jul 2005 03:03:28 +0000 (03:03 +0000)] 
Recategorise some options in the usage message.

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

20 years agoReinstate stack trace printing on assertion failures. It's terrible
Nicholas Nethercote [Wed, 20 Jul 2005 02:41:31 +0000 (02:41 +0000)] 
Reinstate stack trace printing on assertion failures.  It's terrible
for the module dependency graph, but it's very useful.

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

20 years agoSpecialise NZ after ANDL/ORL/XORL. This fixes #109314.
Julian Seward [Wed, 20 Jul 2005 01:12:48 +0000 (01:12 +0000)] 
Specialise NZ after ANDL/ORL/XORL.  This fixes #109314.

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

20 years agoAdd some specialisation rules which are ultimately helpful in reduce
Julian Seward [Wed, 20 Jul 2005 00:30:37 +0000 (00:30 +0000)] 
Add some specialisation rules which are ultimately helpful in reduce
memcheck's false-error rate on inlined strlen and related nasties.

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

20 years agoMake ADC Ev,Gv work.
Julian Seward [Tue, 19 Jul 2005 23:59:54 +0000 (23:59 +0000)] 
Make ADC Ev,Gv work.

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

20 years agoMake a first cut at the 3.0.0 release notes.
Nicholas Nethercote [Tue, 19 Jul 2005 23:46:08 +0000 (23:46 +0000)] 
Make a first cut at the 3.0.0 release notes.

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

20 years agoThe devil's in the details ..
Julian Seward [Tue, 19 Jul 2005 23:12:11 +0000 (23:12 +0000)] 
The devil's in the details ..

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

20 years agoFix mistaken comments.
Tom Hughes [Tue, 19 Jul 2005 23:01:56 +0000 (23:01 +0000)] 
Fix mistaken comments.

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

20 years agoPass clone arguments in the correct order when doing a fork style
Tom Hughes [Tue, 19 Jul 2005 22:59:47 +0000 (22:59 +0000)] 
Pass clone arguments in the correct order when doing a fork style
clone. This should fix bug #109358.

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

20 years agoEnable sched_yield on amd64. Fixes bug #109362.
Tom Hughes [Tue, 19 Jul 2005 22:48:04 +0000 (22:48 +0000)] 
Enable sched_yield on amd64. Fixes bug #109362.

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

20 years agoReturn success when get_thread_area succeeds.
Tom Hughes [Tue, 19 Jul 2005 22:44:33 +0000 (22:44 +0000)] 
Return success when get_thread_area succeeds.

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

20 years agoAdd a makefile for the new documentation directory to avoid errors
Tom Hughes [Tue, 19 Jul 2005 22:39:41 +0000 (22:39 +0000)] 
Add a makefile for the new documentation directory to avoid errors
when make tries to recurse into it.

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

20 years agoSupport ARCH_GET_FS with arch_prctl on amd64.
Tom Hughes [Tue, 19 Jul 2005 22:35:58 +0000 (22:35 +0000)] 
Support ARCH_GET_FS with arch_prctl on amd64.

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

20 years agoWe have a nice little collection of text files describing various high
Nicholas Nethercote [Tue, 19 Jul 2005 21:46:19 +0000 (21:46 +0000)] 
We have a nice little collection of text files describing various high
level things.  But they're all over the place.  This commits moves
them all to the new docs/internals/ directory, and gives them
a consistent naming scheme.

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

20 years agoGet Addrcheck closer to compiling. It's still a long way from working,
Nicholas Nethercote [Tue, 19 Jul 2005 21:11:54 +0000 (21:11 +0000)] 
Get Addrcheck closer to compiling.  It's still a long way from working,
though.

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

20 years agowibble
Nicholas Nethercote [Tue, 19 Jul 2005 20:54:08 +0000 (20:54 +0000)] 
wibble

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

20 years agoMake attaching a debugger work on amd64.
Tom Hughes [Tue, 19 Jul 2005 18:19:48 +0000 (18:19 +0000)] 
Make attaching a debugger work on amd64.

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

20 years agoUpdate ignore lists.
Tom Hughes [Tue, 19 Jul 2005 17:59:24 +0000 (17:59 +0000)] 
Update ignore lists.

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

20 years agoEnable some more system calls on amd64.
Tom Hughes [Tue, 19 Jul 2005 16:05:49 +0000 (16:05 +0000)] 
Enable some more system calls on amd64.

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

20 years agoFix compiler warning.
Tom Hughes [Tue, 19 Jul 2005 15:28:31 +0000 (15:28 +0000)] 
Fix compiler warning.

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

20 years agoEnable setuid and setgid on amd64.
Tom Hughes [Tue, 19 Jul 2005 15:26:33 +0000 (15:26 +0000)] 
Enable setuid and setgid on amd64.

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

20 years agoUse %t rather than %s in some places for constructing XML output.
Julian Seward [Tue, 19 Jul 2005 15:00:25 +0000 (15:00 +0000)] 
Use %t rather than %s in some places for constructing XML output.

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

20 years agoOops; forgot to update spec
Julian Seward [Tue, 19 Jul 2005 14:59:41 +0000 (14:59 +0000)] 
Oops; forgot to update spec

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

20 years agoNew command line option: --xml-user-comment=XMLTEXT, which allows
Julian Seward [Tue, 19 Jul 2005 14:18:56 +0000 (14:18 +0000)] 
New command line option: --xml-user-comment=XMLTEXT, which allows
copying of arbitrary bits of XML text to the XML output.

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

20 years agoNew printf format specifier %t, which is like %s but escapes
Julian Seward [Tue, 19 Jul 2005 14:17:37 +0000 (14:17 +0000)] 
New printf format specifier %t, which is like %s but escapes
XML-unfriendly chars and thereby helps in the construction of valid
XML output.

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

20 years agoFix the mmap2 pre-handler to avoid corrupting the arguments when
Tom Hughes [Tue, 19 Jul 2005 13:04:04 +0000 (13:04 +0000)] 
Fix the mmap2 pre-handler to avoid corrupting the arguments when
it fails with ENOMEM due to a lack of memory.

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

20 years agoShow Valgrind's args too in the XML output.
Julian Seward [Tue, 19 Jul 2005 12:39:11 +0000 (12:39 +0000)] 
Show Valgrind's args too in the XML output.

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

20 years agoAdd time stamps to XML START/FINISH indications.
Julian Seward [Tue, 19 Jul 2005 12:17:51 +0000 (12:17 +0000)] 
Add time stamps to XML START/FINISH indications.

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

20 years agoMove the code for generating a human-readable time string into its own
Julian Seward [Tue, 19 Jul 2005 12:17:05 +0000 (12:17 +0000)] 
Move the code for generating a human-readable time string into its own
function.

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

20 years agoNew command line option: --log-file-qualifier=VAR. When specified,
Julian Seward [Tue, 19 Jul 2005 11:25:02 +0000 (11:25 +0000)] 
New command line option: --log-file-qualifier=VAR.  When specified,
the contents of environment variable VAR (viz, $VAR) are incorporated
into logfile names.  This makes it easy to incorporate environmental
information into logfile names.

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

20 years agoiselCondCode: handle literals.
Julian Seward [Tue, 19 Jul 2005 08:42:56 +0000 (08:42 +0000)] 
iselCondCode: handle literals.

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

20 years agoAdd some assertions.
Tom Hughes [Tue, 19 Jul 2005 07:37:51 +0000 (07:37 +0000)] 
Add some assertions.

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

20 years agoEnable the rt_sigqueueinfo syscall on amd64.
Tom Hughes [Tue, 19 Jul 2005 07:21:06 +0000 (07:21 +0000)] 
Enable the rt_sigqueueinfo syscall on amd64.

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

20 years agowibble
Nicholas Nethercote [Tue, 19 Jul 2005 03:38:09 +0000 (03:38 +0000)] 
wibble

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

20 years agoAdded a file containing Josef's explanation of Calltree's function
Nicholas Nethercote [Tue, 19 Jul 2005 03:30:31 +0000 (03:30 +0000)] 
Added a file containing Josef's explanation of Calltree's function
entry/exit tracking.

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

20 years agoRemove unneeded #ifdef.
Nicholas Nethercote [Tue, 19 Jul 2005 01:22:26 +0000 (01:22 +0000)] 
Remove unneeded #ifdef.

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

20 years agoAdd note about justified pedantry of overlap checking.
Nicholas Nethercote [Tue, 19 Jul 2005 00:48:55 +0000 (00:48 +0000)] 
Add note about justified pedantry of overlap checking.

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

20 years agowibbles
Nicholas Nethercote [Tue, 19 Jul 2005 00:40:16 +0000 (00:40 +0000)] 
wibbles

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

20 years agoRemove valgrind.vs.
Nicholas Nethercote [Tue, 19 Jul 2005 00:36:23 +0000 (00:36 +0000)] 
Remove valgrind.vs.

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

20 years agoallow to be build in a buildroot
Dirk Mueller [Mon, 18 Jul 2005 23:56:46 +0000 (23:56 +0000)] 
allow to be build in a buildroot

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

20 years agoremove the version script, doesn't work for executables
Dirk Mueller [Mon, 18 Jul 2005 23:52:10 +0000 (23:52 +0000)] 
remove the version script, doesn't work for executables

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

20 years agoFix crash when no environment is given to execve.
Tom Hughes [Mon, 18 Jul 2005 23:23:03 +0000 (23:23 +0000)] 
Fix crash when no environment is given to execve.

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

20 years agoCheck members of the stack_t structure passed to sigaltstack
Tom Hughes [Mon, 18 Jul 2005 23:18:10 +0000 (23:18 +0000)] 
Check members of the stack_t structure passed to sigaltstack
individually to avoid problems with padding on 64 bit platforms.

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

20 years agoCheck each member of the ifconf structure passed to SIOCGIFCONF
Tom Hughes [Mon, 18 Jul 2005 22:45:55 +0000 (22:45 +0000)] 
Check each member of the ifconf structure passed to SIOCGIFCONF
individually to avoid problems with padding bytes on 64 bit platforms.

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

20 years agoCheck each field of the msghdr structure passed to sendmsg/recvmsg
Tom Hughes [Mon, 18 Jul 2005 22:41:33 +0000 (22:41 +0000)] 
Check each field of the msghdr structure passed to sendmsg/recvmsg
individually to avoid complaints due to uninitialised padding bytes
on 64 bit platforms.

Also fixed sendmsg to check things which should be initialised (the
msghdr structure and the iov array) properly instead of doing a write
check for everything.

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

20 years agoUpdate svn:ignore lists.
Tom Hughes [Mon, 18 Jul 2005 17:53:07 +0000 (17:53 +0000)] 
Update svn:ignore lists.

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

20 years agoIf the client program is a PIE executable, avoid mapping it at
Tom Hughes [Mon, 18 Jul 2005 15:52:30 +0000 (15:52 +0000)] 
If the client program is a PIE executable, avoid mapping it at
address zero. Instead do something like what the kernel does and
map it in the middle of the client address space.

Fix for bug #106283 based on patch from Sergey Vlasov.

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

20 years agoadd comment
Nicholas Nethercote [Mon, 18 Jul 2005 14:10:12 +0000 (14:10 +0000)] 
add comment

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

20 years agoTake a copy of the environment given to execve before trying to mangle
Tom Hughes [Mon, 18 Jul 2005 14:02:11 +0000 (14:02 +0000)] 
Take a copy of the environment given to execve before trying to mangle
it as it might be in read only memory. Fixes bug #101881.

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

20 years agoAdd a folding rule for 1Sto16.
Julian Seward [Mon, 18 Jul 2005 13:58:49 +0000 (13:58 +0000)] 
Add a folding rule for 1Sto16.

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

20 years agoHandle 0 :: Ity_I1 as well as 1 :: Ity_I1.
Julian Seward [Mon, 18 Jul 2005 13:54:49 +0000 (13:54 +0000)] 
Handle 0 :: Ity_I1 as well as 1 :: Ity_I1.

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

20 years agoHandle the BLKGETSIZE64 ioctl. Fixes bug #104797.
Tom Hughes [Mon, 18 Jul 2005 13:26:55 +0000 (13:26 +0000)] 
Handle the BLKGETSIZE64 ioctl. Fixes bug #104797.

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

20 years agoPreserve %esi across VG_(clone) as the caller may be relying on it
Tom Hughes [Mon, 18 Jul 2005 12:02:45 +0000 (12:02 +0000)] 
Preserve %esi across VG_(clone) as the caller may be relying on it
not being changed. Fix to bug #106713.

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

20 years agoTrack API changes in vex r1272.
Julian Seward [Mon, 18 Jul 2005 11:41:15 +0000 (11:41 +0000)] 
Track API changes in vex r1272.

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

20 years agoFix up linking/relocation a bit, and track API changes in r1272.
Julian Seward [Mon, 18 Jul 2005 11:39:47 +0000 (11:39 +0000)] 
Fix up linking/relocation a bit, and track API changes in r1272.

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

20 years agoTrack API changes in r1272.
Julian Seward [Mon, 18 Jul 2005 11:38:58 +0000 (11:38 +0000)] 
Track API changes in r1272.

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

20 years agoSome changes to the ppc32 compilation pipeline, with two aims:
Julian Seward [Mon, 18 Jul 2005 11:38:02 +0000 (11:38 +0000)] 
Some changes to the ppc32 compilation pipeline, with two aims:

* to achieve code quality comparable with x86/amd64 pipelines

* to make the value flow clearer to memcheck, in the hope of
  reducing the very high false error rate it gives on ppc

Code quality is substantially improved, but the error rate is just as
high as it was before.  Needs investigation.

Many instructions are now commented out -- mostly they just need
commenting back in.  Simple integer programs (date, ls, xfontsel)
work.

Front end changes
~~~~~~~~~~~~~~~~
Change the way CR and XER are represented, and hence redo the way
integer comparisons and conditional branches work:

* Introduce a two new IR primops CmpORD32S and CmpORD32U; these do
  ppc-style 3-way comparisons (<, >, ==).  It's hard to simulate ppc
  efficiently without them.  Use these to implement integer compares.

* Get rid of all thunks for condition codes -- CR and XER state
  is always up to date now.

* Split XER into four fields and CR into 16 fields, so that
  their various components can be accessed directly without
  endless shifting and masking.  Created suitable impedance
  matching functions to read/write XER and CR as a whole.

* Use hardware BI numbering throughout.

Back end changes
~~~~~~~~~~~~~~~
* Simplify condition code handling and use hardware BI numbering
  throughout

* Reduce the number of instruction kinds by merging integer subtracts
  and shifts into PPC32Instr_Alu32.  Use rlwimi to do Shl/Shr by
  immediate.

* Create a copy of PPC32RI (reg-or-imm) called PPC32RH
  (reg-or-halfword-imm), and give the latter a flag indicating whether
  the imm is regarded as signed or not.  Use PPC32RH in most places
  where PPC32RI was used before.

* Add instruction selection functions to compute a value into a
  PPC32RI, a PPC32RH of specified signedness, and a PPC32RH variant in
  which the immediate is unsigned and in the range 1 .. 31 inclusive
  (used for shifts-by-immediate).

* Simplify PPC32Instr_MulL; all 3 operands are now simply registers.

* Add a new (fake) insn PPC32Instr_LI32 to get arbitrary 32-bit
  immediates into int registers; this hides all the ugly li vs lis/ori
  details.

* Handle CmpORD32{S,U}.

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

20 years agoAllow a NULL argument to the times system call. Fixes bug #103509.
Tom Hughes [Mon, 18 Jul 2005 11:03:35 +0000 (11:03 +0000)] 
Allow a NULL argument to the times system call. Fixes bug #103509.

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

20 years agoFixed debug code so that it compiles and fixed a printf to report the
Tom Hughes [Mon, 18 Jul 2005 09:41:57 +0000 (09:41 +0000)] 
Fixed debug code so that it compiles and fixed a printf to report the
start and end as (apparently) intended.

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

20 years agoConsider blocks with both SF_MMAP and SF_STACK set as part of the root
Tom Hughes [Mon, 18 Jul 2005 09:40:29 +0000 (09:40 +0000)] 
Consider blocks with both SF_MMAP and SF_STACK set as part of the root
memory set as any additional stack space allocated by valgrind will
have both flags set. This fixes bug #106293.

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

20 years agotweak
Nicholas Nethercote [Sun, 17 Jul 2005 23:12:33 +0000 (23:12 +0000)] 
tweak

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

20 years agoIntroduced get_pszB() to cover several common cases.
Nicholas Nethercote [Sun, 17 Jul 2005 18:12:00 +0000 (18:12 +0000)] 
Introduced get_pszB() to cover several common cases.

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

20 years agotweaks
Nicholas Nethercote [Sun, 17 Jul 2005 18:00:57 +0000 (18:00 +0000)] 
tweaks

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

20 years agoIntroduce get_bszB() and get_bszB_as_is() to factor out some common
Nicholas Nethercote [Sun, 17 Jul 2005 17:55:42 +0000 (17:55 +0000)] 
Introduce get_bszB() and get_bszB_as_is() to factor out some common
combinations of function calls.

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

20 years agoReplace is_inuse_bszB() with is_inuse_block(), which is higher-level
Nicholas Nethercote [Sun, 17 Jul 2005 17:20:30 +0000 (17:20 +0000)] 
Replace is_inuse_bszB() with is_inuse_block(), which is higher-level
and thus makes the code that uses it easier to understand.

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

20 years agoRename 'other' as 'other_b' to make the fact it's a block more clear.
Nicholas Nethercote [Sun, 17 Jul 2005 17:12:24 +0000 (17:12 +0000)] 
Rename 'other' as 'other_b' to make the fact it's a block more clear.

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

20 years agoMake VG_(percentify)() cope if the denominator is zero.
Nicholas Nethercote [Sun, 17 Jul 2005 16:16:41 +0000 (16:16 +0000)] 
Make VG_(percentify)() cope if the denominator is zero.

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

20 years agoFix comments.
Nicholas Nethercote [Sun, 17 Jul 2005 16:12:59 +0000 (16:12 +0000)] 
Fix comments.

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

20 years agoFix build breakage.
Julian Seward [Thu, 14 Jul 2005 07:00:06 +0000 (07:00 +0000)] 
Fix build breakage.

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

20 years agoxml output for tool=none is fine too.
Cerion Armour-Brown [Wed, 13 Jul 2005 14:18:24 +0000 (14:18 +0000)] 
xml output for tool=none is fine too.

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

20 years agoFixed bug #88678 -- debug info is now correctly gathered for files
Nicholas Nethercote [Tue, 12 Jul 2005 23:28:59 +0000 (23:28 +0000)] 
Fixed bug #88678 -- debug info is now correctly gathered for files
containing spaces.

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

20 years agoRemove dead code.
Nicholas Nethercote [Sun, 10 Jul 2005 16:57:24 +0000 (16:57 +0000)] 
Remove dead code.

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

20 years agoRemove very old info about the CVS repo at Sourceforge.
Nicholas Nethercote [Sun, 10 Jul 2005 15:10:29 +0000 (15:10 +0000)] 
Remove very old info about the CVS repo at Sourceforge.

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

20 years agoGet rid of endianness assumptions in the PRRAn macro, which is
Julian Seward [Sun, 10 Jul 2005 00:55:26 +0000 (00:55 +0000)] 
Get rid of endianness assumptions in the PRRAn macro, which is
important for doing checks of scalar syscall args.

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

20 years agoClean up endianness macros a bit. Now pub_tool_basics.h defines
Julian Seward [Sun, 10 Jul 2005 00:53:42 +0000 (00:53 +0000)] 
Clean up endianness macros a bit.  Now pub_tool_basics.h defines
VG_LITTLEENDIAN or VG_BIGENDIAN and that's what should be used.

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

20 years agoFix up ppc32-linux stack unwinding.
Julian Seward [Sat, 9 Jul 2005 22:51:08 +0000 (22:51 +0000)] 
Fix up ppc32-linux stack unwinding.

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

20 years agoAdd comments from PaulM.
Julian Seward [Sat, 9 Jul 2005 10:43:45 +0000 (10:43 +0000)] 
Add comments from PaulM.

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

20 years agoAnother seemingly-small but critical change imported from 2.4.0-ppc:
Julian Seward [Sat, 9 Jul 2005 10:36:25 +0000 (10:36 +0000)] 
Another seemingly-small but critical change imported from 2.4.0-ppc:
don't read symbols from sections with w permissions.  For some reason
ppc-linux maps executables three times, not twice as on x86, and if
the w flag is ignored, we wind up reading debug info twice, getting
wrong redirections, and then it all goes to hell in a handbasket.

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

20 years agoImplement 8-byte-transfer cases for lwsi and stswi.
Julian Seward [Fri, 8 Jul 2005 21:55:22 +0000 (21:55 +0000)] 
Implement 8-byte-transfer cases for lwsi and stswi.

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

20 years agoImport sigframe stuff from Paul's tree. With this and the other changes
Julian Seward [Fri, 8 Jul 2005 18:28:40 +0000 (18:28 +0000)] 
Import sigframe stuff from Paul's tree.  With this and the other changes
today, it's possible to run bash on ppc32-linux.

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

20 years agoOops, this really should have been part of r4136.
Julian Seward [Fri, 8 Jul 2005 18:27:22 +0000 (18:27 +0000)] 
Oops, this really should have been part of r4136.

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

20 years agoFix/reinstate a whole bunch of syscalls.
Julian Seward [Fri, 8 Jul 2005 18:26:37 +0000 (18:26 +0000)] 
Fix/reinstate a whole bunch of syscalls.

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

20 years agoAssertion-failure-avoiding hacks from Paul's tree. I don't know why
Julian Seward [Fri, 8 Jul 2005 18:25:13 +0000 (18:25 +0000)] 
Assertion-failure-avoiding hacks from Paul's tree.  I don't know why
these are necessary, but they are.

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

20 years agoA longer gdb-attach delay for ppc
Julian Seward [Fri, 8 Jul 2005 18:24:04 +0000 (18:24 +0000)] 
A longer gdb-attach delay for ppc

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

20 years agoCheck the obvious ..
Julian Seward [Fri, 8 Jul 2005 18:23:40 +0000 (18:23 +0000)] 
Check the obvious ..

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

20 years agoAdded LibVEX_GuestPPC32_put_cr7(), LibVEX_GuestPPC32_put_cr()
Cerion Armour-Brown [Fri, 8 Jul 2005 13:34:47 +0000 (13:34 +0000)] 
Added LibVEX_GuestPPC32_put_cr7(), LibVEX_GuestPPC32_put_cr()

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

20 years agoAdded LibVEX_GuestPPC32_get_cr() for easy access to entire cond reg
Cerion Armour-Brown [Fri, 8 Jul 2005 13:10:35 +0000 (13:10 +0000)] 
Added LibVEX_GuestPPC32_get_cr() for easy access to entire cond reg
Filled in some missing defaults in LibVEX_GuestPPC32_initialise()

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

20 years agoComment wibble.
Julian Seward [Fri, 8 Jul 2005 09:46:53 +0000 (09:46 +0000)] 
Comment wibble.

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

20 years agoDon't bomb cachegrind at startup.
Julian Seward [Fri, 8 Jul 2005 09:45:43 +0000 (09:45 +0000)] 
Don't bomb cachegrind at startup.

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

20 years agoAdd a simple random number generator to m_libcbase so we don't have
Nicholas Nethercote [Fri, 8 Jul 2005 04:08:59 +0000 (04:08 +0000)] 
Add a simple random number generator to m_libcbase so we don't have
to use the one from glibc.

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

21 years agoCreate and use bigendian versions of MC_(helperc_{LOAD,STORE}V{2,4,8}).
Julian Seward [Fri, 8 Jul 2005 01:29:33 +0000 (01:29 +0000)] 
Create and use bigendian versions of MC_(helperc_{LOAD,STORE}V{2,4,8}).
This involved some serious nastyness from the Department of Cpp Abuse.

Memcheck still bombs on ppc32 for unknown reasons.

There are still endianness issues within these functions, I think.

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

21 years agoEnable a couple more syscalls.
Julian Seward [Fri, 8 Jul 2005 00:18:25 +0000 (00:18 +0000)] 
Enable a couple more syscalls.

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

21 years agoAdd a nested-functions test from Lee Kindness.
Julian Seward [Thu, 7 Jul 2005 14:29:21 +0000 (14:29 +0000)] 
Add a nested-functions test from Lee Kindness.

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

21 years agoMy life is one endless stream of small things which don't quite work.
Julian Seward [Thu, 7 Jul 2005 14:15:35 +0000 (14:15 +0000)] 
My life is one endless stream of small things which don't quite work.
This time it's gcc giving us an instruction with REX.W redundantly set
to 1.

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

21 years agoDon't allow vex to chase into any block for which we might want to create
Julian Seward [Thu, 7 Jul 2005 13:52:53 +0000 (13:52 +0000)] 
Don't allow vex to chase into any block for which we might want to create
a self-checking translation.

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

21 years agoComment-only-change: record subtle interactions between self-checks
Julian Seward [Thu, 7 Jul 2005 13:52:03 +0000 (13:52 +0000)] 
Comment-only-change: record subtle interactions between self-checks
and bb chasing.

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

21 years agoSelf-modifying-code check for amd64.
Julian Seward [Thu, 7 Jul 2005 13:20:31 +0000 (13:20 +0000)] 
Self-modifying-code check for amd64.

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

21 years agoFix bits and pieces needed to make self-checking-translations work
Julian Seward [Thu, 7 Jul 2005 13:12:04 +0000 (13:12 +0000)] 
Fix bits and pieces needed to make self-checking-translations work
on amd64.

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

21 years agoTidy up some loose ends in the self-checking-translations machinery,
Julian Seward [Thu, 7 Jul 2005 12:26:36 +0000 (12:26 +0000)] 
Tidy up some loose ends in the self-checking-translations machinery,
and unroll the adler32 loop in a not-very-successful attempt to reduce
the overhead of checking.

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

21 years agoUpdate expected output.
Julian Seward [Thu, 7 Jul 2005 11:32:37 +0000 (11:32 +0000)] 
Update expected output.

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