]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoSupport a couple more syscalls needed for running KDE4 stuff on amd64-linux.
Julian Seward [Mon, 20 Oct 2008 10:30:08 +0000 (10:30 +0000)] 
Support a couple more syscalls needed for running KDE4 stuff on amd64-linux.

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

16 years agoRe-enable preening of global invariants. (This happens when a .so is
Julian Seward [Mon, 20 Oct 2008 10:25:16 +0000 (10:25 +0000)] 
Re-enable preening of global invariants.  (This happens when a .so is
unmapped, and that .so contains global variables that were accessed
while it was mapped in.)

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

16 years agoSet average translation size plausibly, so as to avoid excessive
Julian Seward [Mon, 20 Oct 2008 10:23:46 +0000 (10:23 +0000)] 
Set average translation size plausibly, so as to avoid excessive
retranslations caused by the default size.

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

16 years agoMerge (from branches/PTRCHECK r8599) a suppression file for exp-ptrcheck.
Julian Seward [Sun, 19 Oct 2008 18:58:13 +0000 (18:58 +0000)] 
Merge (from branches/PTRCHECK r8599) a suppression file for exp-ptrcheck.

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

16 years agoget_Seg_containing_addr() (in h_main.c): remove naive algorithm that
Julian Seward [Sat, 18 Oct 2008 19:55:31 +0000 (19:55 +0000)] 
get_Seg_containing_addr() (in h_main.c): remove naive algorithm that
searches through all live Segs and replace it with one which is O(log
N) in the number of live Segs.

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

16 years agoRemove five carriage returns introduced in r8665, so the expected outputs
Julian Seward [Sat, 18 Oct 2008 19:16:57 +0000 (19:16 +0000)] 
Remove five carriage returns introduced in r8665, so the expected outputs
match the actual outputs again.

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

16 years agoReplaced test for FILE::_lock by a more direct test.
Bart Van Assche [Mon, 13 Oct 2008 19:22:35 +0000 (19:22 +0000)] 
Replaced test for FILE::_lock by a more direct test.

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

16 years ago- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
Nicholas Nethercote [Mon, 13 Oct 2008 04:19:15 +0000 (04:19 +0000)] 
- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
  tools.
- Factor out 'execv' from 'system' and expose it to tools.

Partly based on a patch from Robert O'Callahan.

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

16 years agoPatch from Robert O'Callahan:
Nicholas Nethercote [Sun, 12 Oct 2008 19:53:28 +0000 (19:53 +0000)] 
Patch from Robert O'Callahan:

  create and expose 'dup2'

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

16 years agoPatch from Robert O'Callahan:
Nicholas Nethercote [Sun, 12 Oct 2008 19:51:41 +0000 (19:51 +0000)] 
Patch from Robert O'Callahan:

  make realloc(NULL, size) behave like malloc(size), and make
  realloc(ptr, 0) behave like free(ptr), as the real libc realloc does.

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

16 years agoAvoid warnings caused by mixed decls and code.
Nicholas Nethercote [Sun, 12 Oct 2008 19:50:51 +0000 (19:50 +0000)] 
Avoid warnings caused by mixed decls and code.

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

16 years agoAdded yet another suppression pattern.
Bart Van Assche [Sat, 11 Oct 2008 19:37:45 +0000 (19:37 +0000)] 
Added yet another suppression pattern.

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

16 years agoRemoved #define _IO_MTSAFE_IO again.
Bart Van Assche [Sat, 11 Oct 2008 19:25:18 +0000 (19:25 +0000)] 
Removed #define _IO_MTSAFE_IO again.

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

16 years agoRemoved inclusion of <bits/libc-lock.h>.
Bart Van Assche [Sat, 11 Oct 2008 19:04:40 +0000 (19:04 +0000)] 
Removed inclusion of <bits/libc-lock.h>.

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

16 years agoMake regression test output independent of the presence of glibc debug information.
Bart Van Assche [Sat, 11 Oct 2008 18:47:54 +0000 (18:47 +0000)] 
Make regression test output independent of the presence of glibc debug information.

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

16 years agoAdded check for the include file <bits/libc-lock.h>
Bart Van Assche [Sat, 11 Oct 2008 18:30:20 +0000 (18:30 +0000)] 
Added check for the include file <bits/libc-lock.h>

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

16 years agoSuppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.
Bart Van Assche [Sat, 11 Oct 2008 18:29:46 +0000 (18:29 +0000)] 
Suppress race reports triggered by glibc's _IO_flockfile(FILE*) on stdout and stderr.

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

16 years agoIncreased gcc version to 4.3.2.
Bart Van Assche [Sat, 11 Oct 2008 18:28:34 +0000 (18:28 +0000)] 
Increased gcc version to 4.3.2.

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

16 years agoAdded paragraph "Using the POSIX Threads API Effectively."
Bart Van Assche [Sat, 11 Oct 2008 18:28:12 +0000 (18:28 +0000)] 
Added paragraph "Using the POSIX Threads API Effectively."

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

16 years agoAdded omp_printf regression test.
Bart Van Assche [Sat, 11 Oct 2008 18:04:52 +0000 (18:04 +0000)] 
Added omp_printf regression test.

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

16 years agoAdded command-line option -h.
Bart Van Assche [Sat, 11 Oct 2008 18:03:27 +0000 (18:03 +0000)] 
Added command-line option -h.

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

16 years agoget_IntRegInfo(x86): handle missing %bh case (Jim Clause)
Julian Seward [Sat, 11 Oct 2008 10:18:16 +0000 (10:18 +0000)] 
get_IntRegInfo(x86): handle missing %bh case (Jim Clause)

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

16 years agoUpdated ignore list.
Bart Van Assche [Mon, 6 Oct 2008 06:36:59 +0000 (06:36 +0000)] 
Updated ignore list.

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

16 years agoOnly call pthread_condattr_setclock() if it's available in libpthread.
Bart Van Assche [Mon, 6 Oct 2008 06:34:20 +0000 (06:34 +0000)] 
Only call pthread_condattr_setclock() if it's available in libpthread.

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

16 years agoAdded test for pthread_condattr_setclock().
Bart Van Assche [Mon, 6 Oct 2008 06:33:16 +0000 (06:33 +0000)] 
Added test for pthread_condattr_setclock().

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

16 years agoAdded a regression test called monitor_example.
Bart Van Assche [Sun, 5 Oct 2008 17:37:06 +0000 (17:37 +0000)] 
Added a regression test called monitor_example.

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

16 years agoIncreased source code portability.
Bart Van Assche [Sun, 28 Sep 2008 12:31:45 +0000 (12:31 +0000)] 
Increased source code portability.

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

16 years agoSummarized pthread-unwind suppression patterns.
Bart Van Assche [Sat, 27 Sep 2008 13:23:41 +0000 (13:23 +0000)] 
Summarized pthread-unwind suppression patterns.

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

16 years agoAdded one more suppression pattern related to pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 13:14:06 +0000 (13:14 +0000)] 
Added one more suppression pattern related to pthread_cancel().

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

16 years agoUpdated svn:ignore properties.
Bart Van Assche [Sat, 27 Sep 2008 12:47:30 +0000 (12:47 +0000)] 
Updated svn:ignore properties.

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

16 years agoAdded suppression patterns related to pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 12:43:52 +0000 (12:43 +0000)] 
Added suppression patterns related to pthread_cancel().

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

16 years agoAdded intercept for pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 12:40:57 +0000 (12:40 +0000)] 
Added intercept for pthread_cancel().

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

16 years agoAdded client requests related to pthread_cancel().
Bart Van Assche [Sat, 27 Sep 2008 12:36:48 +0000 (12:36 +0000)] 
Added client requests related to pthread_cancel().

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

16 years agoAdded support for pthread_cancel() handling.
Bart Van Assche [Sat, 27 Sep 2008 12:36:13 +0000 (12:36 +0000)] 
Added support for pthread_cancel() handling.

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

16 years agoAdded more comments.
Bart Van Assche [Sat, 27 Sep 2008 12:35:31 +0000 (12:35 +0000)] 
Added more comments.

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

16 years agoAdded thread_pre_cancel().
Bart Van Assche [Sat, 27 Sep 2008 12:26:50 +0000 (12:26 +0000)] 
Added thread_pre_cancel().

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

16 years agoAdded the pth_cancel_locked test.
Bart Van Assche [Sat, 27 Sep 2008 12:26:17 +0000 (12:26 +0000)] 
Added the pth_cancel_locked test.

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

16 years agoDon't trust the result reported by pkg-config about QtCore, but try whether linking...
Bart Van Assche [Sun, 21 Sep 2008 15:00:58 +0000 (15:00 +0000)] 
Don't trust the result reported by pkg-config about QtCore, but try whether linking succeeds. This additional test is necessary when running configure with the flag --enable-only32bit.

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

16 years agoMade test for compiler atomic builtins more strict, such that drd/tests/atomic_var...
Bart Van Assche [Sun, 21 Sep 2008 11:24:00 +0000 (11:24 +0000)] 
Made test for compiler atomic builtins more strict, such that drd/tests/atomic_var.c doesn't trigger bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34115 in a.o. gcc 4.3.1 when Valgrind is configured with --enable-only32bit.

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

16 years agoRenamed __sync_add_and_fetch() into sync_add_and_fetch().
Bart Van Assche [Sun, 21 Sep 2008 11:21:23 +0000 (11:21 +0000)] 
Renamed __sync_add_and_fetch() into sync_add_and_fetch().

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

16 years agom_mallocfree.c: omit the 8 byte per block cost-center field used
Julian Seward [Fri, 19 Sep 2008 20:13:39 +0000 (20:13 +0000)] 
m_mallocfree.c: omit the 8 byte per block cost-center field used
for heap profiling, if heap profiling is not selected.

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

16 years agoThis should have been committed as part of r8623 (Fix longstanding bug
Julian Seward [Fri, 19 Sep 2008 09:27:02 +0000 (09:27 +0000)] 
This should have been committed as part of r8623 (Fix longstanding bug
in dual-arch support).

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

16 years agoFix longstanding bug in dual-arch support, which originated in
Julian Seward [Fri, 19 Sep 2008 09:02:19 +0000 (09:02 +0000)] 
Fix longstanding bug in dual-arch support, which originated in
memcheck/tests/Makefile.am and was copied into drd/tests/Makefile.am.

When building regtests for a 32-bit only build on a 64-bit CPU, the
use of $(VG_ARCH) in these Makefiles is incorrect, because VG_ARCH
will be set to the 64-bit architecture, not the 32-bit architecture.

See comments on VG_ARCH_PRI and VG_ARCH_MAX in configure.in for more
details.

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

16 years agoAdd missing file that was apparently missed in r8621.
Julian Seward [Thu, 18 Sep 2008 18:37:30 +0000 (18:37 +0000)] 
Add missing file that was apparently missed in r8621.

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

16 years agoMerge all remaining changes from branches/PTRCHECK. These are some
Julian Seward [Thu, 18 Sep 2008 18:12:50 +0000 (18:12 +0000)] 
Merge all remaining changes from branches/PTRCHECK.  These are some
relatively minor extensions to m_debuginfo, a major overhaul of
m_debuginfo/readdwarf3.c to get its space usage under control, and
changes throughout the system to enable heap-use profiling.

The majority of the merged changes were committed into
branches/PTRCHECK as the following revs: 8591 8595 8598 8599 8601 and
8161.

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

16 years agoMerge the Ptrcheck tool from branches/PTRCHECK r8619.
Julian Seward [Thu, 18 Sep 2008 14:43:05 +0000 (14:43 +0000)] 
Merge the Ptrcheck tool from branches/PTRCHECK r8619.

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

16 years agoAdded a note explaining that the code in this file is interpreted by more than one...
Bart Van Assche [Thu, 11 Sep 2008 15:03:59 +0000 (15:03 +0000)] 
Added a note explaining that the code in this file is interpreted by more than one shell.

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

16 years agoMake sure that stderr redirection works both with bash and tcsh.
Bart Van Assche [Wed, 10 Sep 2008 09:07:52 +0000 (09:07 +0000)] 
Make sure that stderr redirection works both with bash and tcsh.

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

16 years agoUpdated expected output after most recent source code modifications.
Bart Van Assche [Wed, 10 Sep 2008 06:11:38 +0000 (06:11 +0000)] 
Updated expected output after most recent source code modifications.

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

16 years agoAdded more comments.
Bart Van Assche [Tue, 9 Sep 2008 18:18:26 +0000 (18:18 +0000)] 
Added more comments.

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

16 years agoMake sure that atomic_var.c compiles without warnings in case HAVE_BUILTIN_ATOMIC...
Bart Van Assche [Tue, 9 Sep 2008 18:11:40 +0000 (18:11 +0000)] 
Make sure that atomic_var.c compiles without warnings in case HAVE_BUILTIN_ATOMIC has not been defined.

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

16 years ago- Added support for the variable ABT_JOBS, number of jobs to run in parallel.
Bart Van Assche [Mon, 8 Sep 2008 18:43:53 +0000 (18:43 +0000)] 
- Added support for the variable ABT_JOBS, number of jobs to run in parallel.
- Added support for the variable ABT_RUN_REGTEST, the command to run the regression tests.
- Added support for the variable ABT_CONFIGURE_OPTIONS, such that extra command line options
  can be passed to the configure script.
- Cross-compilation patch is applied after source code checkout and before the source code is
  compiled.

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

16 years agoAdded configuration files for Georgia Tech's Cellbuzz cluster.
Bart Van Assche [Mon, 8 Sep 2008 18:39:38 +0000 (18:39 +0000)] 
Added configuration files for Georgia Tech's Cellbuzz cluster.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 18:49:35 +0000 (18:49 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 18:03:09 +0000 (18:03 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 18:01:54 +0000 (18:01 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 18:00:38 +0000 (18:00 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 17:31:03 +0000 (17:31 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 17:14:40 +0000 (17:14 +0000)] 
Updated Subversion ignore list.

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

16 years agoAdded double quotes around a shell function argument.
Bart Van Assche [Sun, 7 Sep 2008 17:10:07 +0000 (17:10 +0000)] 
Added double quotes around a shell function argument.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 17:06:40 +0000 (17:06 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 17:03:57 +0000 (17:03 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Sep 2008 17:01:12 +0000 (17:01 +0000)] 
Updated Subversion ignore list.

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

16 years agoDisabled printing of file descriptor value in order to make the test results more...
Bart Van Assche [Sun, 7 Sep 2008 16:55:15 +0000 (16:55 +0000)] 
Disabled printing of file descriptor value in order to make the test results more reproducible.

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

16 years agoEnabled capget and capset system calls for amd64, ppc32 and ppc64.
Bart Van Assche [Wed, 27 Aug 2008 17:41:56 +0000 (17:41 +0000)] 
Enabled capget and capset system calls for amd64, ppc32 and ppc64.

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

16 years agoAdded regression test for Linux' capget system call.
Bart Van Assche [Wed, 27 Aug 2008 17:41:06 +0000 (17:41 +0000)] 
Added regression test for Linux' capget system call.

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

16 years agoFix regression on none/tests/faultstatus caused by r8522.
Julian Seward [Mon, 25 Aug 2008 12:10:14 +0000 (12:10 +0000)] 
Fix regression on none/tests/faultstatus caused by r8522.

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

16 years agoRework storage management in the Dwarf3 type and variable reader, to
Julian Seward [Fri, 22 Aug 2008 23:18:02 +0000 (23:18 +0000)] 
Rework storage management in the Dwarf3 type and variable reader, to
try and reduce its space consumption.  This change changes some long
linked lists into XArrays instead.

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

16 years agoTry and bit a bit more space-economical, by increasing the
Julian Seward [Fri, 22 Aug 2008 23:16:06 +0000 (23:16 +0000)] 
Try and bit a bit more space-economical, by increasing the
average loading factor from 0.75 to 0.83, and by being more
careful in VG_(cloneXA).

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

16 years agoMake the absolute bare minimum changes needed to stop the Dwarf3
Julian Seward [Wed, 20 Aug 2008 08:14:07 +0000 (08:14 +0000)] 
Make the absolute bare minimum changes needed to stop the Dwarf3
variable & type reader dying on gcc-4.3.x produced Dwarf3.  This is
done by handling DW_TAG_class_type and treating it the same as
DW_TAG_structure_type.  I don't know if this is really correct or not.

This reader is still grossly inefficient in terms of space use, and
could be majorly improved, by storing information in arrays rather
than in linked lists with (sometimes) more than 5 million elements.
But this will have to wait.

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

16 years agoFix RPM/spec build. (Daniel J Blueman)
Julian Seward [Tue, 19 Aug 2008 09:52:10 +0000 (09:52 +0000)] 
Fix RPM/spec build.  (Daniel J Blueman)

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

16 years agoMake VG_(addToXA) and VG_(addBytesToXA) 64-bit clean.
Julian Seward [Tue, 19 Aug 2008 08:57:49 +0000 (08:57 +0000)] 
Make VG_(addToXA) and VG_(addBytesToXA) 64-bit clean.

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

16 years agoMove the WordFM (AVL trees of UWord-pairs) implementation from
Julian Seward [Tue, 19 Aug 2008 08:38:52 +0000 (08:38 +0000)] 
Move the WordFM (AVL trees of UWord-pairs) implementation from
helgrind/ into the core.  It's just too darn useful to not be in the
core.  There is some overlap in functionality between OSet and WordFM,
but OSet is more space efficient in some circumstances, whereas WordFM
is easier to use and a bit more flexible in some cases.

Also in this new module (m_wordfm) is a type WordBag, build on top of
WordFM.  This provides Multiset of UWords functionality.

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

16 years agoTidy up VG_(stat) usage in VG_(check_executable). Followup to r8522.
Julian Seward [Tue, 19 Aug 2008 08:32:03 +0000 (08:32 +0000)] 
Tidy up VG_(stat) usage in VG_(check_executable).  Followup to r8522.

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

16 years agoPresently, Valgrind (non-client) code that wants to use the stat
Julian Seward [Tue, 19 Aug 2008 07:03:04 +0000 (07:03 +0000)] 
Presently, Valgrind (non-client) code that wants to use the stat
family of syscalls is impossible to write in a way that's portable and
correct.  On some targets (eg x86-linux) you need to do sys_stat64 and
receive the results in a 'struct vki_stat64'.  But on other targets
(eg amd64-linux) neither sys_stat64 nor 'struct vki_stat64' exist.

This commit adds a new type, 'struct vg_stat', which contains 64 bit
fields in all the right places, and makes VG_(stat) and VG_(fstat) use
it.  This means callers to the two functions no longer need to worry
about the is-it-64-bit-clean-or-not question, since these routines
reformat the received data into a'struct vg_stat'.  Kind of like what
glibc must have been doing for decades.

This (indirectly) fixes a bug on x86-linux, in which m_debuginfo would
sometimes fail to read debug info, due to VG_(di_notify_mmap) using
VG_(stat) (hence sys_stat) on the file, which failed, and when in fact
it should have used sys_stat64.  Bug reported and tracked down by
Marc-Oliver Straub.

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

16 years agoThe address space manager, and in particular the NSegment type,
Julian Seward [Mon, 18 Aug 2008 21:47:11 +0000 (21:47 +0000)] 
The address space manager, and in particular the NSegment type,
hardwire the assumption that an inode number is a UWord, that is, a
host word.  There's no reason for that assumption to be valid; an
inode number could be a 64-bit int even on a 32 bit platform (eg w.r.t
sys_stat64).  This commit changes inode numbers and, for good measure,
dev numbers, to be 64-bit regardless.

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

17 years agoHandle new IR ops Iop_RoundF64toF64_*.
Julian Seward [Fri, 8 Aug 2008 08:38:23 +0000 (08:38 +0000)] 
Handle new IR ops Iop_RoundF64toF64_*.

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

17 years agoTidy up the wrappers for pread64 and pwrite64, and make these two
Julian Seward [Thu, 7 Aug 2008 20:29:55 +0000 (20:29 +0000)] 
Tidy up the wrappers for pread64 and pwrite64, and make these two
syscalls available on ppc64-linux.

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

17 years agoAdded yet another Qt4 suppression pattern.
Bart Van Assche [Sat, 2 Aug 2008 10:03:37 +0000 (10:03 +0000)] 
Added yet another Qt4 suppression pattern.

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

17 years agoEnsured that the qt4 regression tests compile with the pkg-config flags on all platforms.
Bart Van Assche [Sat, 2 Aug 2008 09:28:39 +0000 (09:28 +0000)] 
Ensured that the qt4 regression tests compile with the pkg-config flags on all platforms.

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

17 years agoQt4 detection test is now based on pkg-config. Qt4 QMutex::tryLock(int) test now...
Bart Van Assche [Sat, 2 Aug 2008 09:08:17 +0000 (09:08 +0000)] 
Qt4 detection test is now based on pkg-config. Qt4 QMutex::tryLock(int) test now uses proper Qt4 compiler flags.

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

17 years agoUn-break configure test for clock_gettime().
Bart Van Assche [Tue, 29 Jul 2008 17:54:49 +0000 (17:54 +0000)] 
Un-break configure test for clock_gettime().

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

17 years agoRemoved duplicate volatile keyword such that the compiler does no longer print a...
Bart Van Assche [Tue, 29 Jul 2008 17:04:31 +0000 (17:04 +0000)] 
Removed duplicate volatile keyword such that the compiler does no longer print a warning.

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

17 years agoSwitched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements...
Bart Van Assche [Tue, 29 Jul 2008 16:57:06 +0000 (16:57 +0000)] 
Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements trigger any locking.

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

17 years agoCompiles now with old versions of <sys/epoll.h> too.
Bart Van Assche [Tue, 29 Jul 2008 16:28:36 +0000 (16:28 +0000)] 
Compiles now with old versions of <sys/epoll.h> too.

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

17 years agoUpdated Makefile.am.
Bart Van Assche [Tue, 29 Jul 2008 15:27:48 +0000 (15:27 +0000)] 
Updated Makefile.am.

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

17 years agoRemoved duplicate expected output file.
Bart Van Assche [Tue, 29 Jul 2008 15:21:17 +0000 (15:21 +0000)] 
Removed duplicate expected output file.

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

17 years agoAdded suppression pattern for Qt4.0/4.1.
Bart Van Assche [Tue, 29 Jul 2008 13:01:16 +0000 (13:01 +0000)] 
Added suppression pattern for Qt4.0/4.1.

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

17 years agoAdded expected output for comiler versions without support for built-in atomic operat...
Bart Van Assche [Tue, 29 Jul 2008 12:06:57 +0000 (12:06 +0000)] 
Added expected output for comiler versions without support for built-in atomic operations.

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

17 years agoAdd a followup comment to the changes in r8454, which made memcheck's
Julian Seward [Tue, 29 Jul 2008 09:44:52 +0000 (09:44 +0000)] 
Add a followup comment to the changes in r8454, which made memcheck's
client realloc function use an always-move strategy.

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

17 years agoAttempted to make DRD documentation compatible with pdfxmltex. Added note about g_thr...
Bart Van Assche [Mon, 28 Jul 2008 14:55:38 +0000 (14:55 +0000)] 
Attempted to make DRD documentation compatible with pdfxmltex. Added note about g_thread_init().

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

17 years agoSorted noinst_HEADERS filenames alphabetically.
Bart Van Assche [Mon, 28 Jul 2008 12:03:53 +0000 (12:03 +0000)] 
Sorted noinst_HEADERS filenames alphabetically.

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

17 years agoReverted commit 8448.
Bart Van Assche [Mon, 28 Jul 2008 11:36:11 +0000 (11:36 +0000)] 
Reverted commit 8448.

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

17 years agoAdded configure test for QMutex::tryLock(int).
Bart Van Assche [Mon, 28 Jul 2008 11:35:10 +0000 (11:35 +0000)] 
Added configure test for QMutex::tryLock(int).

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

17 years agoFixed race condition.
Bart Van Assche [Mon, 28 Jul 2008 11:23:38 +0000 (11:23 +0000)] 
Fixed race condition.

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

17 years agoInclude inlined C files in tarball, else it's not buildable.
Julian Seward [Wed, 23 Jul 2008 20:08:41 +0000 (20:08 +0000)] 
Include inlined C files in tarball, else it's not buildable.

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

17 years agoTemporarily comment out a couple of XML fragments which cause the .pdf
Julian Seward [Tue, 22 Jul 2008 18:32:29 +0000 (18:32 +0000)] 
Temporarily comment out a couple of XML fragments which cause the .pdf
generation (make print-docs), and hence make dist, to fail for
completely non-obvious reasons, even though xsltproc (make html-docs)
does not complain about them.

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

17 years agoChange memcheck's (client) realloc implementation so that it copies
Julian Seward [Tue, 22 Jul 2008 18:23:16 +0000 (18:23 +0000)] 
Change memcheck's (client) realloc implementation so that it copies
and moves the block even when the new size is smaller or the same.
This increases the chance that it can detect buggy code which assumes
that realloc-smaller doesn't cause the block to move.

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

17 years ago* handle sys_getprocs64 on ppc32-aix5
Julian Seward [Tue, 22 Jul 2008 10:01:25 +0000 (10:01 +0000)] 
* handle sys_getprocs64 on ppc32-aix5

* handle sys_uname properly on ppc{32,64}-aix5

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

17 years agoOrigin-tracking fix: make sure that we have a shadow-origin (B)
Julian Seward [Tue, 22 Jul 2008 09:59:48 +0000 (09:59 +0000)] 
Origin-tracking fix: make sure that we have a shadow-origin (B)
temporary defined for every (original) temp used in the block's IR
preamble, as is already done of the shadow-definedness (V)
temporaries.  Otherwise we can end up generating references to B
temporaries that have no assigned value, which causes the IR sanity
checker to complain.  Only observed (and even then rarely) on the
complex preambles sometimes used for TOC-afflicted platforms.

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