Commit Graph

7955 Commits

Author SHA1 Message Date
Bart Van Assche
bc3f04b134 Added a suppression pattern for __nptl_deallocate_tsd().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11163
2010-06-08 15:00:18 +00:00
Bart Van Assche
789bfd10d8 Added a suppression pattern for the boost thread library.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11152
2010-06-05 11:57:57 +00:00
Bart Van Assche
a5fc0fbec7 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11151
2010-06-05 11:56:51 +00:00
Julian Seward
fac69dba30 on MacOSX, correctly propagate failure code of system() call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11147
2010-06-03 20:27:19 +00:00
Julian Seward
45c194f25d (for linux):
* pass --build-id=none to ld to stop it creating a.note.gnu.build-id
  exactly where we don't want it
 
* propagate error code from system() properly



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11146
2010-06-03 08:19:59 +00:00
Bart Van Assche
b0c39b2f5f Replaced dynamic initialization of DRD_(pthread_cond_initializer) by static initialization.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11145
2010-06-02 19:32:51 +00:00
Julian Seward
2bf5ac57cd Make link_tool_exe.c work for MacOSX. This un-breaks the MacOS build
following r11141.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11142
2010-06-02 00:46:58 +00:00
Julian Seward
c46347280b Add a new program (link_tool_exe.c) and use this to link the tool
executables.  Gets rid of the linker script kludgery and uniformly
uses -Ttext=0x38000000 (or whatever) on Linux, so as to accomodate
both traditional ld and gold.  Should fix #193413 although I have
been unable to test it.  Using a whole new program seems like
overkill, but this is infrastructure to support static linking of
the tool executables on MacOS too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11141
2010-06-02 00:31:34 +00:00
Bart Van Assche
b412aaa0f6 Updated Subversion ignore lists.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11140
2010-05-29 18:43:43 +00:00
Bart Van Assche
ebc0c2cb88 Handle statically initialized condition variables properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11139
2010-05-29 18:43:21 +00:00
Bart Van Assche
66daf93864 Added a regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11138
2010-05-29 18:42:14 +00:00
Bart Van Assche
7fadd5510a Can be processed again with autoconf 2.59 and before, which does not have AC_PROG_SED.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11137
2010-05-29 06:44:28 +00:00
Julian Seward
415232cfec libhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure
why thr->filter can be NULL here, though.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11136
2010-05-28 20:09:59 +00:00
Bart Van Assche
11cbd5ab82 Updated e-mail address.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11135
2010-05-27 10:43:21 +00:00
Tom Hughes
6d2c5d0342 Set VG_(args_the_exename) to the full path to the script when
loading a script as client. Closes #238345.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11134
2010-05-25 08:45:44 +00:00
Tom Hughes
f26002da90 Fix amd64 and ppc64 to correctly mark mq_timedreceive as LINXY so that
the post handler is run to mark the retrieved message as correct.

Also change the post handler to only mark the number of bytes actually
returned as defined, rather than the whole buffer.

Fixes #238679.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11133
2010-05-24 13:40:10 +00:00
Bart Van Assche
e5e599d67b Changes:
- Made glibc version detection test shorter and faster.
- Made unsupported glibc version error message more detailed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11132
2010-05-15 08:37:24 +00:00
Julian Seward
06ee4f712b Add missing backslash.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11131
2010-05-14 11:18:52 +00:00
Bart Van Assche
178c001a3c Added an additional tl_assert() statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11130
2010-05-13 08:10:52 +00:00
Bart Van Assche
c97f0cde02 Added support for glibc 2.12.
Note: many Helgrind and DRD regression tests still fail on Fedora 13 because
of differences in the call stacks of error reports compared to earlier
glibc/gcc combinations.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11129
2010-05-13 06:32:36 +00:00
Bart Van Assche
4dc56ebc78 DRD: added a suppression pattern for the libstdc++ included with gcc 4.4.4.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11128
2010-05-12 10:01:32 +00:00
Julian Seward
06b158b13b Add test cases for XADD reg,reg. (Nicolas Sauzede, nicolas.sauzede@st.com).
See #195662.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11127
2010-05-10 20:53:28 +00:00
Julian Seward
bbf4d274fd Enable testing of FISTS and FISTPS on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11126
2010-05-10 20:06:08 +00:00
Julian Seward
2e6b7655d1 New flag --require-text-symbol=:sopatt:fnpatt, to be used to check
that specified shared objects contain specified symbols.  Along with a
couple of regtests that unfortunately will fail on MacOSX.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11125
2010-05-09 22:30:43 +00:00
Tom Hughes
ef5b3e48b6 Add support for some EVIO ioctls. These are a bit abnormal because
the length part of the ioctl is not fixed so they are essentially
families of ioctls.

Based on patch from Peter Korsgaard. Fixes #235642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11124
2010-05-07 15:32:04 +00:00
Julian Seward
3b14257eb1 Rollup changes for Helgrind:
* Add new client request VALGRIND_HG_CLEAN_MEMORY_HEAPBLOCK.  This is
  like VALGRIND_HG_CLEAN_MEMORY but doesn't take an address range.
  Instead it takes a single argument which is supposed to be a pointer
  to the start of, or anywhere within, a heap allocated block.
  Helgrind then finds the block and paints it as belonging to the
  calling thread.  This is needed for correctly describing the
  behaviour of threadsafe reference counting when applied to classes
  involving inheritance of release methods or involving multiple
  inheritance.

* Add statistics counters for all basic VTS operations (tick, join,
  cmpLEQ, cmp_structural).

* Rewrite VTS__cmp_structural to be much faster.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11123
2010-05-05 09:34:42 +00:00
Julian Seward
d4a18f87cc Add a method to get the contents of an XArray so we can index in
it really fast, or iterate over it.  This is dangerous and breaks
the nice abstraction (sigh).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11122
2010-05-05 09:23:41 +00:00
Julian Seward
9b0574dff8 Update copyright dates to 2010.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121
2010-05-03 21:37:12 +00:00
Bart Van Assche
ab1476a932 Filter tuning such that the annotate_barrier test does now pass on Darwin too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11120
2010-04-29 17:44:23 +00:00
Bart Van Assche
b86a053f92 Refactoring: replaced two AC_TRY_COMPILE() occurrences by AC_CHECK_MEMBER().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11119
2010-04-29 16:37:26 +00:00
Bart Van Assche
763fcd734d Improved portability of the annotate_barrier regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11118
2010-04-29 16:05:54 +00:00
Bart Van Assche
a1d439d35b Made these two tests pass again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11117
2010-04-29 15:50:02 +00:00
Bart Van Assche
eff767211d Removed sem_init() test again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11116
2010-04-29 15:49:32 +00:00
Tom Hughes
302b1aad55 Include fcntl.h to get O_CREAT on Fedora 13.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11115
2010-04-29 09:36:35 +00:00
Tom Hughes
8e3cd040cb Link the tls test against tls2.so as it references symbols in it
and Fedora 13 no longer allows so's to be required indirectly (via
tls.so in this case).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11114
2010-04-29 09:22:25 +00:00
Tom Hughes
ee1b05c562 Include valgrind headers before system headers to avoid problems
with the system headers #defining things which are used as names
of structure members in vki headers.

This is needed to allow valgrind to build on Fedora 13 and Rawhide.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11113
2010-04-29 09:01:21 +00:00
Bart Van Assche
27759ab6c9 Suppressed a (harmless) compiler warning that was only reported on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11112
2010-04-29 07:11:46 +00:00
Bart Van Assche
8b079a07d5 Made test results independent of thread scheduling.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11111
2010-04-29 07:11:19 +00:00
Bart Van Assche
31e293e6fd Replaced most platform-test macros by HAVE_... macros.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11110
2010-04-29 06:28:43 +00:00
Bart Van Assche
2092c0a7b1 Added configure test for pthread_yield() and sem_init().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11109
2010-04-29 06:22:17 +00:00
Bart Van Assche
fc066fbde1 Added yet another regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11108
2010-04-29 06:06:29 +00:00
Bart Van Assche
a79e938687 Changed gcc version from 4.4.3 to 4.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11107
2010-04-29 05:53:22 +00:00
Tom Hughes
25b8be58ad Add some basic DWARF4 support. Based on patch from Jakub Jelinek
but with support for VLIW architectures with multiple opcodes per
instruction removed. Fixes #233595.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11106
2010-04-28 08:09:30 +00:00
Julian Seward
55089819eb Rename preprocessor macro __VALGRIND__ to __VALGRIND_MAJOR__ and add
comments.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11105
2010-04-19 08:43:26 +00:00
Julian Seward
448fa2462a search_all_symtabs: when mapping addresses to text symbols, consider
any symbol in the r-x mapped segment to be a valid candidate.  This
relaxes the filtering criterion slightly, makes it consistent with
other is-it-text? checks.  Some addresses which before didn't get
mapped to anything are now correctly mapped to "vtable for Foo"
symbols.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11104
2010-04-12 20:56:56 +00:00
Julian Seward
e5633740b6 Comment-only change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11103
2010-04-12 20:05:24 +00:00
Julian Seward
0b869ecf10 Change the method used in hg_intercepts.c to hide from the user, the
race between mythread_wrapper and the wrapper for pthread_create.  The
previous scheme could lead to false race reports in obscure cases.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11102
2010-04-12 19:53:05 +00:00
Julian Seward
79dc7aab1e Take account the ABI-mandated stack redzone when changing stack
shvals.  AFAIR this has never been handled correctly by Helgrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11101
2010-04-12 19:51:04 +00:00
Bart Van Assche
fda89041dc Should now really compile on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11100
2010-04-02 10:27:35 +00:00
Bart Van Assche
c58006ac4d Should now build on Darwin too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11099
2010-04-01 10:20:02 +00:00