]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoSuppress a leak in setenv(). Fixes bug 188572.
Nicholas Nethercote [Fri, 26 Jun 2009 07:00:00 +0000 (07:00 +0000)] 
Suppress a leak in setenv().  Fixes bug 188572.

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

16 years agoAn fd in the Darwin launcher wasn't being closed.
Nicholas Nethercote [Fri, 26 Jun 2009 04:35:51 +0000 (04:35 +0000)] 
An fd in the Darwin launcher wasn't being closed.

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

16 years agoFix 'make check' for automake-1.7. Fixes bugs 197898 and 197901.
Nicholas Nethercote [Thu, 25 Jun 2009 23:46:23 +0000 (23:46 +0000)] 
Fix 'make check' for automake-1.7.  Fixes bugs 197898 and 197901.

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

16 years agoUse the value set in the environment variable DRD_SEGMENT_MERGING_INTERVAL if the...
Bart Van Assche [Wed, 24 Jun 2009 18:35:02 +0000 (18:35 +0000)] 
Use the value set in the environment variable DRD_SEGMENT_MERGING_INTERVAL if the segment merging interval has not been specified as a command-line option.

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

16 years agoChanged default segment merging interval from 64 to 10.
Bart Van Assche [Wed, 24 Jun 2009 18:34:10 +0000 (18:34 +0000)] 
Changed default segment merging interval from 64 to 10.

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

16 years agoAdded tool option --drd-stats=yes.
Bart Van Assche [Wed, 24 Jun 2009 18:33:47 +0000 (18:33 +0000)] 
Added tool option --drd-stats=yes.

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

16 years agoIn VG_(get_changed_segments) use dynamic memory allocation rather than
Nicholas Nethercote [Wed, 24 Jun 2009 08:32:42 +0000 (08:32 +0000)] 
In VG_(get_changed_segments) use dynamic memory allocation rather than
static memory allocation to avoid hardwiring an upper limit on CSS_SIZE.

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

16 years agoRemove some unnecessary tests.
Nicholas Nethercote [Wed, 24 Jun 2009 08:32:07 +0000 (08:32 +0000)] 
Remove some unnecessary tests.

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

16 years agoThe previous commit broke the 32-bit build, which is now fixed.
Bart Van Assche [Wed, 24 Jun 2009 06:44:49 +0000 (06:44 +0000)] 
The previous commit broke the 32-bit build, which is now fixed.

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

16 years agoAdd support for various aio_*() syscalls on Darwin. With them, Quicktime
Nicholas Nethercote [Wed, 24 Jun 2009 06:25:36 +0000 (06:25 +0000)] 
Add support for various aio_*() syscalls on Darwin.  With them, Quicktime
runs, albeit incredibly slowly.

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

16 years agoSuppress a Cond error in pthread_rwlock_init(). Fixes bug 196528.
Nicholas Nethercote [Wed, 24 Jun 2009 05:01:41 +0000 (05:01 +0000)] 
Suppress a Cond error in pthread_rwlock_init().  Fixes bug 196528.

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

16 years agoAdd a comment.
Nicholas Nethercote [Wed, 24 Jun 2009 04:40:22 +0000 (04:40 +0000)] 
Add a comment.

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

16 years agoSupport and test mincore() on Darwin.
Nicholas Nethercote [Wed, 24 Jun 2009 04:15:29 +0000 (04:15 +0000)] 
Support and test mincore() on Darwin.

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

16 years agoEnable mincore() on AMD64/Linux. Hopefully fixes bug 197591.
Nicholas Nethercote [Wed, 24 Jun 2009 04:02:19 +0000 (04:02 +0000)] 
Enable mincore() on AMD64/Linux.  Hopefully fixes bug 197591.

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

16 years agoAbort if a dir is given to --suppressions. Fixes bug 197456.
Nicholas Nethercote [Wed, 24 Jun 2009 03:49:19 +0000 (03:49 +0000)] 
Abort if a dir is given to --suppressions.  Fixes bug 197456.

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

16 years agoThis commit merges the BUILD_TWEAKS branch onto the trunk. It has the
Nicholas Nethercote [Wed, 24 Jun 2009 00:37:09 +0000 (00:37 +0000)] 
This commit merges the BUILD_TWEAKS branch onto the trunk.  It has the
following improvements:

- Arch/OS/platform-specific files are now included/excluded via the
  preprocessor, rather than via the build system.  This is more consistent
  (we use the pre-processor for small arch/OS/platform-specific chunks
  within files) and makes the build system much simpler, as the sources for
  all programs are the same on all platforms.

- Vast amounts of cut+paste Makefile.am code has been factored out.  If a
  new platform is implemented, you need to add 11 extra Makefile.am lines.
  Previously it was over 100 lines.

- Vex has been autotoolised.  Dependency checking now works in Vex (no more
  incomplete builds).  Parallel builds now also work.  --with-vex no longer
  works;  it's little use and a pain to support.  VEX/Makefile is still in
  the Vex repository and gets overwritten at configure-time;  it should
  probably be renamed Makefile-gcc to avoid possible problems, such as
  accidentally committing a generated Makefile.  There's a bunch of hacky
  copying to deal with the fact that autotools don't handle same-named files
  in different directories.  Julian plans to rename the files to avoid this
  problem.

- Various small Makefile.am things have been made more standard automake
  style, eg. the use of pkginclude/pkglib prefixes instead of rolling our
  own.

- The existing five top-level Makefile.am include files have been
  consolidated into three.

- Most Makefile.am files now are structured more clearly, with comment
  headers separating sections, declarations relating to the same things next
  to each other, better spacing and layout, etc.

- Removed the unused exp-ptrcheck/tests/x86 directory.

- Renamed some XML files.

- Factored out some duplicated dSYM handling code.

- Split auxprogs/ into auxprogs/ and mpi/, which allowed the resulting
  Makefile.am files to be much more standard.

- Cleaned up m_coredump by merging a bunch of files that had been
  overzealously separated.

The net result is 630 fewer lines of Makefile.am code, or 897 if you exclude
the added Makefile.vex.am, or 997 once the hacky file copying for Vex is
removed.  And the build system is much simpler.

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

16 years agoFixed typo.
Bart Van Assche [Mon, 22 Jun 2009 18:06:29 +0000 (18:06 +0000)] 
Fixed typo.

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

16 years agoStatistics: fixed bug introduced in r10356.
Bart Van Assche [Sun, 21 Jun 2009 18:09:02 +0000 (18:09 +0000)] 
Statistics: fixed bug introduced in r10356.

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

16 years agoStatistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls...
Bart Van Assche [Sun, 21 Jun 2009 18:08:31 +0000 (18:08 +0000)] 
Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls as level one bitmap creation events.

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

16 years agoCombined DRD_(thread_new_segment)() and DRD_(thread_combine_vc_sync)()
Bart Van Assche [Sun, 21 Jun 2009 18:07:35 +0000 (18:07 +0000)] 
Combined DRD_(thread_new_segment)() and DRD_(thread_combine_vc_sync)()
into the function DRD_(thread_new_segment_and_combine_vc)() because
before DRD_(thread_combine_vc_sync)() was called the function
DRD_(thread_new_segment)() was always called.

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

16 years agoMade --drd-stats=yes output even more verbose.
Bart Van Assche [Sun, 21 Jun 2009 11:51:23 +0000 (11:51 +0000)] 
Made --drd-stats=yes output even more verbose.

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

16 years agoMerged revisions 10129:10130 from the DRDDEV branch to the trunk.
Bart Van Assche [Sun, 21 Jun 2009 10:11:15 +0000 (10:11 +0000)] 
Merged revisions 10129:10130 from the DRDDEV branch to the trunk.

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

16 years agoUpdated code for statistics printed by --drd-stats=yes.
Bart Van Assche [Sun, 21 Jun 2009 09:26:27 +0000 (09:26 +0000)] 
Updated code for statistics printed by --drd-stats=yes.

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

16 years agoGeneralized a suppression pattern.
Bart Van Assche [Sat, 20 Jun 2009 17:42:59 +0000 (17:42 +0000)] 
Generalized a suppression pattern.

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

16 years agoUpdated test plan.
Bart Van Assche [Sat, 20 Jun 2009 10:56:45 +0000 (10:56 +0000)] 
Updated test plan.

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

16 years agoReran SPLASH-2 benchmark.
Bart Van Assche [Sat, 20 Jun 2009 10:55:12 +0000 (10:55 +0000)] 
Reran SPLASH-2 benchmark.

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

16 years agoMake the sys_newlstat wrapper more like those of similar *stat() syscalls.
Nicholas Nethercote [Mon, 15 Jun 2009 07:43:50 +0000 (07:43 +0000)] 
Make the sys_newlstat wrapper more like those of similar *stat() syscalls.

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

16 years agoCallgrind: fix instrumentation for arbitrary events per guest instruction
Josef Weidendorfer [Mon, 15 Jun 2009 00:16:36 +0000 (00:16 +0000)] 
Callgrind: fix instrumentation for arbitrary events per guest instruction

(should fix bug 169505)

This uses the same event queue scheme as cachegrind and lackey, and
same kind of helpers (1/2/3 Ir events, Ir+Dr, Dr, Ir+Dw, Dw).
Note that in contrast to Cachegrind, Callgrind interpretes a modify event
as Dw (otherwise the cache model generating write back events would not work).

Callgrind uses per-(guest)instruction event sets for cost counters.
An per-instruction eventset is incrementally extended as events for the
same guest instruction are flushed. Event sets always start with Ir counters,
but depending on Dr/Dw order afterwards, there exist IrDr(Dw) and IrDw(Dr).
Per-instruction event sets now are consistently named according to event ordering.
Event set "sim" is a subset of "full", was never used and was removed.

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

16 years agoAvoid variable name "new", use more concrete name instead
Josef Weidendorfer [Mon, 15 Jun 2009 00:16:32 +0000 (00:16 +0000)] 
Avoid variable name "new", use more concrete name instead

Also confusing for syntax highlighter/indexer of some editors/IDEs

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

16 years agoAdded #include <stdint.h>.
Bart Van Assche [Sun, 14 Jun 2009 08:18:44 +0000 (08:18 +0000)] 
Added #include <stdint.h>.

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

16 years agoSkip the pth_create_chain test on ppc.
Bart Van Assche [Sat, 13 Jun 2009 08:58:20 +0000 (08:58 +0000)] 
Skip the pth_create_chain test on ppc.

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

16 years agoTweak the README -- make its text match the website, get rid of some of the
Nicholas Nethercote [Fri, 12 Jun 2009 23:40:04 +0000 (23:40 +0000)] 
Tweak the README -- make its text match the website, get rid of some of the
more detailed explanation (if they're reading the README, we probably don't
need to convince them about Valgrind's wonderfulness).

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

16 years agoGet rid of ACKNOWLEDGEMENTS, because it overlaps hugely with AUTHORS.
Nicholas Nethercote [Fri, 12 Jun 2009 07:38:24 +0000 (07:38 +0000)] 
Get rid of ACKNOWLEDGEMENTS, because it overlaps hugely with AUTHORS.
Improve AUTHORS a bit at the same time.

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

16 years agoAdd some cases to darwin/scalar.c, and tweak the macros used a little.
Nicholas Nethercote [Thu, 11 Jun 2009 00:59:06 +0000 (00:59 +0000)] 
Add some cases to darwin/scalar.c, and tweak the macros used a little.

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

16 years agoAdd wrappers for shmat() and shmdt() on Darwin. Fixes bug 191271.
Nicholas Nethercote [Wed, 10 Jun 2009 23:26:13 +0000 (23:26 +0000)] 
Add wrappers for shmat() and shmdt() on Darwin.  Fixes bug 191271.

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

16 years agoMove the Darwin _nocancel tests to a different file so they can be tested
Nicholas Nethercote [Wed, 10 Jun 2009 23:09:40 +0000 (23:09 +0000)] 
Move the Darwin _nocancel tests to a different file so they can be tested
properly.

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

16 years agoAdded a wrapper and test for exchangedata() on Darwin. Fixes bug 195860.
Nicholas Nethercote [Wed, 10 Jun 2009 22:58:27 +0000 (22:58 +0000)] 
Added a wrapper and test for exchangedata() on Darwin.  Fixes bug 195860.

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

16 years ago- Added more comments in DRD's malloc wrappers.
Bart Van Assche [Wed, 10 Jun 2009 19:24:20 +0000 (19:24 +0000)] 
- Added more comments in DRD's malloc wrappers.
- Fixed memory allocation counters.
- Client memory is now freed in the realloc() wrapper in all cases where
  it should be freed.

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

16 years agoUpdated ignore list.
Bart Van Assche [Wed, 10 Jun 2009 17:52:10 +0000 (17:52 +0000)] 
Updated ignore list.

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

16 years agoAdded test code for realloc().
Bart Van Assche [Wed, 10 Jun 2009 17:51:52 +0000 (17:51 +0000)] 
Added test code for realloc().

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

16 years agoImplement and test wrappers for lstat_extended, stat64_extended,
Nicholas Nethercote [Wed, 10 Jun 2009 06:13:34 +0000 (06:13 +0000)] 
Implement and test wrappers for lstat_extended, stat64_extended,
lstat64_extended, and improve the existing wrapper for stat_extended.

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

16 years agoDarwin syscall wrapper cleanups:
Nicholas Nethercote [Wed, 10 Jun 2009 04:11:56 +0000 (04:11 +0000)] 
Darwin syscall wrapper cleanups:
- Put Darwin syscall DECL_TEMPLATEs in syscall order.
- Removed the "sys_" prefix from Darwin-specific wrappers, it's not
  necessary.  Renamed a couple of other wrappers similarly.
- Removed the sys_fcntl64 Darwin wrapper, it was unused.
- Improved some code layout.
Overall this removes 6 "DDD"/"GrP" fixme comments.

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

16 years agoUpdate scalar.stderr.exp; this should have gone in with r10288.
Nicholas Nethercote [Wed, 10 Jun 2009 03:30:07 +0000 (03:30 +0000)] 
Update scalar.stderr.exp;  this should have gone in with r10288.

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

16 years agoAdd wrappers for sem_wait and sem_trywait on Darwin. Also change the layout
Nicholas Nethercote [Wed, 10 Jun 2009 01:23:26 +0000 (01:23 +0000)] 
Add wrappers for sem_wait and sem_trywait on Darwin.  Also change the layout
of some Darwin syscall stuff.

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

16 years agoHandle shmctl on Darwin. From bug 191271.
Nicholas Nethercote [Tue, 9 Jun 2009 23:44:42 +0000 (23:44 +0000)] 
Handle shmctl on Darwin.  From bug 191271.

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

16 years agoFix URB ioctl handling. Patch from Hector Martin (bug 191095).
Nicholas Nethercote [Tue, 9 Jun 2009 23:03:02 +0000 (23:03 +0000)] 
Fix URB ioctl handling.  Patch from Hector Martin (bug 191095).

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

16 years agoAvoid recursion in VG_(exit).
Nicholas Nethercote [Tue, 9 Jun 2009 22:46:32 +0000 (22:46 +0000)] 
Avoid recursion in VG_(exit).

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

16 years agoHandle another Linux ioctl. Patch from Jay Foad.
Nicholas Nethercote [Tue, 9 Jun 2009 22:31:00 +0000 (22:31 +0000)] 
Handle another Linux ioctl.  Patch from Jay Foad.

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

16 years agoRemove callgrind/docs/index.xml, which is a relic from when Callgrind was
Nicholas Nethercote [Tue, 9 Jun 2009 22:25:00 +0000 (22:25 +0000)] 
Remove callgrind/docs/index.xml, which is a relic from when Callgrind was
distributed by itself.

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

16 years agoFixed bug in DRD's realloc() wrapper.
Bart Van Assche [Tue, 9 Jun 2009 11:12:07 +0000 (11:12 +0000)] 
Fixed bug in DRD's realloc() wrapper.

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

16 years agoAbort if a --log-file filename begins with a '~'.
Nicholas Nethercote [Tue, 9 Jun 2009 00:50:45 +0000 (00:50 +0000)] 
Abort if a --log-file filename begins with a '~'.

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

16 years agoSuppress some still-reachable warnings that come up for "Hello World" on
Nicholas Nethercote [Tue, 9 Jun 2009 00:10:20 +0000 (00:10 +0000)] 
Suppress some still-reachable warnings that come up for "Hello World" on
Darwin.

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

16 years agosvn merge -r9818:10278 svn://svn.valgrind.org/valgrind/branches/DRDDEV
Bart Van Assche [Mon, 8 Jun 2009 18:20:42 +0000 (18:20 +0000)] 
svn merge -r9818:10278 svn://svn.valgrind.org/valgrind/branches/DRDDEV

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

16 years agoMore ignore updates.
Robert Walsh [Sat, 6 Jun 2009 22:29:38 +0000 (22:29 +0000)] 
More ignore updates.

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

16 years agoUpdate ignores.
Robert Walsh [Sat, 6 Jun 2009 22:13:25 +0000 (22:13 +0000)] 
Update ignores.

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

16 years agoRemove references to the now-defunct INSTALL file.
Nicholas Nethercote [Sat, 6 Jun 2009 21:54:59 +0000 (21:54 +0000)] 
Remove references to the now-defunct INSTALL file.

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

16 years agoGeneralized a libgomp suppression pattern.
Bart Van Assche [Sat, 6 Jun 2009 18:09:09 +0000 (18:09 +0000)] 
Generalized a libgomp suppression pattern.

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

16 years agoUpdated test plan.
Bart Van Assche [Sat, 6 Jun 2009 16:58:58 +0000 (16:58 +0000)] 
Updated test plan.

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

16 years agoUpdated list of bugs fixed in 3.5.0.
Bart Van Assche [Sat, 6 Jun 2009 16:58:36 +0000 (16:58 +0000)] 
Updated list of bugs fixed in 3.5.0.

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

16 years agoRobustness improvement: print an error message instead of triggering an assertion...
Bart Van Assche [Sat, 6 Jun 2009 12:28:20 +0000 (12:28 +0000)] 
Robustness improvement: print an error message instead of triggering an assertion failure upon semaphore reinitialization during sem_wait().

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

16 years agoConsistency improvement: made sure that for all synchronization operations vector...
Bart Van Assche [Sat, 6 Jun 2009 12:26:05 +0000 (12:26 +0000)] 
Consistency improvement: made sure that for all synchronization operations vector clocks are combined after having created a new segment instead of before.

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

16 years ago- Robustness improvement: do not trigger an assertion failure if one
Bart Van Assche [Sat, 6 Jun 2009 10:56:40 +0000 (10:56 +0000)] 
- Robustness improvement: do not trigger an assertion failure if one
  thread destroys and reinitializes a semaphore another thread is
  waiting on but print an error message instead.
- Behavior change: always decrement 'value', even if this makes value
  negative.
- Updated expected output files.

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

16 years agoDisabled libgomp intercepts. Since libgomp support was added to DRD, the
Bart Van Assche [Sat, 6 Jun 2009 09:28:28 +0000 (09:28 +0000)] 
Disabled libgomp intercepts. Since libgomp support was added to DRD, the
libgomp ABI has changed. Two new functions have been added, namely
gomp_team_barrier_wait() and gomp_team_barrier_wake(). The simplest way
to support all libgomp functions is by disabling the libgomp intercepts.
This fixes bug #195169.

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

16 years agoUpdated test plan.
Bart Van Assche [Sat, 6 Jun 2009 08:51:13 +0000 (08:51 +0000)] 
Updated test plan.

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

16 years agoIncreased gcc version from 4.3.2 to 4.4.0.
Bart Van Assche [Sat, 6 Jun 2009 08:50:14 +0000 (08:50 +0000)] 
Increased gcc version from 4.3.2 to 4.4.0.

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

16 years agox86-linux: sys_set_thread_area: don't allocate GDT entry number zero,
Julian Seward [Fri, 5 Jun 2009 13:17:31 +0000 (13:17 +0000)] 
x86-linux: sys_set_thread_area: don't allocate GDT entry number zero,
and reject attempts to use it.  This is because the hardware does not
allow entry zero to be used, and apparently doing so confuses some
code (perhaps Windows apps running on Wine).  Derived from a patch by
John Reiser.

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

16 years agoIncrease a hard limit that was reached in the wild.
Nicholas Nethercote [Fri, 5 Jun 2009 05:28:17 +0000 (05:28 +0000)] 
Increase a hard limit that was reached in the wild.

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

16 years agoFor no apparent reason, the machine-dependent syscall
Nicholas Nethercote [Fri, 5 Jun 2009 01:33:16 +0000 (01:33 +0000)] 
For no apparent reason, the machine-dependent syscall
thread_fast_set_cthread_self was being called pthread_set_self.  This commit
fixes this.

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

16 years agoNightly test changes:
Nicholas Nethercote [Thu, 4 Jun 2009 23:17:12 +0000 (23:17 +0000)] 
Nightly test changes:

- Put the old tree in valgrind-old/ and the new one in valgrind-new/,
  instead of using valgrind/ for both.  That way, the old tree is still
  present after running the tests, so it can be inspected for problems.

  This required changing how ABT_RUN_REGTEST worked -- it no longer should
  change directories itself -- but I think Bart's machine is the only one
  using that and I updated the .conf file accordingly.

- Change some variable names -- only use the "ABT_" prefix for variables
  defined in the .conf files, and use $DIR and $TAG to match the README.txt.

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

16 years agoRemove exp-omega's code. It was disabled in 3.4.0 to few complaints.
Nicholas Nethercote [Thu, 4 Jun 2009 23:11:50 +0000 (23:11 +0000)] 
Remove exp-omega's code.  It was disabled in 3.4.0 to few complaints.

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

16 years agoNEWS updates.
Nicholas Nethercote [Thu, 4 Jun 2009 22:47:21 +0000 (22:47 +0000)] 
NEWS updates.

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

16 years agoUpdated list of bugs fixed in 3.5.0.
Bart Van Assche [Thu, 4 Jun 2009 11:46:32 +0000 (11:46 +0000)] 
Updated list of bugs fixed in 3.5.0.

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

16 years agoFixed argument types and names.
Bart Van Assche [Thu, 4 Jun 2009 09:57:54 +0000 (09:57 +0000)] 
Fixed argument types and names.

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

16 years agotsan_unittest.cpp does now compile cleanly even with -Wshadown enabled.
Bart Van Assche [Thu, 4 Jun 2009 09:11:28 +0000 (09:11 +0000)] 
tsan_unittest.cpp does now compile cleanly even with -Wshadown enabled.

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

16 years agoPrint the end time as well as the start time so it's easy to see how long it
Nicholas Nethercote [Thu, 4 Jun 2009 02:25:39 +0000 (02:25 +0000)] 
Print the end time as well as the start time so it's easy to see how long it
took.

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

16 years agoAdd a couple of notes based on an email from Bart.
Nicholas Nethercote [Thu, 4 Jun 2009 01:52:14 +0000 (01:52 +0000)] 
Add a couple of notes based on an email from Bart.

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

16 years agoFixes for Darwin: it uses a different method for getting the time-and-date
Nicholas Nethercote [Thu, 4 Jun 2009 01:43:49 +0000 (01:43 +0000)] 
Fixes for Darwin: it uses a different method for getting the time-and-date
for 24 hours ago.  Also, the default 'sh' doesn't support "echo -n" so use
"printf" instead.

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

16 years agoGreatly improve the instructions for the nightly tests.
Nicholas Nethercote [Thu, 4 Jun 2009 01:30:14 +0000 (01:30 +0000)] 
Greatly improve the instructions for the nightly tests.

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

16 years agoTwo tweaks:
Nicholas Nethercote [Thu, 4 Jun 2009 01:01:47 +0000 (01:01 +0000)] 
Two tweaks:
- Install in $DIR/valgrind/Inst/ rather than $DIR/Inst.  Just a bit neater.
- Run "make regtest" instead of "perl tests/vg_regtest --all", because we
  might not want to run all tests (eg. we don't on Darwin at the moment).

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

16 years agoRemoved configure test for -Wno-empty-body again.
Bart Van Assche [Wed, 3 Jun 2009 20:05:00 +0000 (20:05 +0000)] 
Removed configure test for -Wno-empty-body again.

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

16 years agoCompiles now cleanly without -Wno-empty-body.
Bart Van Assche [Wed, 3 Jun 2009 20:02:29 +0000 (20:02 +0000)] 
Compiles now cleanly without -Wno-empty-body.

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

16 years agoUpdated documentation of PCQ annotations.
Bart Van Assche [Wed, 3 Jun 2009 20:01:44 +0000 (20:01 +0000)] 
Updated documentation of PCQ annotations.

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

16 years agoFixed a memory leak.
Bart Van Assche [Wed, 3 Jun 2009 12:44:50 +0000 (12:44 +0000)] 
Fixed a memory leak.

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

16 years agoUnified two expected output files.
Bart Van Assche [Wed, 3 Jun 2009 09:47:16 +0000 (09:47 +0000)] 
Unified two expected output files.

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

16 years agoUpdated EXTRA_DIST.
Bart Van Assche [Wed, 3 Jun 2009 09:30:19 +0000 (09:30 +0000)] 
Updated EXTRA_DIST.

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

16 years agoFixed a few typo's in comments.
Bart Van Assche [Wed, 3 Jun 2009 08:54:37 +0000 (08:54 +0000)] 
Fixed a few typo's in comments.

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

16 years agoUpdated ignore list.
Bart Van Assche [Wed, 3 Jun 2009 08:45:40 +0000 (08:45 +0000)] 
Updated ignore list.

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

16 years agoDRD's regression tests pass again on PowerPC.
Bart Van Assche [Wed, 3 Jun 2009 08:26:12 +0000 (08:26 +0000)] 
DRD's regression tests pass again on PowerPC.

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

16 years agoUpdated ANNOTATE_*() macro's as discussed on the valgrind-developers mailing list...
Bart Van Assche [Wed, 3 Jun 2009 08:11:02 +0000 (08:11 +0000)] 
Updated ANNOTATE_*() macro's as discussed on the valgrind-developers mailing list. Merged drt/unittest r1007:1014. Updated to do list.

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

16 years agoDon't print stack traces by default for unhandled syscalls -- it's not that
Nicholas Nethercote [Wed, 3 Jun 2009 07:17:07 +0000 (07:17 +0000)] 
Don't print stack traces by default for unhandled syscalls -- it's not that
useful but screws up the 'scalar' tests.

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

16 years agoA number of changes relating to syscall numbering:
Nicholas Nethercote [Wed, 3 Jun 2009 06:50:06 +0000 (06:50 +0000)] 
A number of changes relating to syscall numbering:

- Introduced VG_SYSNUM_STRING and VG_SYSNUM_STRING_EXTRA which factor out
  differences in the way syscall numbers are printed on different platforms.
  This gets rid of seven "DDD" fixme-style comments.

- This also meant that Darwin syscall numbers are now printed in a
  non-ambiguous way -- previously Unix, machine-dependent and diagnostic
  syscalls were all printed the same way, even though their numbers overlap.
  Now each number is prefixed with "unix", "mdep", etc.  And Mach trap
  numbers aren't printed as negative numbers now that they have a "mach"
  prefix.

- Split each of pub_core_vkiscnums.h and pub_tool_vkiscnums.h into two
  parts, one suitable for inclusion in asm files, one suitable for inclusion
  in C files;  in both cases the latter includes the former.  This makes
  this module more like other modules that have asm-only components (eg.
  m_transtab);  it also allows the hacky VG_IN_ASSEMBLY_SOURCE macros and
  tests to be removed.

- Removed some of the VG_DARWIN_SYSNO_* macros that were no longer needed,
  and renamed some of the existing ones to make their meanings clearer.

- Added comments on the encoding of Darwin syscall numbers so it's
  possible for mortals to understand without reading the kernel code..

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

16 years agoTemporarily disabled building tsan_unittest on Darwin.
Bart Van Assche [Wed, 3 Jun 2009 06:25:04 +0000 (06:25 +0000)] 
Temporarily disabled building tsan_unittest on Darwin.

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

16 years agoAdd descriptions of DRD and Ptrcheck in the manual intro. Bart, Julian,
Nicholas Nethercote [Tue, 2 Jun 2009 23:20:40 +0000 (23:20 +0000)] 
Add descriptions of DRD and Ptrcheck in the manual intro.  Bart, Julian,
please change these if you don't like what I've written, and merge the
changes to the 3.4.X branch.

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

16 years agoSome source code modifications that should help getting tsan_unittest.cpp compiled...
Bart Van Assche [Tue, 2 Jun 2009 15:11:42 +0000 (15:11 +0000)] 
Some source code modifications that should help getting tsan_unittest.cpp compiled on Darwin.

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

16 years ago- Portability improvement: switched from __gnu_cxx::hash_map<> (a gcc
Bart Van Assche [Tue, 2 Jun 2009 15:03:44 +0000 (15:03 +0000)] 
- Portability improvement: switched from __gnu_cxx::hash_map<> (a gcc
  extension) to std::map<> (standard C++).
- Replaced tempnam() by mkdtemp() / mkstemp() because gcc emits a warning
  about the former.

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

16 years agoFixes for systems without built-in functions for atomic memory access.
Bart Van Assche [Tue, 2 Jun 2009 11:12:29 +0000 (11:12 +0000)] 
Fixes for systems without built-in functions for atomic memory access.

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

16 years agoBack out r10197--r10200 and r10202--r10203. I'm going to put them, and
Nicholas Nethercote [Tue, 2 Jun 2009 06:54:57 +0000 (06:54 +0000)] 
Back out r10197--r10200 and r10202--r10203.  I'm going to put them, and
further, related changes, on a branch instead.

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

16 years agoMove some stuff around; no functional change.
Nicholas Nethercote [Tue, 2 Jun 2009 05:27:07 +0000 (05:27 +0000)] 
Move some stuff around;  no functional change.

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

16 years agoAvoid repetitive cut+paste code for libreplacemalloc_toolpreload.
Nicholas Nethercote [Tue, 2 Jun 2009 05:19:54 +0000 (05:19 +0000)] 
Avoid repetitive cut+paste code for libreplacemalloc_toolpreload.

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

16 years agodrd/tests/tsan_unittest is broken on Darwin. For one, OS_MACOSX isn't the
Nicholas Nethercote [Tue, 2 Jun 2009 05:19:21 +0000 (05:19 +0000)] 
drd/tests/tsan_unittest is broken on Darwin.   For one, OS_MACOSX isn't the
right #define to test for, _APPLE_ is, but defined(VGO_darwin) is better
again.  But even if that is fixed, there are still other problems.

So this commit just disables building of that test for Darwin.

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