]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
18 years agoUpdate.
Nicholas Nethercote [Wed, 22 Nov 2006 11:41:07 +0000 (11:41 +0000)] 
Update.

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

18 years agoFix obscure bug in cache simulation, found by Ulrich Drepper.
Nicholas Nethercote [Wed, 22 Nov 2006 11:38:07 +0000 (11:38 +0000)] 
Fix obscure bug in cache simulation, found by Ulrich Drepper.

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

18 years agoAn extension of the previous commit: the vg_perf --tools option is so useful
Nicholas Nethercote [Wed, 22 Nov 2006 00:52:00 +0000 (00:52 +0000)] 
An extension of the previous commit:  the vg_perf --tools option is so useful
that I got rid of the "tools:" line in the .vg_perf files.

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

18 years agoAdd a useful --tools option to vg_perf, which lets you override the "tools"
Nicholas Nethercote [Wed, 22 Nov 2006 00:39:08 +0000 (00:39 +0000)] 
Add a useful --tools option to vg_perf, which lets you override the "tools"
line in the .vgperf files from the command line.

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

18 years agoClarify NON_SIMD_CALL instructions.
Nicholas Nethercote [Mon, 20 Nov 2006 22:02:40 +0000 (22:02 +0000)] 
Clarify NON_SIMD_CALL instructions.

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

18 years agoUpdate the statement of vex's amd64 register uses which was beginning
Julian Seward [Sun, 19 Nov 2006 01:36:44 +0000 (01:36 +0000)] 
Update the statement of vex's amd64 register uses which was beginning
to look like a work of fiction.

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

18 years agoRegtest for #135421 (long-form encoding of 'push{l,w} %reg')
Julian Seward [Sat, 18 Nov 2006 23:00:23 +0000 (23:00 +0000)] 
Regtest for #135421 (long-form encoding of 'push{l,w} %reg')

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

18 years agoMinor tidying: make initial_client_SP be a mandatory field in struct
Julian Seward [Sat, 18 Nov 2006 14:32:30 +0000 (14:32 +0000)] 
Minor tidying: make initial_client_SP be a mandatory field in struct
_IIFinaliseImageInfo.

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

18 years agoUpdate.
Julian Seward [Fri, 17 Nov 2006 20:04:43 +0000 (20:04 +0000)] 
Update.

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

18 years agoRedo the interface to m_initimg (module for setting up the initial
Julian Seward [Fri, 17 Nov 2006 20:00:57 +0000 (20:00 +0000)] 
Redo the interface to m_initimg (module for setting up the initial
client image) so it's less of an incomprehensible mess.  Basically the
idea is to have two standard functions, VG_(ii_create_image) and
VG_(ii_finalise_image), which communicate using the structure types
IICreateImageInfo and IIFinaliseImageInfo.  The types hold various
OS-specific bits of info.  A nice side effect is that m_main is tidied
up somewhat.

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

18 years agoCFI reader: when decoding the single (address) argument to
Julian Seward [Thu, 16 Nov 2006 12:21:52 +0000 (12:21 +0000)] 
CFI reader: when decoding the single (address) argument to
DW_CFA_set_loc, take into account any encoding info conveyed by the
augmentation string.  See big comment in the code.

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

18 years agoA test for JECXZ and JCXZ.
Julian Seward [Thu, 16 Nov 2006 11:01:48 +0000 (11:01 +0000)] 
A test for JECXZ and JCXZ.

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

18 years agoAdd a regtest for the false-uninitialised-value-report bug fixed by
Julian Seward [Tue, 14 Nov 2006 18:36:02 +0000 (18:36 +0000)] 
Add a regtest for the false-uninitialised-value-report bug fixed by
vex r1675.

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

18 years agoUpdate.
Julian Seward [Tue, 14 Nov 2006 15:58:04 +0000 (15:58 +0000)] 
Update.

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

18 years agoAdd a regtest for #126147.
Julian Seward [Tue, 14 Nov 2006 15:50:44 +0000 (15:50 +0000)] 
Add a regtest for #126147.

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

18 years agoAdd a regtest for #125959.
Julian Seward [Tue, 14 Nov 2006 15:07:57 +0000 (15:07 +0000)] 
Add a regtest for #125959.

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

18 years agochange void* to Addr in mutex helpers. patch by Bard Van Assche.
Dirk Mueller [Tue, 14 Nov 2006 14:32:46 +0000 (14:32 +0000)] 
change void* to Addr in mutex helpers. patch by Bard Van Assche.
I've bumped the tool interface version because it seems binary
incompatible.

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

18 years agoSyscall tidying.
Julian Seward [Fri, 10 Nov 2006 22:47:27 +0000 (22:47 +0000)] 
Syscall tidying.

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

18 years agoUpdate stuff that should be fixed or at least considered for fixing in
Julian Seward [Sat, 4 Nov 2006 18:49:54 +0000 (18:49 +0000)] 
Update stuff that should be fixed or at least considered for fixing in
3.2.2.

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

18 years agosignedness wibble
Julian Seward [Sat, 4 Nov 2006 18:18:14 +0000 (18:18 +0000)] 
signedness wibble

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

18 years agoFix a man page bug.
Nicholas Nethercote [Fri, 3 Nov 2006 19:54:21 +0000 (19:54 +0000)] 
Fix a man page bug.

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

18 years agoJust use the first two letters of the toolname as the abbreviation.
Nicholas Nethercote [Fri, 3 Nov 2006 19:37:50 +0000 (19:37 +0000)] 
Just use the first two letters of the toolname as the abbreviation.
Saves having to maintain a table of toolnames and abbreviations.

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

18 years agoFix for nested subdirs
Nicholas Nethercote [Fri, 3 Nov 2006 19:35:20 +0000 (19:35 +0000)] 
Fix for nested subdirs

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

18 years agoPerf script:
Nicholas Nethercote [Fri, 3 Nov 2006 19:30:33 +0000 (19:30 +0000)] 
Perf script:
- always trace into children
- addrcheck no longer exists

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

18 years agoMake the hashing in VG_(record_ExeContext) 64-bit clean and more
Julian Seward [Tue, 24 Oct 2006 21:43:38 +0000 (21:43 +0000)] 
Make the hashing in VG_(record_ExeContext) 64-bit clean and more
robust.  Also incrementally rearrange the hash chains during searches.

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

18 years agoUpdated docs on tool-writing. Moved them into the user manual.
Nicholas Nethercote [Mon, 23 Oct 2006 21:21:48 +0000 (21:21 +0000)] 
Updated docs on tool-writing.  Moved them into the user manual.

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

18 years agoAdd --valgrind-lib, to complement --valgrind, to the regtests script
Nicholas Nethercote [Mon, 23 Oct 2006 18:38:35 +0000 (18:38 +0000)] 
Add --valgrind-lib, to complement --valgrind, to the regtests script
(from Dave Nomura).

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

18 years agoUpdate for recent removal of Cachegrind tech docs.
Nicholas Nethercote [Sat, 21 Oct 2006 23:18:57 +0000 (23:18 +0000)] 
Update for recent removal of Cachegrind tech docs.

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

18 years agoLink to dissertation with a proper link.
Nicholas Nethercote [Sat, 21 Oct 2006 23:00:59 +0000 (23:00 +0000)] 
Link to dissertation with a proper link.

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

18 years agoRemoved the file format description from cg_annotate.in, because it's in the
Nicholas Nethercote [Sat, 21 Oct 2006 22:22:59 +0000 (22:22 +0000)] 
Removed the file format description from cg_annotate.in, because it's in the
Cachegrind docs.

Removed the Cachegrind tech docs, because they're so out of date to be
useless.  My PhD dissertation gives a much better description of how
Cachegrind works.  (I mentioned this in the Cachegrind user manual.)  The
only still-useful part of Cachegrind's tech docs, the output file format
description, I moved into the Cachegrind user manual.

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

18 years ago- Update comments about Cachegrind file format.
Nicholas Nethercote [Sat, 21 Oct 2006 18:22:35 +0000 (18:22 +0000)] 
- Update comments about Cachegrind file format.
- Be slightly more strict in accepting Cachegrind input files.

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

18 years agoAdd a FAQ.
Nicholas Nethercote [Fri, 20 Oct 2006 22:16:57 +0000 (22:16 +0000)] 
Add a FAQ.

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

18 years agoUpdate.
Julian Seward [Fri, 20 Oct 2006 10:00:26 +0000 (10:00 +0000)] 
Update.

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

18 years agoMove a couple of functions out of tool view.
Julian Seward [Thu, 19 Oct 2006 17:31:37 +0000 (17:31 +0000)] 
Move a couple of functions out of tool view.

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

18 years agoBack out 'memtrace' related stuff until status of it is established;
Julian Seward [Thu, 19 Oct 2006 13:23:59 +0000 (13:23 +0000)] 
Back out 'memtrace' related stuff until status of it is established;
having build system references to it without corresponding sources
causes build failures.

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

18 years agoFix bug in memcheck's instrumenter introduced in r6319. Big comment
Julian Seward [Thu, 19 Oct 2006 13:22:16 +0000 (13:22 +0000)] 
Fix bug in memcheck's instrumenter introduced in r6319.  Big comment
in the code explains it.  Sigh.  Why can't anything be simple?

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

18 years agoImprove comments.
Nicholas Nethercote [Wed, 18 Oct 2006 23:46:26 +0000 (23:46 +0000)] 
Improve comments.

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

18 years agoMove VG_BUGS_TO to pub_tool_basics.h so that Nulgrind need not import
Nicholas Nethercote [Wed, 18 Oct 2006 21:50:26 +0000 (21:50 +0000)] 
Move VG_BUGS_TO to pub_tool_basics.h so that Nulgrind need not import
pub_tool_libcassert.h.

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

18 years agoObserve the rule that requires all instrumenters to copy verbatim any
Julian Seward [Wed, 18 Oct 2006 12:41:55 +0000 (12:41 +0000)] 
Observe the rule that requires all instrumenters to copy verbatim any
IR preamble preceding the first IMark.

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

18 years agoUpdate.
Nicholas Nethercote [Wed, 18 Oct 2006 06:25:34 +0000 (06:25 +0000)] 
Update.

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

18 years agoFix installation of includes.
Julian Seward [Wed, 18 Oct 2006 01:16:57 +0000 (01:16 +0000)] 
Fix installation of includes.

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

18 years agoFix regression caused by recent merging, picked up by none/tests/shell.
Julian Seward [Wed, 18 Oct 2006 00:34:21 +0000 (00:34 +0000)] 
Fix regression caused by recent merging, picked up by none/tests/shell.

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

18 years agoUse house types.
Julian Seward [Wed, 18 Oct 2006 00:33:46 +0000 (00:33 +0000)] 
Use house types.

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

18 years ago- Fix a subtle alignment-check bug I introduced into mc_die_mem_stack_12
Julian Seward [Tue, 17 Oct 2006 23:14:42 +0000 (23:14 +0000)] 
- Fix a subtle alignment-check bug I introduced into mc_die_mem_stack_12

- Add comments to many of the functions to make explicit their
  alignment-check logic

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

18 years agoThis got a bit messed up during recent merging; tidy up.
Julian Seward [Tue, 17 Oct 2006 21:06:58 +0000 (21:06 +0000)] 
This got a bit messed up during recent merging; tidy up.

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

18 years agoAdd a simple script which drives 'kdiff3' through a large source tree
Julian Seward [Tue, 17 Oct 2006 21:04:15 +0000 (21:04 +0000)] 
Add a simple script which drives 'kdiff3' through a large source tree
(3 such trees, really).  This makes it easy to do 3 way merges of such
trees and easily stop and resume without losing work.

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

18 years agoGet rid of # comments in assembly files.
Julian Seward [Tue, 17 Oct 2006 20:47:13 +0000 (20:47 +0000)] 
Get rid of # comments in assembly files.

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

18 years agoEnsure VG_(tt_fastN) always stays as an array of NULLs if BB profiling
Julian Seward [Tue, 17 Oct 2006 20:39:11 +0000 (20:39 +0000)] 
Ensure VG_(tt_fastN) always stays as an array of NULLs if BB profiling
isn't in effect.  This should cause the dispatcher to segfault if it
should ever inadvertantly end up running the profiled dispatch loop
when it shouldn't.  [The alternative is to run slowly for no apparent
reason.]

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

18 years agoIncrease # bbs in profile.
Julian Seward [Tue, 17 Oct 2006 13:58:17 +0000 (13:58 +0000)] 
Increase # bbs in profile.

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

18 years agoAIX build fixes.
Julian Seward [Tue, 17 Oct 2006 12:49:31 +0000 (12:49 +0000)] 
AIX build fixes.

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

18 years agoUpdated expected with-TOC output.
Julian Seward [Tue, 17 Oct 2006 11:33:23 +0000 (11:33 +0000)] 
Updated expected with-TOC output.

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

18 years agoChange a bunch of pointer <-> int casts to pointer <-> long casts so
Julian Seward [Tue, 17 Oct 2006 11:09:03 +0000 (11:09 +0000)] 
Change a bunch of pointer <-> int casts to pointer <-> long casts so
as to stop gcc complaining so much on 64-bit platforms.

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

18 years agoUpdate expected output.
Julian Seward [Tue, 17 Oct 2006 11:08:12 +0000 (11:08 +0000)] 
Update expected output.

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

18 years agoMerge r6207:
Julian Seward [Tue, 17 Oct 2006 02:30:17 +0000 (02:30 +0000)] 
Merge r6207:

Make vg_perf work on AIX, by using the POSIX-portability flag for
/usr/bin/time.

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

18 years agoMerge r6201: Fix compile warning on aix.
Julian Seward [Tue, 17 Oct 2006 02:28:53 +0000 (02:28 +0000)] 
Merge r6201: Fix compile warning on aix.

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

18 years agoMerge r6205:
Julian Seward [Tue, 17 Oct 2006 02:27:41 +0000 (02:27 +0000)] 
Merge r6205:

AIX requires that in the case of MAP_ANONYMOUS, fildes must be -1.

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

18 years agoUpdate 'expected' default translation size (partial merge of r6214).
Julian Seward [Tue, 17 Oct 2006 02:25:50 +0000 (02:25 +0000)] 
Update 'expected' default translation size (partial merge of r6214).

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

18 years agoDon't use -C0 for diff; apparently this is a GNU-ism.
Julian Seward [Tue, 17 Oct 2006 02:24:51 +0000 (02:24 +0000)] 
Don't use -C0 for diff; apparently this is a GNU-ism.

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

18 years agoUpdate expected translation sizes, + whitespace changes (??)
Julian Seward [Tue, 17 Oct 2006 02:24:18 +0000 (02:24 +0000)] 
Update expected translation sizes, + whitespace changes (??)

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

18 years agoTrack VG_(am_find_nsegment) const-ness change.
Julian Seward [Tue, 17 Oct 2006 02:23:23 +0000 (02:23 +0000)] 
Track VG_(am_find_nsegment) const-ness change.

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

18 years agoMerge r6216:
Julian Seward [Tue, 17 Oct 2006 02:21:55 +0000 (02:21 +0000)] 
Merge r6216:

Fix all the places where gcc complains about casts from pointers
(presumably 64 bit) to integers of different size (in this case,
32-bit int).  This makes it compile cleanly on 64-bit AIX and also
means it doesn't crash :-)

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

18 years agoMerge r6214 (some parts):
Julian Seward [Tue, 17 Oct 2006 02:21:17 +0000 (02:21 +0000)] 
Merge r6214 (some parts):

Futz with the estimated-translation sizes to make them more plausible [..]

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

18 years agoMerge from branches/AIX5:
Julian Seward [Tue, 17 Oct 2006 02:16:44 +0000 (02:16 +0000)] 
Merge from branches/AIX5:
- AIX5 support
- get rid of VG_(nanosleep)
- track SysRes changes

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

18 years agoTrack SysRes change.
Julian Seward [Tue, 17 Oct 2006 02:15:17 +0000 (02:15 +0000)] 
Track SysRes change.

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

18 years agoChange authorship.
Julian Seward [Tue, 17 Oct 2006 02:11:55 +0000 (02:11 +0000)] 
Change authorship.

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

18 years agoFinal merges from branches/AIX5; mostly tracking of SysRes change.
Julian Seward [Tue, 17 Oct 2006 02:10:42 +0000 (02:10 +0000)] 
Final merges from branches/AIX5; mostly tracking of SysRes change.

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

18 years agoMerge r6217 (also comment cosmetics):
Julian Seward [Tue, 17 Oct 2006 02:08:26 +0000 (02:08 +0000)] 
Merge r6217 (also comment cosmetics):

Use 'ctr' rather than 'lr' for indirect jumps, so as not to trash the
branch predictor(s) for returns from generated code.  Makes a big
difference on ppc970 (and POWER4).

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

18 years agoTrack VG_(am_find_nsegment) const-ness change.
Julian Seward [Tue, 17 Oct 2006 02:05:14 +0000 (02:05 +0000)] 
Track VG_(am_find_nsegment) const-ness change.

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

18 years agoMerge r6159 (parts of):
Julian Seward [Tue, 17 Oct 2006 02:03:11 +0000 (02:03 +0000)] 
Merge r6159 (parts of):

Minor build-system adjustments, mostly.

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

18 years agoMerge r6157:
Julian Seward [Tue, 17 Oct 2006 02:01:12 +0000 (02:01 +0000)] 
Merge r6157:

- add extra fields to ThreadOSState to make thread cancellation sort-of
  work on AIX5

- add function VG_(count_runnable_threads)

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

18 years agoMerge r6156:
Julian Seward [Tue, 17 Oct 2006 02:00:29 +0000 (02:00 +0000)] 
Merge r6156:

AIX5 support.  No changes in logic; just better factorisation of what
is already here.

- add AIX definitions for VG_UCONTEXT_INSTR_PTR et al

- add abstractions VKI_SIGINFO_si_addr and VKI_SIGINFO_si_pid
  to enable the rest of the code to be uniform

- track other minor changes: SysRes, VG_(am_find_nsegment)
  constness, rearrangement of VG_(sigtimedwait).

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

18 years agoMerge r6154:
Julian Seward [Tue, 17 Oct 2006 01:59:30 +0000 (01:59 +0000)] 
Merge r6154:

Track SysRes change, and remove unused stuff in header.  Perhaps
this should be folded into m_initimg in the fullness of time.

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

18 years agoMerge r6153: Add client startup code for AIX5.
Julian Seward [Tue, 17 Oct 2006 01:54:54 +0000 (01:54 +0000)] 
Merge r6153: Add client startup code for AIX5.

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

18 years agoMerge r6152: Add dummy cases for AIX5.
Julian Seward [Tue, 17 Oct 2006 01:54:20 +0000 (01:54 +0000)] 
Merge r6152: Add dummy cases for AIX5.

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

18 years agoMerge r6150 and 6151:
Julian Seward [Tue, 17 Oct 2006 01:53:34 +0000 (01:53 +0000)] 
Merge r6150 and 6151:
- track SysRes changes
- add AIX support

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

18 years agoMerge r6149:
Julian Seward [Tue, 17 Oct 2006 01:52:05 +0000 (01:52 +0000)] 
Merge r6149:

Generalise the machinery developed for function intercepts/wrapping
ppc64-linux, in which we have to deal with the big extra complexity
resulting from TOC pointers.  This generalises it to work in 32-bit
mode too.

Add helpers to deal with AIX stack redzones.

Track VG_(am_find_nsegment) constness change and other minor
changes to the m_aspacemgr interface.

(All platforms): use the new VexMiscInfo structure to tell VEX about
host and guest ABI conventions.

This module could do with further tidying up and documentation.

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

18 years agoMerge r6148:
Julian Seward [Tue, 17 Oct 2006 01:51:24 +0000 (01:51 +0000)] 
Merge r6148:

Minor adjustments to the scheduler, mostly cosmetic.

- rename VG_(kill_thread) to VG_(get_thread_out_of_syscall), which
  is what it actually does.

- Remove 'semaphore' terminology in places and use 'lock' instead.

- Give an extra 'HChar* who' arg to VG_(set_running) and
  VG_(set_sleeping), which is printed when --trace-sched=yes.
  This makes it easier to make sense of lock ownership changes
  from the debug output.

- various other improvements to debug printing

- add a kludge to encourage the AIX scheduler to switch threads
  more often when more than one is runnable (am not claiming to
  understand this); otherwise CPU starvation can appear to happen

- more assertions in sema.c (the pipe-based lock); cycle the token
  through 'A' to 'Z' to make strace/truss output more understandable;
  fix longstanding bug wherein sema_down() tries to read two bytes
  even though sema_up only writes one.

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

18 years agoMerge r6146:
Julian Seward [Tue, 17 Oct 2006 01:50:31 +0000 (01:50 +0000)] 
Merge r6146:

Generally tidy up, and add bindings for both gcc and xlc's C/C++
libraries on AIX.

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

18 years agoMerge r6143: Deal with ppc{32,64}-aix5.
Julian Seward [Tue, 17 Oct 2006 01:49:50 +0000 (01:49 +0000)] 
Merge r6143: Deal with ppc{32,64}-aix5.

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

18 years agoMerge r6142:
Julian Seward [Tue, 17 Oct 2006 01:48:41 +0000 (01:48 +0000)] 
Merge r6142:

Minor enhancements, including dealing with 6-digit PIDs, dealing with
object names of the form "foo.a(bar.o)", and removing debuglog level
zero output.

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

18 years agoMerge r6141: Update
Julian Seward [Tue, 17 Oct 2006 01:48:02 +0000 (01:48 +0000)] 
Merge r6141: Update

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

18 years agoMerge r6140 (some of):
Julian Seward [Tue, 17 Oct 2006 01:47:30 +0000 (01:47 +0000)] 
Merge r6140 (some of):

- track SysRes changes

- track VG_(am_find_nsegment) const-ness change

- increase number of client syscall args supported from 6 to 8

- simplify type SyscallStatus.  Simply hold a copy of the SysRes
  for the syscall rather than have this be a data structure
  incorporating something very similar to the fields of a SysRes,
  and more besides.  Change various macros in priv_types_n_macros.h
  to match.

- syswrap-main.c: instantiate the various impedance-matching
  functions for AIX.

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

18 years agoMerge r6139:
Julian Seward [Tue, 17 Oct 2006 01:46:55 +0000 (01:46 +0000)] 
Merge r6139:

- Minor changes for mpxlc

- kludge; add option "initkludge" to cause PMPI_Init to return
  &mpiwrap_walk_type_EXTERNALLY_VISIBLE
  and adjust mpiwrap_type_test.c accordingly

and also add an export script so that libmpiwrap.so is built
correctly on AIX5 (r????).

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

18 years agoMerge r6138:
Julian Seward [Tue, 17 Oct 2006 01:44:36 +0000 (01:44 +0000)] 
Merge r6138:

Convert some VG_ names (global visibility) into ML_s (module scope).

and also handle Z-encoded 'ZL' == (   and 'ZR' == )
for intercept/wrapper fn names

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

18 years agoMerge r6136:
Julian Seward [Tue, 17 Oct 2006 01:42:40 +0000 (01:42 +0000)] 
Merge r6136:

Track SysRes change; support bigpage allocation on AIX; make the
client-arena superblocks much bigger on AIX.

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

18 years agoThis should have been part of r6271.
Julian Seward [Tue, 17 Oct 2006 01:42:00 +0000 (01:42 +0000)] 
This should have been part of r6271.

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

18 years agoMerge r6134:
Julian Seward [Tue, 17 Oct 2006 01:41:17 +0000 (01:41 +0000)] 
Merge r6134:

Accumulate statistics about the number of searches in the errors and
suppressions lists, and rearrange the suppressions list when searching
to reduce cost of future searches.

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

18 years agoMerge r6133:
Julian Seward [Tue, 17 Oct 2006 01:40:33 +0000 (01:40 +0000)] 
Merge r6133:

Inline stackPush and stackPop and placate gcc's resulting concerns
about uninitialised variables.

and also change ownership.

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

18 years agoMerge r6132:
Julian Seward [Tue, 17 Oct 2006 01:39:30 +0000 (01:39 +0000)] 
Merge r6132:

Minor changes for redirection on AIX.  The only significant change is
that it now checks for, warns about and disallows, attempts to
redirect to, or wrap with, a function for which no TOC pointer can be
found, since that would be really asking for trouble (a segfault).

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

18 years agoMerge r6131:
Julian Seward [Tue, 17 Oct 2006 01:38:48 +0000 (01:38 +0000)] 
Merge r6131:

Change the SysRes type so as to represent both the error value and the
non-error result at the same time.

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

18 years agoMerge r6130:
Julian Seward [Tue, 17 Oct 2006 01:38:13 +0000 (01:38 +0000)] 
Merge r6130:

- AIX implementations of various stuff, nothing surprising.

- For all platforms: make VG_(read) and VG_(write) return (negative)
  actual error values rather than producing -1 for all failures.

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

18 years agoMerge r6129:
Julian Seward [Tue, 17 Oct 2006 01:37:10 +0000 (01:37 +0000)] 
Merge r6129:

Changes to support XCOFF:

- allow modules to have 'member names' as well as file names.  A member
  name is a "foo.o" name inside a "bar.a"; necessary as AIX
  keeps all its dynamic libraries in .a files.

- rename the type RiLoc to DiLoc (this holds a line number indication).
  No idea why it was called RiLoc in the first place.

- trace changes in type SysRes

- implement VG_(di_aix5_notify_segchange)

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

18 years agoMerge r6128:
Julian Seward [Tue, 17 Oct 2006 01:36:37 +0000 (01:36 +0000)] 
Merge r6128:

Interface changes for m_debuginfo:
- new fn VG_(di_aix5_notify_segchange) to notify XCOFF loads/unloads
- new fn VG_(lookup_symbol_SLOW) for looking up the address of a fn
  given its name and soname

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

18 years agoMerge r6127: Extend for AIX5. Nothing surprising here.
Julian Seward [Tue, 17 Oct 2006 01:35:58 +0000 (01:35 +0000)] 
Merge r6127: Extend for AIX5.  Nothing surprising here.

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

18 years agoMerge r6126:
Julian Seward [Tue, 17 Oct 2006 01:34:57 +0000 (01:34 +0000)] 
Merge r6126:

New option --sym-offsets=yes|no [no], which causes all symbols to be
shown in the form 'name+offset'.  Mostly useful for debugging Valgrind
itself.

Also move command-line-error functions from m_main into m_options.

[Will move them back shortly.]

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

18 years agoMerge r6125: Function-wrapping macros and associated stuff, for AIX.
Julian Seward [Tue, 17 Oct 2006 01:32:48 +0000 (01:32 +0000)] 
Merge r6125: Function-wrapping macros and associated stuff, for AIX.

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

18 years agoMerge r6123:
Julian Seward [Tue, 17 Oct 2006 01:31:58 +0000 (01:31 +0000)] 
Merge r6123:

Extensions for unwinding stacks on ppc32-aix5 and ppc64-aix5.  Also,
extend the mechanism developed for ppc64-linux for fishing return
addresses out of the thread's redirection-stack when needed.

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

18 years agoMerge r6121: Don't define uchar; it might already be defined.
Julian Seward [Tue, 17 Oct 2006 01:31:27 +0000 (01:31 +0000)] 
Merge r6121: Don't define uchar; it might already be defined.

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

18 years agoMerge r6120:
Julian Seward [Tue, 17 Oct 2006 01:30:47 +0000 (01:30 +0000)] 
Merge r6120:

Get rid of VG_(sigtimedwait) and replace it a simpler version,
VG_(sigtimedwait_zero), which polls for signals and returns
immediately.  AIX doesn't have a sigtimedwait syscall, so in that case
try and implement VG_(sigtimedwait_zero) using various other signal
syscalls.

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

18 years agoMerge r6119:
Julian Seward [Tue, 17 Oct 2006 01:30:07 +0000 (01:30 +0000)] 
Merge r6119:

Changes to this interface to facilitate actions needed by AIX5.

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