]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
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

16 years agoRemoved Makefile.core.am with some judicious refactoring.
Nicholas Nethercote [Fri, 6 Feb 2009 04:49:14 +0000 (04:49 +0000)] 
Removed Makefile.core.am with some judicious refactoring.

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

16 years agoAvoid unnecessary EXTRA_DIST files in Makefile.am.
Nicholas Nethercote [Fri, 6 Feb 2009 04:13:52 +0000 (04:13 +0000)] 
Avoid unnecessary EXTRA_DIST files in Makefile.am.

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

16 years agoMerge r9110 (inline Makefile.tool-flags.am) from DARWIN branch.
Nicholas Nethercote [Fri, 6 Feb 2009 04:05:43 +0000 (04:05 +0000)] 
Merge r9110 (inline Makefile.tool-flags.am) from DARWIN branch.

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

16 years agoIndex: Makefile.core.am
Nicholas Nethercote [Fri, 6 Feb 2009 03:46:50 +0000 (03:46 +0000)] 
Index: Makefile.core.am
    Factor out some includes.  Remove some unnecessary includes.

Index: configure.in
    Improve some comments.  Make the arch/platform/OS output more consistent
    and comprehensive.

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

16 years agoFix a minor defect: only the first 14 chars of the 18 chars in the
Nicholas Nethercote [Tue, 3 Feb 2009 03:59:05 +0000 (03:59 +0000)] 
Fix a minor defect:  only the first 14 chars of the 18 chars in the
--massif-out-file= option was being checked, which meant that if you did
--massif-out-filename=foo by mistake it would accept it and produce a file
called "ame=foo".

MERGE to 3_4_BRANCH

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

16 years agoSuppression update.
Julian Seward [Sun, 1 Feb 2009 20:15:32 +0000 (20:15 +0000)] 
Suppression update.

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

16 years agoAdd support for glibc-2.10 (when it eventually appears).
Julian Seward [Sun, 1 Feb 2009 19:01:11 +0000 (19:01 +0000)] 
Add support for glibc-2.10 (when it eventually appears).

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

16 years agoMove an assertion (pertaining to showing initial segments to the
Julian Seward [Sat, 31 Jan 2009 15:08:08 +0000 (15:08 +0000)] 
Move an assertion (pertaining to showing initial segments to the
tools) to the correct place, and add a big comment explaining why this
is necessary.

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

16 years agoRemoved mandatory redirections for DRD since these made DRD impossible to use on...
Bart Van Assche [Fri, 30 Jan 2009 18:31:54 +0000 (18:31 +0000)] 
Removed mandatory redirections for DRD since these made DRD impossible to use on openSUSE 10.3 ppc.

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

16 years agoGeneralized suppression patterns.
Bart Van Assche [Fri, 30 Jan 2009 17:52:39 +0000 (17:52 +0000)] 
Generalized suppression patterns.

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

16 years agoDo not only recognize .plt and .plt.got sections inside the mapped address range...
Bart Van Assche [Fri, 30 Jan 2009 17:52:21 +0000 (17:52 +0000)] 
Do not only recognize .plt and .plt.got sections inside the mapped address range, but also outside the mapped address range (necessary for ppc).

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

16 years agoSuppress any error whose top frame is in libc.so. While not very elegant, this is...
Bart Van Assche [Thu, 29 Jan 2009 09:57:22 +0000 (09:57 +0000)] 
Suppress any error whose top frame is in libc.so. While not very elegant, this is an effective way to suppress data race reports triggered by glibc's stdio functions (which uses inlined locking functions).

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

16 years agoVG_(findBoundsFM): add comment re preconditions
Julian Seward [Thu, 29 Jan 2009 08:46:15 +0000 (08:46 +0000)] 
VG_(findBoundsFM): add comment re preconditions

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

16 years agoGeneralise zlib suppressions a bit.
Julian Seward [Thu, 29 Jan 2009 08:45:19 +0000 (08:45 +0000)] 
Generalise zlib suppressions a bit.

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

16 years ago* get_Seg_containing_addr: fix incorrect test guarding assertion
Julian Seward [Thu, 29 Jan 2009 08:44:49 +0000 (08:44 +0000)] 
* get_Seg_containing_addr: fix incorrect test guarding assertion
  (which then failed)

* support some more syscalls

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

16 years agoCallgrind: Remove ifdef'ed-out, non-working code.
Josef Weidendorfer [Mon, 26 Jan 2009 23:21:18 +0000 (23:21 +0000)] 
Callgrind: Remove ifdef'ed-out, non-working code.

Rechecking the diff of r9080 on the mailing list, I thought
I forgot to replace "|" with "+" in one spot. But that was part
of not-used code, so it actually does not matter.
So better get rid of this code part at all (no need to backport ;-).

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

16 years agoCachegrind/Callgrind: allow for cache sizes other than only powers of two
Josef Weidendorfer [Mon, 26 Jan 2009 22:56:14 +0000 (22:56 +0000)] 
Cachegrind/Callgrind: allow for cache sizes other than only powers of two

The number of sets, ie. number of cache lines divided by associativity,
and the cache line size still have to be powers of two.
This change is needed for default cache parameters used on some Intel
Core 2 and Atom processors.

Includes cachegrind manual update and explicit tests with 24KB D1/3MB L2
Reverts addition of 6MB warning to {cachegrind,callgrind}/tests/filter_stderr

Backporting to VALGRIND_3_4_BRANCH needs r8912

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

16 years agoInitialise laog and laog__exposition even when the first lock-related
Julian Seward [Mon, 26 Jan 2009 10:45:16 +0000 (10:45 +0000)] 
Initialise laog and laog__exposition even when the first lock-related
action is a lock deletion.  Fixes a segfault reported by Ali
Jannesari.

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

16 years agoRemove function that was made redundant by r9059.
Julian Seward [Mon, 26 Jan 2009 01:22:23 +0000 (01:22 +0000)] 
Remove function that was made redundant by r9059.

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

16 years agoMinor refinements:
Julian Seward [Mon, 26 Jan 2009 00:09:08 +0000 (00:09 +0000)] 
Minor refinements:

* h_main.c: handle a few more syscalls

* exp-ptrcheck.supp: ignore errors in glibc's getenv -- is highly optimised

* pc_common.c: fix small error in error message printing

--> 3_4_BRANCH

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

16 years agoIntercept and replace calls to calls to strnlen in glibc, for the
Julian Seward [Mon, 26 Jan 2009 00:06:43 +0000 (00:06 +0000)] 
Intercept and replace calls to calls to strnlen in glibc, for the
usual reasons.  Also update an expected output (lines numbers in
h_intercepts.c should be removed by the regtest system, really).

--> 3_4_BRANCH

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

16 years agoPrior to this commit, exp-ptrcheck would assert if the DWARF3 data for
Julian Seward [Sun, 25 Jan 2009 23:59:24 +0000 (23:59 +0000)] 
Prior to this commit, exp-ptrcheck would assert if the DWARF3 data for
global or stack blocks described overlapping blocks (which are
nonsensical).  Unfortunately it is naive to assume compilers will
always produce correct debug info.  This commit makes exp-ptrcheck
much more robust against such (inevitable) anomalies: stack and global
blocks which overlap are simply ignored.

--> 3_4_BRANCH

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

16 years agoHandle a couple of artefacts produced by icc11: DW_TAG_reference_type
Julian Seward [Sun, 25 Jan 2009 23:50:32 +0000 (23:50 +0000)] 
Handle a couple of artefacts produced by icc11: DW_TAG_reference_type
that doesn't have a size, and DW_FORM_ref_addr (assuming my
interpretation of the standard is correct.)

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

16 years agoHandle a couple of artefacts generated by gcc-4.4: DW_OP_reg{0..31}
Julian Seward [Sun, 25 Jan 2009 23:48:31 +0000 (23:48 +0000)] 
Handle a couple of artefacts generated by gcc-4.4: DW_OP_reg{0..31}
and DW_OP_const1s.

--> 3_4_BRANCH

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