Commit Graph

6707 Commits

Author SHA1 Message Date
Bart Van Assche
6dacd9c6ff 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
2009-02-15 10:19:35 +00:00
Bart Van Assche
a2f849972f Wrapped DRD_() macro around all segment function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9160
2009-02-14 17:19:58 +00:00
Bart Van Assche
c5f4cc3cf1 Wrapped DRD_() macro around all vector clock function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9159
2009-02-14 16:55:19 +00:00
Bart Van Assche
498c9afeb5 Introduced more DRD_ prefixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9158
2009-02-14 16:10:53 +00:00
Julian Seward
6b47103529 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
2009-02-14 16:07:40 +00:00
Bart Van Assche
fe896cad52 Removed configure test that is no longer used.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9156
2009-02-14 15:48:23 +00:00
Bart Van Assche
5a3f0beb39 Added yet another suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9155
2009-02-14 15:47:53 +00:00
Julian Seward
6a1bca2e35 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
2009-02-14 15:28:46 +00:00
Bart Van Assche
9353dd404e - 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
2009-02-14 15:13:31 +00:00
Bart Van Assche
05120707d2 Added a missing #include directive.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9152
2009-02-14 14:49:23 +00:00
Bart Van Assche
5a950f3e74 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
2009-02-14 14:46:16 +00:00
Bart Van Assche
233320f614 Added DRD_(spinlock_init_or_unlock)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9150
2009-02-14 12:14:50 +00:00
Bart Van Assche
0a804bd7c6 - 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
2009-02-14 12:12:57 +00:00
Bart Van Assche
99249d56d6 Renamed vg_thread_wrapper() into DRD_(thread_wrapper)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9148
2009-02-14 11:54:42 +00:00
Bart Van Assche
393e10e13b Updated copyright statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9147
2009-02-14 10:58:45 +00:00
Bart Van Assche
27f484bc70 Added file to repository.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9146
2009-02-14 10:14:09 +00:00
Nicholas Nethercote
6031d626c1 Moved 3 Linux-specific tests into linux/ directories.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9144
2009-02-13 06:23:46 +00:00
Nicholas Nethercote
f3240d6950 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
2009-02-12 00:51:50 +00:00
Nicholas Nethercote
f0f8b48fcf 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
2009-02-12 00:30:02 +00:00
Nicholas Nethercote
01a6838e61 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
2009-02-11 06:06:10 +00:00
Nicholas Nethercote
3dfc8932ae 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
2009-02-11 00:35:45 +00:00
Nicholas Nethercote
5e97a0524e 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
2009-02-11 00:21:53 +00:00
Nicholas Nethercote
79062cce2e Merge r9106 (fix a minor stack entry display bug) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9132
2009-02-10 07:14:37 +00:00
Nicholas Nethercote
a8c9970a34 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
2009-02-10 06:48:00 +00:00
Nicholas Nethercote
947f9faaba 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
2009-02-10 04:23:41 +00:00
Nicholas Nethercote
7e242995e4 Fix a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9127
2009-02-09 03:52:35 +00:00
Nicholas Nethercote
97ac32d13b Don't install unnecessary .supp files (part 2 of 2).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9125
2009-02-09 03:25:04 +00:00
Nicholas Nethercote
0b2d785793 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
2009-02-09 01:52:55 +00:00
Bart Van Assche
fc97849a4c 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
2009-02-08 17:42:12 +00:00
Nicholas Nethercote
1690244664 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
2009-02-06 23:27:16 +00:00
Nicholas Nethercote
2d5f140a5b Make Makefile.install.am much less confusing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9118
2009-02-06 07:12:57 +00:00
Nicholas Nethercote
b7b48cb4a6 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
2009-02-06 05:34:19 +00:00
Nicholas Nethercote
009cd24326 Removed Makefile.core.am with some judicious refactoring.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9114
2009-02-06 04:49:14 +00:00
Nicholas Nethercote
44f04e904c Avoid unnecessary EXTRA_DIST files in Makefile.am.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9112
2009-02-06 04:13:52 +00:00
Nicholas Nethercote
eb4a905f4c Merge r9110 (inline Makefile.tool-flags.am) from DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9111
2009-02-06 04:05:43 +00:00
Nicholas Nethercote
7c930e4eb4 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
2009-02-06 03:46:50 +00:00
Nicholas Nethercote
a893d716bd 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
2009-02-03 03:59:05 +00:00
Julian Seward
c9f7ec1fb4 Suppression update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9097
2009-02-01 20:15:32 +00:00
Julian Seward
12054557cf Add support for glibc-2.10 (when it eventually appears).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9096
2009-02-01 19:01:11 +00:00
Julian Seward
c90635f9d3 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
2009-01-31 15:08:08 +00:00
Bart Van Assche
d704a19db5 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
2009-01-30 18:31:54 +00:00
Bart Van Assche
21e1e4c208 Generalized suppression patterns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9091
2009-01-30 17:52:39 +00:00
Bart Van Assche
f93d44456f 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
2009-01-30 17:52:21 +00:00
Bart Van Assche
bda1d6a840 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
2009-01-29 09:57:22 +00:00
Julian Seward
f0bf7aaf10 VG_(findBoundsFM): add comment re preconditions
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9085
2009-01-29 08:46:15 +00:00
Julian Seward
9d04a7c226 Generalise zlib suppressions a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9084
2009-01-29 08:45:19 +00:00
Julian Seward
bcf0bf5eb2 * 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
2009-01-29 08:44:49 +00:00
Josef Weidendorfer
70084d4fa2 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
2009-01-26 23:21:18 +00:00
Josef Weidendorfer
3a5719678f 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
2009-01-26 22:56:14 +00:00
Julian Seward
239e053ce5 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
2009-01-26 10:45:16 +00:00