]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoBuilds again on powerpc.
Bart Van Assche [Thu, 26 Feb 2009 13:21:50 +0000 (13:21 +0000)] 
Builds again on powerpc.

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

16 years agorename a function
Nicholas Nethercote [Thu, 26 Feb 2009 04:02:03 +0000 (04:02 +0000)] 
rename a function

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

16 years agoAvoid a warning.
Nicholas Nethercote [Thu, 26 Feb 2009 03:56:48 +0000 (03:56 +0000)] 
Avoid a warning.

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

16 years agoAdd more testing to memcheck/tests/unit_libcbase.c.
Nicholas Nethercote [Thu, 26 Feb 2009 03:52:35 +0000 (03:52 +0000)] 
Add more testing to memcheck/tests/unit_libcbase.c.

Remove VG_(strcmp_ws) and VG_(strncmp_ws);  they're no longer needed by CLO
handling, and they're not much use elsewhere.

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

16 years agoRemove WERROR. It's not much use because getting Valgrind to build without
Nicholas Nethercote [Wed, 25 Feb 2009 23:19:46 +0000 (23:19 +0000)] 
Remove WERROR.  It's not much use because getting Valgrind to build without
errors on all platforms is very difficult.

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

16 years agoGeneralise a couple of Qt4 suppressions (David Faure).
Julian Seward [Wed, 25 Feb 2009 21:28:38 +0000 (21:28 +0000)] 
Generalise a couple of Qt4 suppressions (David Faure).

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

16 years agoUse 'diff -u' for regtests if it's supported, its output it much easier to
Nicholas Nethercote [Wed, 25 Feb 2009 04:57:56 +0000 (04:57 +0000)] 
Use 'diff -u' for regtests if it's supported, its output it much easier to
read than plain 'diff'.

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

16 years agoRemove toobig-allocs.c -- it was unreliable and didn't test any
Nicholas Nethercote [Wed, 25 Feb 2009 04:34:44 +0000 (04:34 +0000)] 
Remove toobig-allocs.c -- it was unreliable and didn't test any
functionality of note.

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

16 years agoMove memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
Nicholas Nethercote [Wed, 25 Feb 2009 04:20:54 +0000 (04:20 +0000)] 
Move memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
MAP_FIXED and so is highly unportable, and doesn't work on x86/Darwin.

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

16 years agoDelete memcheck/tests/zeropage. The original purpose of the test is no
Nicholas Nethercote [Wed, 25 Feb 2009 04:04:29 +0000 (04:04 +0000)] 
Delete memcheck/tests/zeropage.  The original purpose of the test is no
longer valid, as the comment indicates.  Furthermore it mmaps arbitrary bits
of address space and so is horribly unportable, and doesn't work on Darwin.

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

16 years agoatoll() is a terrible function -- you can't do any error checking with it.
Nicholas Nethercote [Wed, 25 Feb 2009 01:01:05 +0000 (01:01 +0000)] 
atoll() is a terrible function -- you can't do any error checking with it.
Some of our option processing code uses it.  This means that eg.
'--log-fd=9xxx' logs to fd 9, and '--log-fd=blahblahblah' logs to 0 (because
atoll() returns 0 if the string doesn't contain a number!)

It turns out that most of our option processing uses VG_(strtoll*) instead
of VG_(atoll).  The reason that not all of it does is that the
option-processing macros are underpowered -- they currently work well if you
just want to assign the value to a variable, eg:

        VG_BOOL_CLO(arg, "--heap",   clo_heap)
   else VG_BOOL_CLO(arg, "--stacks", clo_stacks)

   else VG_NUM_CLO(arg, "--heap-admin", clo_heap_admin)
   else VG_NUM_CLO(arg, "--depth",      clo_depth)

(This works because they are actually an if-statement, but it looks odd.)

VG_NUM_CLO uses VG_(stroll10).  But if you want to do any checking or
processing, you can't use those macros, leading to code like this:

      else if (VG_CLO_STREQN(9,  arg, "--log-fd=")) {
         log_to            = VgLogTo_Fd;
         VG_(clo_log_name) = NULL;
         tmp_log_fd        = (Int)VG_(atoll)(&arg[9]);
      }

So this commit:
- Improves the *_CLO_* macros so that they can be used in all circumstances.
  They're now just expressions (albeit ones with side-effects, setting the
  named variable appropriately).  Thus they can be used as if-conditions,
  and any post-checking or processing can occur in the then-statement.  And
  malformed numeric arguments (eg. --log-fd=foo) aren't accepted.  This also
  means you don't have to specify the lengths of any option strings anywhere
  (eg.  the 9 in the --log-fd example above).  The use of a wrong number
  caused at least one bug, in Massif.
- Updates all places where the macros were used.
- Updates Helgrind to use the *_CLO_* macros (it didn't use them).
- Updates Callgrind to use the *_CLO_* macros (it didn't use them), except
  for the more esoteric option names (those with numbers in the option
  name).  This allowed getUInt() and getUWord() to be removed.
- Improves the cache option parsing in Cachegrind and Callgrind -- now uses
  VG_(strtoll10)(), detects overflow, and is shorter.
- Uses INT instead of NUM in the macro names, to distinguish better vs. the
  DBL macro.
- Removes VG_(atoll*) and the few remaining uses -- they're wretched
  functions and VG_(strtoll*) should be used instead.
- Adds the VG_STREQN macro.
- Changes VG_BINT_CLO and VG_BHEX_CLO to abort if the given value is outside
  the range -- the current silent truncation is likely to cause confusion as
  much as anything.

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

16 years agoCallgrind: fix a few 'unused parameter' warnings
Josef Weidendorfer [Tue, 24 Feb 2009 12:26:53 +0000 (12:26 +0000)] 
Callgrind: fix a few 'unused parameter' warnings

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

16 years agoRemove a number of unused parameters, found with -Wunused-parameter.
Nicholas Nethercote [Tue, 24 Feb 2009 03:07:37 +0000 (03:07 +0000)] 
Remove a number of unused parameters, found with -Wunused-parameter.

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

16 years agoMinor performance optimization: reduced the number of client objects that are inspect...
Bart Van Assche [Mon, 23 Feb 2009 19:15:32 +0000 (19:15 +0000)] 
Minor performance optimization: reduced the number of client objects that are inspected during memory deallocation.

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

16 years agoDeclared those function arguments that are not modified as const.
Bart Van Assche [Mon, 23 Feb 2009 19:12:02 +0000 (19:12 +0000)] 
Declared those function arguments that are not modified as const.

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

16 years ago- handle a couple more syscalls, sys_fallocate and sys_getresuid32
Julian Seward [Mon, 23 Feb 2009 16:56:15 +0000 (16:56 +0000)] 
- handle a couple more syscalls, sys_fallocate and sys_getresuid32
- make suppressions for ld.so be a bit more aggressive

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

16 years agoUpdated expected output files.
Bart Van Assche [Mon, 23 Feb 2009 08:46:42 +0000 (08:46 +0000)] 
Updated expected output files.

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

16 years agoAnother 'make check' warning fix.
Nicholas Nethercote [Mon, 23 Feb 2009 07:28:54 +0000 (07:28 +0000)] 
Another 'make check' warning fix.

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

16 years agoMore 'make check' warning fixes.
Nicholas Nethercote [Mon, 23 Feb 2009 07:26:15 +0000 (07:26 +0000)] 
More 'make check' warning fixes.

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

16 years agoFix some more 'make check' warnings, ones that appear on non-Linux
Nicholas Nethercote [Mon, 23 Feb 2009 07:17:08 +0000 (07:17 +0000)] 
Fix some more 'make check' warnings, ones that appear on non-Linux
platforms.

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

16 years agoGet rid of all "make check" compile warnings, except for the ones from
Nicholas Nethercote [Mon, 23 Feb 2009 06:44:51 +0000 (06:44 +0000)] 
Get rid of all "make check" compile warnings, except for the ones from
fxtract.c.

Also, gets rid of some of the warnings that -Wextra finds in Massif.

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

16 years agoMerged part of r9234 (unit_libcbase improvements) from the DARWIN branch.
Nicholas Nethercote [Mon, 23 Feb 2009 04:16:56 +0000 (04:16 +0000)] 
Merged part of r9234 (unit_libcbase improvements) from the DARWIN branch.

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

16 years agoAdd missing __extension__ markings on a couple of clreqs.
Nicholas Nethercote [Mon, 23 Feb 2009 02:08:24 +0000 (02:08 +0000)] 
Add missing __extension__ markings on a couple of clreqs.

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

16 years agoA few more test/build changes.
Nicholas Nethercote [Mon, 23 Feb 2009 01:33:40 +0000 (01:33 +0000)] 
A few more test/build changes.

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

16 years agoSome more test/build cleanups missed in prior commits.
Nicholas Nethercote [Mon, 23 Feb 2009 01:18:06 +0000 (01:18 +0000)] 
Some more test/build cleanups missed in prior commits.

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

16 years agoCleanup this Makefile.am like other recent test Makefile.am files.
Nicholas Nethercote [Mon, 23 Feb 2009 01:03:06 +0000 (01:03 +0000)] 
Cleanup this Makefile.am like other recent test Makefile.am files.

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

16 years agoThis should have gone in with r9222.
Nicholas Nethercote [Mon, 23 Feb 2009 00:36:02 +0000 (00:36 +0000)] 
This should have gone in with r9222.

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

16 years agoUse dashes rather than underscores in library names (njn).
Julian Seward [Sun, 22 Feb 2009 23:40:31 +0000 (23:40 +0000)] 
Use dashes rather than underscores in library names (njn).

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

16 years agoTest files were being passed multiple arch options (eg. "-m32 -m64") when
Nicholas Nethercote [Sun, 22 Feb 2009 23:38:10 +0000 (23:38 +0000)] 
Test files were being passed multiple arch options (eg. "-m32 -m64") when
built.  This worked fine on the x86/Linux and AMD64/Linux but broke
ppc*/Linux.  This commit fixes the problem.  Thanks to Bart for spotting it.

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

16 years agoMerge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
Nicholas Nethercote [Sun, 22 Feb 2009 23:00:30 +0000 (23:00 +0000)] 
Merge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
out of syswrap-generic into syswrap-linux) from the DARWIN branch.

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

16 years agoFix an XML error spotted by Bart.
Nicholas Nethercote [Sun, 22 Feb 2009 22:25:31 +0000 (22:25 +0000)] 
Fix an XML error spotted by Bart.

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

16 years agoMake fcntl and fcntl64 wrappers more consistent.
Nicholas Nethercote [Sun, 22 Feb 2009 22:23:09 +0000 (22:23 +0000)] 
Make fcntl and fcntl64 wrappers more consistent.

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

16 years agoUpdated documentation.
Bart Van Assche [Sun, 22 Feb 2009 09:29:07 +0000 (09:29 +0000)] 
Updated documentation.

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

16 years agoAdded regression test for detection of unsynchronized pthread_barrier_wait() and...
Bart Van Assche [Sun, 22 Feb 2009 09:26:22 +0000 (09:26 +0000)] 
Added regression test for detection of unsynchronized pthread_barrier_wait() and pthread_barrier_delete() calls.

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

16 years ago- Bug fix: swapped order of VG_(OSetGen_Remove)() and
Bart Van Assche [Sat, 21 Feb 2009 16:17:50 +0000 (16:17 +0000)] 
- Bug fix: swapped order of VG_(OSetGen_Remove)() and
  (*p->any.cleanup)(p) such that the "first observed at" information is
  now included in error messages.
- Performance optimization: started using VG_(OSetGen_ResetIterAt)().

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

16 years agoUpdated test plan.
Bart Van Assche [Sat, 21 Feb 2009 16:13:50 +0000 (16:13 +0000)] 
Updated test plan.

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

16 years agoVG_(OSetGen_ResetIterAt)() now also works for OSet's that do not have an
Bart Van Assche [Sat, 21 Feb 2009 16:12:20 +0000 (16:12 +0000)] 
VG_(OSetGen_ResetIterAt)() now also works for OSet's that do not have an
explicit comparison function.

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

16 years agoChanges:
Bart Van Assche [Sat, 21 Feb 2009 15:27:04 +0000 (15:27 +0000)] 
Changes:
- pthread_barrier_wait() intercept now passes the information to the DRD
  tool whether or not this function returned
  PTHREAD_BARRIER_SERIAL_THREAD. This information is now displayed when
  the command-line option --trace-barrier=yes has been specified.
- Changed the cleanup functions for client objects that are called just
  before a thread stops into callback functions.
- Added DRD_(clientobj_delete_thread)().
- Removed DRD_(clientobj_resetiter)(void) and DRD_(clientobj_next)().
- Added test for race conditions between pthread_barrier_wait() and
  pthread_barrier_destroy() calls. An error message is now printed if
  this condition has been detected.
- Bug fix: pthread_barrier_delete() calls on barriers being waited upon
  are now reported.
- Removed DRD_() wrapper from around the name of some static variables and
  functions.

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

16 years agoUpdated svn:ignore property in multiple directories.
Bart Van Assche [Sat, 21 Feb 2009 09:45:38 +0000 (09:45 +0000)] 
Updated svn:ignore property in multiple directories.

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

16 years agoDocumentation updates.
Bart Van Assche [Sat, 21 Feb 2009 09:39:09 +0000 (09:39 +0000)] 
Documentation updates.

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

16 years agoFinished renaming of 'oset_test' into 'unit_oset'.
Bart Van Assche [Fri, 20 Feb 2009 19:53:50 +0000 (19:53 +0000)] 
Finished renaming of 'oset_test' into 'unit_oset'.

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

16 years agoMoved drd/tests/pth_barrier.c, drd/tests/rwlock_race.c and
Bart Van Assche [Fri, 20 Feb 2009 19:00:18 +0000 (19:00 +0000)] 
Moved drd/tests/pth_barrier.c, drd/tests/rwlock_race.c and
drd/tests/rwlock_test.c back to their original location.

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

16 years agoForgot to add this file in the last commit.
Nicholas Nethercote [Fri, 20 Feb 2009 06:37:52 +0000 (06:37 +0000)] 
Forgot to add this file in the last commit.

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

16 years ago- Add 'unit_libcbase', the beginnings of a unit test module for m_libcbase.
Nicholas Nethercote [Fri, 20 Feb 2009 06:10:44 +0000 (06:10 +0000)] 
- Add 'unit_libcbase', the beginnings of a unit test module for m_libcbase.
- Rename 'oset_test' as 'unit_oset' to make its meaning more clear.
- Remove VG_(atoll36), VG_(strtoll8)() and VG_(strtoll36)();  they're not
  used and so untested, but easy to crib from similar functions if they need
  to be added again later.

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

16 years agoUpdated cellbuzz configuration according to the changes made during the big upgrade...
Bart Van Assche [Thu, 19 Feb 2009 14:59:48 +0000 (14:59 +0000)] 
Updated cellbuzz configuration according to the changes made during the big upgrade of the Cellbuzz cluster in February 2009.

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

16 years agoVarious build system clean-ups and simplifications:
Nicholas Nethercote [Thu, 19 Feb 2009 09:52:05 +0000 (09:52 +0000)] 
Various build system clean-ups and simplifications:
- Created Makefile.tool-tests.am, put standard AM_CFLAGS et al for tests in
  it.
- A number of tests are shared between Helgrind and DRD.  They used to be
  built in both directories.  Now they are only built in helgrind/tests/,
  and the DRD .vgtest files just point to the executable in helgrind/tests/.
  Most of these (about 30) had the source files in helgrind/tests/;  I moved
  the three that were in drd/tests/ into helgrind/tests/ for consistency.
- Fixed rwlock_test, which was failing to run due to a wrong name in the
  .vgtest file.
- Removed remnants of unused 'hello' test for Memcheck.
- Avoided redundant flag specification in various places, esp.
  memcheck/tests/Makefile.am.
- Removed unnecessary _AIX guards in some Linux-only tests.

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

16 years agoMerged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
Nicholas Nethercote [Wed, 18 Feb 2009 05:14:44 +0000 (05:14 +0000)] 
Merged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
DARWIN branch, along with a few other minor things.

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

16 years agoFor the fdleak_* tests, completely remove the stack traces showing where
Nicholas Nethercote [Tue, 17 Feb 2009 06:55:10 +0000 (06:55 +0000)] 
For the fdleak_* tests, completely remove the stack traces showing where
file descriptors came into existence, because there's too much variation and
all the expected outputs are a pain.  This allows 16 fdleak_*.exp[234] files
to be removed.

Also remove an unnecessary newline in a tmp filename in fdleak_creat.c.

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

16 years agoIn the core, include malloc_usable_size() as one of the functions that must
Nicholas Nethercote [Tue, 17 Feb 2009 04:31:18 +0000 (04:31 +0000)] 
In the core, include malloc_usable_size() as one of the functions that must
be replaced if malloc() et al are replaced by a tool.  This is because
different tools implement the function in different ways.

Add an appropriate malloc_usable_size() replacement to each of Memcheck,
Helgrind, DRD, Ptrcheck, Massif.

Update memcheck/tests/malloc_usable and add massif/tests/malloc_usable.

Merged from the DARWIN branch.

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

16 years agoRemove unnecessary Memcheck test filters.
Nicholas Nethercote [Tue, 17 Feb 2009 00:47:10 +0000 (00:47 +0000)] 
Remove unnecessary Memcheck test filters.

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

16 years agoRemove unused filter scripts from DRD.
Nicholas Nethercote [Tue, 17 Feb 2009 00:32:58 +0000 (00:32 +0000)] 
Remove unused filter scripts from DRD.

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

16 years agoMerged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
Nicholas Nethercote [Tue, 17 Feb 2009 00:23:30 +0000 (00:23 +0000)] 
Merged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
Darwin-specific parts.

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

16 years ago- Updated copyright statements.
Bart Van Assche [Mon, 16 Feb 2009 19:43:56 +0000 (19:43 +0000)] 
- Updated copyright statements.
- Improved consistency of source file headers.

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

16 years agoJust as for the regression tests of other Valgrind tools, do not explicitly state...
Bart Van Assche [Mon, 16 Feb 2009 19:42:17 +0000 (19:42 +0000)] 
Just as for the regression tests of other Valgrind tools, do not explicitly state that these are licensed under the GPLv2 license but leave this implicit.

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

16 years agoStack traces for Memcheck's syscall param errors are terribly unreliable, so
Nicholas Nethercote [Mon, 16 Feb 2009 05:11:49 +0000 (05:11 +0000)] 
Stack traces for Memcheck's syscall param errors are terribly unreliable, so
I changed it to just filter the entire stack trace out for these errors (both
normal and XML cases).  The syscall name is still present in the error
string.  This allows a one or more alternative expected output files to be
removed for several tests, which is A Very Good Thing.

Also, I killed filter_test_paths because it was weird and clumsy and the
above change obviated most of its use and the remaining effects could be
achieved in other ways.

Also, I fixed up the scalar* tests a little and they now pass on my machine,
(and hopefully at least some other machines) for the first time ever!

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

16 years agoMerge r9175 (don't run inappropriate OS- and platform-specific tests) from
Nicholas Nethercote [Mon, 16 Feb 2009 00:42:10 +0000 (00:42 +0000)] 
Merge r9175 (don't run inappropriate OS- and platform-specific tests) from
the DARWIN branch.

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

16 years agodrd_bitmap_test compiles again.
Bart Van Assche [Sun, 15 Feb 2009 16:18:03 +0000 (16:18 +0000)] 
drd_bitmap_test compiles again.

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

16 years agoWrapped DRD_() macro around yet even more function names.
Bart Van Assche [Sun, 15 Feb 2009 15:59:20 +0000 (15:59 +0000)] 
Wrapped DRD_() macro around yet even more function names.

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

16 years agoWrapped DRD_() macro around even more function and variable names.
Bart Van Assche [Sun, 15 Feb 2009 14:46:17 +0000 (14:46 +0000)] 
Wrapped DRD_() macro around even more function and variable names.

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

16 years agoWrapped DRD_() macro around even more function names.
Bart Van Assche [Sun, 15 Feb 2009 14:18:02 +0000 (14:18 +0000)] 
Wrapped DRD_() macro around even more function names.

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

16 years agoChanged a global variable into a local variable.
Bart Van Assche [Sun, 15 Feb 2009 13:16:52 +0000 (13:16 +0000)] 
Changed a global variable into a local variable.

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

16 years agoWrapped DRD_() macro around thread-related function names.
Bart Van Assche [Sun, 15 Feb 2009 13:11:14 +0000 (13:11 +0000)] 
Wrapped DRD_() macro around thread-related function names.

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

16 years agoWrapped DRD_() macro around global and static variables in drd_thread.[ch].
Bart Van Assche [Sun, 15 Feb 2009 12:14:52 +0000 (12:14 +0000)] 
Wrapped DRD_() macro around global and static variables in drd_thread.[ch].

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

16 years agoWrapped DRD_() macro around all client object function names.
Bart Van Assche [Sun, 15 Feb 2009 11:34:57 +0000 (11:34 +0000)] 
Wrapped DRD_() macro around all client object function names.

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

16 years agoWrapped DRD_() macro around all barrier-related function names.
Bart Van Assche [Sun, 15 Feb 2009 11:00:29 +0000 (11:00 +0000)] 
Wrapped DRD_() macro around all barrier-related function names.

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

16 years agoRestored the previous method for passing arguments from the creator thread to the...
Bart Van Assche [Sun, 15 Feb 2009 10:40:44 +0000 (10:40 +0000)] 
Restored the previous method for passing arguments from the creator thread to the created thread, since the new approach made some regression tests fail. It is not yet clear to me why.

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

16 years agoAdded more comments / rearranged function order.
Bart Van Assche [Sun, 15 Feb 2009 10:38:37 +0000 (10:38 +0000)] 
Added more comments / rearranged function order.

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

16 years agoChanged the order of the function definitions.
Bart Van Assche [Sun, 15 Feb 2009 10:36:32 +0000 (10:36 +0000)] 
Changed the order of the function definitions.

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

16 years agoCleaned up the source code of the atomic_var regression test, without changing the...
Bart Van Assche [Sun, 15 Feb 2009 10:19:35 +0000 (10:19 +0000)] 
Cleaned up the source code of the atomic_var regression test, without changing the actual test.

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

16 years agoWrapped DRD_() macro around all segment function names.
Bart Van Assche [Sat, 14 Feb 2009 17:19:58 +0000 (17:19 +0000)] 
Wrapped DRD_() macro around all segment function names.

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

16 years agoWrapped DRD_() macro around all vector clock function names.
Bart Van Assche [Sat, 14 Feb 2009 16:55:19 +0000 (16:55 +0000)] 
Wrapped DRD_() macro around all vector clock function names.

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

16 years agoIntroduced more DRD_ prefixes.
Bart Van Assche [Sat, 14 Feb 2009 16:10:53 +0000 (16:10 +0000)] 
Introduced more DRD_ prefixes.

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

16 years agoUpdate the sed expressions that handle the output of ld --verbose:
Julian Seward [Sat, 14 Feb 2009 16:07:40 +0000 (16:07 +0000)] 
Update the sed expressions that handle the output of ld --verbose:

  GNU ld changed the output of ld --verbose recently, it used to emit:
  PROVIDE (__executable_start = 0x400000); . = 0x400000 + SIZEOF_HEADERS;

  and now emits:

  PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x08048000)); . = SEGMENT_START("text-segment", 0x08048000) + SIZEOF_HEADERS;

(Jakub Jelinek)

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

16 years agoRemoved configure test that is no longer used.
Bart Van Assche [Sat, 14 Feb 2009 15:48:23 +0000 (15:48 +0000)] 
Removed configure test that is no longer used.

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

16 years agoAdded yet another suppression pattern.
Bart Van Assche [Sat, 14 Feb 2009 15:47:53 +0000 (15:47 +0000)] 
Added yet another suppression pattern.

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

16 years agoget_otrack_shadow_offset_wrk(ppc32): handle a missing case that caused
Julian Seward [Sat, 14 Feb 2009 15:28:46 +0000 (15:28 +0000)] 
get_otrack_shadow_offset_wrk(ppc32): handle a missing case that caused
an assertion failure (Chris Wilson).

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

16 years ago- Moved several functions and variables from one source file to another.
Bart Van Assche [Sat, 14 Feb 2009 15:13:31 +0000 (15:13 +0000)] 
- Moved several functions and variables from one source file to another.
- Created two new source files: drd_load_store.h and .c.
- Removed the header file drd_track.h.

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

16 years agoAdded a missing #include directive.
Bart Van Assche [Sat, 14 Feb 2009 14:49:23 +0000 (14:49 +0000)] 
Added a missing #include directive.

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

16 years agoRelaxed an assert statement: a thread canceled by pthread_cancel() can really exit...
Bart Van Assche [Sat, 14 Feb 2009 14:46:16 +0000 (14:46 +0000)] 
Relaxed an assert statement: a thread canceled by pthread_cancel() can really exit with synchr_nesting > 0.

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

16 years agoAdded DRD_(spinlock_init_or_unlock)().
Bart Van Assche [Sat, 14 Feb 2009 12:14:50 +0000 (12:14 +0000)] 
Added DRD_(spinlock_init_or_unlock)().

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

16 years ago- Performance improvement: eliminated busy waiting from thread creation.
Bart Van Assche [Sat, 14 Feb 2009 12:12:57 +0000 (12:12 +0000)] 
- Performance improvement: eliminated busy waiting from thread creation.
- Applied DRD_() prefix to all names of functions that are not
  intercepts of client code.
- Removed superfluous include directive, namely #include <inttypes.h>.
- Removed hack for suppressing false positive reports on stdio / stderr
  because recently a suppression pattern was added for these races.
- Removed unused code and declarations.
- Added more comments.
- Updated copyright statement.

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

16 years agoRenamed vg_thread_wrapper() into DRD_(thread_wrapper)().
Bart Van Assche [Sat, 14 Feb 2009 11:54:42 +0000 (11:54 +0000)] 
Renamed vg_thread_wrapper() into DRD_(thread_wrapper)().

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

16 years agoUpdated copyright statement.
Bart Van Assche [Sat, 14 Feb 2009 10:58:45 +0000 (10:58 +0000)] 
Updated copyright statement.

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

16 years agoAdded file to repository.
Bart Van Assche [Sat, 14 Feb 2009 10:14:09 +0000 (10:14 +0000)] 
Added file to repository.

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

16 years agoMoved 3 Linux-specific tests into linux/ directories.
Nicholas Nethercote [Fri, 13 Feb 2009 06:23:46 +0000 (06:23 +0000)] 
Moved 3 Linux-specific tests into linux/ directories.

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

16 years agoFilter out everything after "(below main)" in a line. This will help with
Nicholas Nethercote [Thu, 12 Feb 2009 00:51:50 +0000 (00:51 +0000)] 
Filter out everything after "(below main)" in a line.  This will help with
Darwin, for which such entries can occur within the executable, rather than
within libc.

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

16 years agoMerge the non-Darwin parts of r9140 (install vgpreload .dSYMs), just to keep
Nicholas Nethercote [Thu, 12 Feb 2009 00:30:02 +0000 (00:30 +0000)] 
Merge the non-Darwin parts of r9140 (install vgpreload .dSYMs), just to keep
the trunk and DARWIN branch in sync.

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

16 years agoCleaned up the demangling mess:
Nicholas Nethercote [Wed, 11 Feb 2009 06:06:10 +0000 (06:06 +0000)] 
Cleaned up the demangling mess:

- Now more clearly distinguishing between C++-demangling, Z-demangling, and
  below-main renaming, particularly in 'get_sym_name'.

- --demangle=no no longer prevents Z-demangling, which makes more sense,
  although it's unlikely to affect anyone.

- Broke the circular dependency between m_demangle and m_debuginfo by moving
  below-main renaming into m_debuginfo.

- Renamed some get_fnname_* functions to make their effect clearer, and
  improved their comments.

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

16 years agoChanged the way files are installed. Instead of going into
Nicholas Nethercote [Wed, 11 Feb 2009 00:35:45 +0000 (00:35 +0000)] 
Changed the way files are installed.  Instead of going into
$INSTALL/<platform>/<filename>, they go to $INSTALL/<filename>-<platform>.
These filenames match those built in the build tree, and so simplifies the
build system signficantly and avoids the horrible sed renamings that were
previously required.  This will also help greatly with the treatment of
.dSYM debug directories in the DARWIN branch.

Files affected include:
- preload libraries such as vgpreload_core-<platform>.so and
  libmpiwrap-<platform>.so
- libraries such as libcoregrind_<platform>.a
- executables such as memcheck-<platform>

I updated the manual and added a note to the NEWS file about the change,
because it will affect a small number of users.

I did my best to update the AIX launcher/initimg correctly, but it hasn't
been tested.

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

16 years agoFilter out "(core dumped)" after "Bus error" for consistency. This makes
Nicholas Nethercote [Wed, 11 Feb 2009 00:21:53 +0000 (00:21 +0000)] 
Filter out "(core dumped)" after "Bus error" for consistency.  This makes
shell_zerolength pass on my Ubuntu 8.10 machine.

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

16 years agoMerge r9106 (fix a minor stack entry display bug) from the DARWIN branch.
Nicholas Nethercote [Tue, 10 Feb 2009 07:14:37 +0000 (07:14 +0000)] 
Merge r9106 (fix a minor stack entry display bug) from the DARWIN branch.

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

16 years agoCleaned up the mess that was the treatment of "below main" functions such as
Nicholas Nethercote [Tue, 10 Feb 2009 06:48:00 +0000 (06:48 +0000)] 
Cleaned up the mess that was the treatment of "below main" functions such as
'__libc_start_main', in Massif, m_debuginfo and m_stacktrace.  As part of
this, --show-below-main is now visible to tools, and Massif pays attention
to it.

Improved the description of --show-below-main=yes in the manual.

Replaced some instances of "__libc_start_main" in the test *.exp files with
"(below main)", which is what will actually be seen.  Also updated
scalar.stderr.exp*, which should make it get closer to actually passing.

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

16 years agoMerge part of r9129 (factor out duplicated Z-encodings of names) from the
Nicholas Nethercote [Tue, 10 Feb 2009 04:23:41 +0000 (04:23 +0000)] 
Merge part of r9129 (factor out duplicated Z-encodings of names) from the
DARWIN branch.

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

16 years agoFix a typo.
Nicholas Nethercote [Mon, 9 Feb 2009 03:52:35 +0000 (03:52 +0000)] 
Fix a typo.

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

16 years agoDon't install unnecessary .supp files (part 2 of 2).
Nicholas Nethercote [Mon, 9 Feb 2009 03:25:04 +0000 (03:25 +0000)] 
Don't install unnecessary .supp files (part 2 of 2).

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

16 years agoMakefile.flags.am
Nicholas Nethercote [Mon, 9 Feb 2009 01:52:55 +0000 (01:52 +0000)] 
Makefile.flags.am
    Remove mentions of empty variables.

Makefile.am
    Only install default.supp;  other .supp files aren't necessary to
    install.

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

16 years agoSwitched from the Apache License to a BSD-style license in order to reduce the number...
Bart Van Assche [Sun, 8 Feb 2009 17:42:12 +0000 (17:42 +0000)] 
Switched from the Apache License to a BSD-style license in order to reduce the number of licences that applies to the source code of Valgrind.

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

16 years agoMerged r9120 (Merge Makefile.{inplace,install}.am, and simplify installation
Nicholas Nethercote [Fri, 6 Feb 2009 23:27:16 +0000 (23:27 +0000)] 
Merged r9120 (Merge Makefile.{inplace,install}.am, and simplify installation
of libmpiwrap.so) from trunk.

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

16 years agoMake Makefile.install.am much less confusing.
Nicholas Nethercote [Fri, 6 Feb 2009 07:12:57 +0000 (07:12 +0000)] 
Make Makefile.install.am much less confusing.

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

16 years agoRemoved Makefile.core.am with some judicious refactoring. Also fix a stupid
Nicholas Nethercote [Fri, 6 Feb 2009 05:34:19 +0000 (05:34 +0000)] 
Removed Makefile.core.am with some judicious refactoring.  Also fix a stupid
typo in launcher-linux.c that was added in the last commit.

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