]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
17 years agoFixed a memory leak.
Bart Van Assche [Sun, 24 Feb 2008 18:29:43 +0000 (18:29 +0000)] 
Fixed a memory leak.

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

17 years agoCleanup: moved const keyword in front of datatype.
Bart Van Assche [Sun, 24 Feb 2008 18:29:10 +0000 (18:29 +0000)] 
Cleanup: moved const keyword in front of datatype.

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

17 years agoCleanup: removed commented out code.
Bart Van Assche [Sun, 24 Feb 2008 18:28:19 +0000 (18:28 +0000)] 
Cleanup: removed commented out code.

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

17 years agoMinor change: renamed one variable.
Bart Van Assche [Sun, 24 Feb 2008 18:27:11 +0000 (18:27 +0000)] 
Minor change: renamed one variable.

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

17 years agoAdded vc_assign() function.
Bart Van Assche [Sun, 24 Feb 2008 18:26:46 +0000 (18:26 +0000)] 
Added vc_assign() function.

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

17 years agoCleanup: removed old data race detection algorithm implementation.
Bart Van Assche [Sun, 24 Feb 2008 18:25:43 +0000 (18:25 +0000)] 
Cleanup: removed old data race detection algorithm implementation.

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

17 years agoFixed a memory leak and renamed one variable.
Bart Van Assche [Sun, 24 Feb 2008 18:22:37 +0000 (18:22 +0000)] 
Fixed a memory leak and renamed one variable.

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

17 years agoAdded more debugging output.
Bart Van Assche [Sun, 24 Feb 2008 18:21:12 +0000 (18:21 +0000)] 
Added more debugging output.

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

17 years agoFixed output.
Bart Van Assche [Sun, 24 Feb 2008 18:19:09 +0000 (18:19 +0000)] 
Fixed output.

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

17 years agoVarious minor changes.
Bart Van Assche [Sun, 24 Feb 2008 18:18:23 +0000 (18:18 +0000)] 
Various minor changes.

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

17 years agoWhitespace-only change.
Bart Van Assche [Sun, 24 Feb 2008 18:16:56 +0000 (18:16 +0000)] 
Whitespace-only change.

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

17 years agoAdded const keyword to second argument of VG_(OSetGen_Remove)().
Bart Van Assche [Sat, 23 Feb 2008 19:04:44 +0000 (19:04 +0000)] 
Added const keyword to second argument of VG_(OSetGen_Remove)().

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

17 years agoAdded a section about programming with threads, added an acknowledgements section...
Bart Van Assche [Thu, 21 Feb 2008 20:32:57 +0000 (20:32 +0000)] 
Added a section about programming with threads, added an acknowledgements section and added more references.

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

17 years agoRewrote the README.txt document.
Bart Van Assche [Sun, 17 Feb 2008 18:51:06 +0000 (18:51 +0000)] 
Rewrote the README.txt document.

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

17 years agoUpdated to do list.
Bart Van Assche [Sun, 17 Feb 2008 18:13:00 +0000 (18:13 +0000)] 
Updated to do list.

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

17 years agoComment-only changes.
Julian Seward [Sun, 17 Feb 2008 11:46:58 +0000 (11:46 +0000)] 
Comment-only changes.

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

17 years agoFix exp-drd Fedora 8 tc18_semabuse regression test failure. It is okay to leave out...
Bart Van Assche [Sun, 17 Feb 2008 09:21:05 +0000 (09:21 +0000)] 
Fix exp-drd Fedora 8 tc18_semabuse regression test failure. It is okay to leave out the tl_assert(waited) statement because this statement is only triggered in case sem_post() fails, and sem_post() currently only fails when called on something that is not a semaphore.

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

17 years agoIgnore executables.
Robert Walsh [Sat, 16 Feb 2008 02:37:03 +0000 (02:37 +0000)] 
Ignore executables.

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

17 years agoIgnore post.out files.
Robert Walsh [Sat, 16 Feb 2008 02:35:31 +0000 (02:35 +0000)] 
Ignore post.out files.

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

17 years agoOops - don't ignore stuff here.
Robert Walsh [Sat, 16 Feb 2008 02:33:54 +0000 (02:33 +0000)] 
Oops - don't ignore stuff here.

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

17 years agoIgnore output files.
Robert Walsh [Sat, 16 Feb 2008 02:33:30 +0000 (02:33 +0000)] 
Ignore output files.

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

17 years agoTry to sort out signedness problems in hg_wordfm.[ch], and do a bunch
Julian Seward [Fri, 15 Feb 2008 22:02:30 +0000 (22:02 +0000)] 
Try to sort out signedness problems in hg_wordfm.[ch], and do a bunch
of other tidying too.

* All these word-based abstractions (WordFM, WordSet, WordBag) now
  operate on unsigned words (UWord), whereas they previously operated
  on signed words (Word).  This became a problem, when using unboxed
  comparisons, with the introduction of HG_(initIterAtFM), which
  allows iteration over parts of mappings.  Iterating over a mapping in
  increasing order of signed Word keys is not what callers expect when
  iterating through maps whose keys representing addresses (Addr) since
  Addr is unsigned, and causes logical problems and assertion
  failures.

* Change various size-of-things types from signed to unsigned, and
  make them consistently word sized.  For example the return type
  of HG_(sizeFM) used to be an Int, which never made any sense
  (the size can't be negative, and, on a 64-bit platform, the
  map could have more than 2G elements, in which case an Int can't
  represent the result).  So make the return value a UWord instead.
  This should generally help avoid obscure overflow problems on 64-bit
  platforms.

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

17 years agoFix minor breakage in 7 tests.
Nicholas Nethercote [Wed, 13 Feb 2008 05:05:58 +0000 (05:05 +0000)] 
Fix minor breakage in 7 tests.

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

17 years agonotes about SPEC benchmarks
Nicholas Nethercote [Mon, 11 Feb 2008 21:22:15 +0000 (21:22 +0000)] 
notes about SPEC benchmarks

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

17 years agoUpdate bug status.
Tom Hughes [Mon, 11 Feb 2008 14:50:38 +0000 (14:50 +0000)] 
Update bug status.

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

17 years agoAlways call ML_(generic_POST_sys_shmat) when a shmat call succeeds, even
Tom Hughes [Mon, 11 Feb 2008 14:47:05 +0000 (14:47 +0000)] 
Always call ML_(generic_POST_sys_shmat) when a shmat call succeeds, even
if the memory was attached at address zero. Fixes bug #157665.

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

17 years agoUpdate copyright dates ("200X-2007" --> "200X-2008").
Julian Seward [Mon, 11 Feb 2008 11:34:59 +0000 (11:34 +0000)] 
Update copyright dates ("200X-2007" --> "200X-2008").

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

17 years agoUpdate.
Julian Seward [Mon, 11 Feb 2008 11:32:40 +0000 (11:32 +0000)] 
Update.

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

17 years agoInclude headers for VG_(register_stack) calls.
Julian Seward [Mon, 11 Feb 2008 11:23:12 +0000 (11:23 +0000)] 
Include headers for VG_(register_stack) calls.

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

17 years agoFix race condition in sem_post() wrapper (Bart Van Assche).
Julian Seward [Mon, 11 Feb 2008 11:00:51 +0000 (11:00 +0000)] 
Fix race condition in sem_post() wrapper (Bart Van Assche).

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

17 years agoTrack top level Makefile.am changes in r7390.
Julian Seward [Mon, 11 Feb 2008 10:56:12 +0000 (10:56 +0000)] 
Track top level Makefile.am changes in r7390.

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

17 years agoUpdate.
Julian Seward [Sun, 10 Feb 2008 22:41:39 +0000 (22:41 +0000)] 
Update.

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

17 years agoFrom Bart van Assche:
Nicholas Nethercote [Sun, 10 Feb 2008 22:36:55 +0000 (22:36 +0000)] 
From Bart van Assche:

A long time ago pthreads-functions were instrumented in the drd-patch
via modifications of coregrind/vg_preloaded.c. A.o. detached threads
were recognized by intercepting pthread_create(). This intercept was
active for all tools, so it made sense to add a unit test for it
(none/tests/pth_detached.c). This intercept has been moved from
coregrind/vg_preloaded.c to exp-drd/drd_preloaded.c, so this unit
test does no longer make sense for nulgrind. This test may be
removed.

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

17 years agoTest exp-tools by default as well.
Nicholas Nethercote [Sun, 10 Feb 2008 22:19:58 +0000 (22:19 +0000)] 
Test exp-tools by default as well.

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

17 years agoTry to fix build system breakage w.r.t. ssse3_misaligned. It isn't
Julian Seward [Sun, 10 Feb 2008 17:46:46 +0000 (17:46 +0000)] 
Try to fix build system breakage w.r.t. ssse3_misaligned.  It isn't
created from a .def file so should not be included in INSN_TESTS.

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

17 years agoMake exp-drd regression tests succeed when glibc-debuginfo is
Julian Seward [Sat, 9 Feb 2008 14:51:41 +0000 (14:51 +0000)] 
Make exp-drd regression tests succeed when glibc-debuginfo is
installed.  (Bart Van Assche)

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

17 years agoOnly build the SSSE3 tests on machines whose assemblers know about
Julian Seward [Sat, 9 Feb 2008 12:07:40 +0000 (12:07 +0000)] 
Only build the SSSE3 tests on machines whose assemblers know about
these instructions.

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

17 years agostart 3.4.0 release notes
Nicholas Nethercote [Sat, 9 Feb 2008 05:10:45 +0000 (05:10 +0000)] 
start 3.4.0 release notes

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

17 years agoAdd SSSE3 tests.
Julian Seward [Sat, 9 Feb 2008 01:55:52 +0000 (01:55 +0000)] 
Add SSSE3 tests.

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

17 years agoTool-side support for the new primops required by SSSE3 instructions.
Julian Seward [Sat, 9 Feb 2008 01:49:32 +0000 (01:49 +0000)] 
Tool-side support for the new primops required by SSSE3 instructions.
I think this is all that is required on the tools side.

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

17 years agoMake the clone system call wrappers call VG_(register_stack) to record
Tom Hughes [Fri, 8 Feb 2008 15:17:07 +0000 (15:17 +0000)] 
Make the clone system call wrappers call VG_(register_stack) to record
the new thread's stack, then make the stack unwinder use that information
to make a better guess at the stack bounds.

This helps avoid crashes trying to unwind the stack under wine when
the starting point is a routine without a proper stack frame.

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

17 years agoUpdate (mostly to check that the svn server still works after host change)
Julian Seward [Tue, 5 Feb 2008 20:07:23 +0000 (20:07 +0000)] 
Update (mostly to check that the svn server still works after host change)

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

17 years agominor tweak
Nicholas Nethercote [Sun, 3 Feb 2008 22:35:21 +0000 (22:35 +0000)] 
minor tweak

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

17 years agoFix 'make dist' -- don't list nonexistent files for inclusion in the
Julian Seward [Sun, 3 Feb 2008 12:46:45 +0000 (12:46 +0000)] 
Fix 'make dist' -- don't list nonexistent files for inclusion in the
tarball.

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

17 years agofix typo
Nicholas Nethercote [Thu, 31 Jan 2008 05:00:42 +0000 (05:00 +0000)] 
fix typo

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

17 years agoupdate
Nicholas Nethercote [Tue, 29 Jan 2008 21:36:47 +0000 (21:36 +0000)] 
update

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

17 years agoMassif: --time-unit=ms was broken in the ms_print script. People obviously
Nicholas Nethercote [Tue, 29 Jan 2008 21:33:25 +0000 (21:33 +0000)] 
Massif: --time-unit=ms was broken in the ms_print script.  People obviously
aren't using that option much!

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

17 years agocomment-only change
Nicholas Nethercote [Tue, 29 Jan 2008 04:12:48 +0000 (04:12 +0000)] 
comment-only change

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

17 years agoAdd an alternative .post.exp output for Massif's long-names test.
Nicholas Nethercote [Tue, 29 Jan 2008 04:11:00 +0000 (04:11 +0000)] 
Add an alternative .post.exp output for Massif's long-names test.

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

17 years agodrd changes (Bart Van Assche)
Julian Seward [Mon, 21 Jan 2008 14:19:07 +0000 (14:19 +0000)] 
drd changes (Bart Van Assche)

- The exp-drd regression tests now run without producing assertion
failures and without hanging on Red Hat 7.3. It doesn't make sense
however to run exp-drd on Red Hat 7.3 -- while exp-drd works fine with
the NPTL, more work would be required to make exp-drd work with
linuxthreads.
- Converted several tl_assert() calls into error messages.
- Added a regression test called pth_barrier, which tests whether data
races are detected in a program that uses barriers. The output exp-drd
produces for this test program is not yet correct however.
- Updated exp-drd/TODO.txt.

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

17 years agoupdate
Nicholas Nethercote [Sun, 20 Jan 2008 23:30:58 +0000 (23:30 +0000)] 
update

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

17 years agoWhen truncating long lines in the output file, make sure they end with a
Nicholas Nethercote [Sun, 20 Jan 2008 22:30:52 +0000 (22:30 +0000)] 
When truncating long lines in the output file, make sure they end with a
newline.  Fixes bug #155929.

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

17 years agoRegtest/stability changes for drd (Bart Van Assche)
Julian Seward [Fri, 18 Jan 2008 07:42:01 +0000 (07:42 +0000)] 
Regtest/stability changes for drd (Bart Van Assche)

- Fix helgrind/tests/tc18_semabuse.c on glibc 2.7 (RedHat 8).

- Fixed a glibc 2.7 specific assertion failure in exp-drd, namely one
  that was triggered when sem_post()'s return value is not zero.

- exp-drd/test/matinv.c compiles now also on RedHat 7.3.

Note: more work will be required to get exp-drd working correctly on
RedHat 7.3.

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

17 years agoAllow a WordFM iterator to be initialised so as to exclude all key
Julian Seward [Thu, 17 Jan 2008 23:19:54 +0000 (23:19 +0000)] 
Allow a WordFM iterator to be initialised so as to exclude all key
values below a given value.  This allows efficiently iterating over
small subsets of a mapping.  Use this in Helgrind to avoid a
performance bad case.  Patch from Konstantin Serebryany.

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

17 years agoFix inconsistent order of fields. I think this is purely aesthetic
Julian Seward [Thu, 17 Jan 2008 14:37:24 +0000 (14:37 +0000)] 
Fix inconsistent order of fields.  I think this is purely aesthetic
since nothing depends on the actual layout of this struct, but anyway.
Noticed by Vinay Nallamothu.

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

17 years agoIntercept memcpy on 64-bit ld.so's.
Julian Seward [Tue, 15 Jan 2008 08:42:56 +0000 (08:42 +0000)] 
Intercept memcpy on 64-bit ld.so's.

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

17 years agoHandle DW_OP_plus_uconst. Possibly fixes #155091 (not yet confirmed
Julian Seward [Mon, 14 Jan 2008 12:04:11 +0000 (12:04 +0000)] 
Handle DW_OP_plus_uconst.  Possibly fixes #155091 (not yet confirmed
by reporter).

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

17 years agoDRD updates (Bart Van Assche):
Julian Seward [Mon, 14 Jan 2008 11:54:56 +0000 (11:54 +0000)] 
DRD updates (Bart Van Assche):

- Updated copyright statement: replaced 2006-2007 by 2006-2008.
- Added copyright statement in the files where it was missing
(drd_track.h and drd_clientreq.c)
- Eliminated dependencies on core header files -- there are no more
#include "pub_core....h" directives in the exp-drd source code.
- Added semaphore support.
- Added barrier support.
- Added pthread_mutex_timedlock() support.
- Stack depth of stack traces printed by exp-drd can now be set via
--num-callers=...
- Added command-line option --trace-barrier=[yes|no].
- Added regression test for pthread_barrier() (matinv, a program that
performs matrix inversion).
- Added regression test sem_as_mutex, which tests whether race
detection works correctly when a semaphore is used to ensure mutual
exclusion of critical sections.
- Some of helgrind's regression tests are now used to test both
helgrind and exp-drd: tc17_sembar and tc18_semabuse.
- Cleaned up bitmap implementation code now that the const keyword has
been added to the declarations of the OSet functions.
- Cleaned up exp-drd/Makefile.am
- Updated exp-drd/TODO.txt

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

17 years agoEnable some syscalls needed to run firefox on 64-bit ppc on Fedora 8.
Julian Seward [Wed, 9 Jan 2008 22:01:40 +0000 (22:01 +0000)] 
Enable some syscalls needed to run firefox on 64-bit ppc on Fedora 8.

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

17 years agoStart a bug-tracking file for the 3.3 line.
Julian Seward [Wed, 9 Jan 2008 21:19:44 +0000 (21:19 +0000)] 
Start a bug-tracking file for the 3.3 line.

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

17 years agoMake a new regtest target, "all-regtest", being the union of "make
Julian Seward [Wed, 9 Jan 2008 21:03:43 +0000 (21:03 +0000)] 
Make a new regtest target, "all-regtest", being the union of "make
regtest" and "make exp-regtest".  Then change the nightly build system
to run all-regtest instead of exp-regtest.

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

17 years agoMove VG_(clo_backtrace_size) to a tool-visible header file.
Julian Seward [Wed, 9 Jan 2008 18:37:41 +0000 (18:37 +0000)] 
Move VG_(clo_backtrace_size) to a tool-visible header file.

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

17 years agoIf we don't find the address in the segInfo list that ask the address
Tom Hughes [Tue, 8 Jan 2008 17:44:04 +0000 (17:44 +0000)] 
If we don't find the address in the segInfo list that ask the address
space manager for the name of the file it was mapped from as a fallback
solution.

This allows us to print the names of exe/dll files in the stack trace
when running programs under wine.

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

17 years agoMade the argument to VG_(am_get_filename) const as it doesn't need
Tom Hughes [Tue, 8 Jan 2008 16:48:30 +0000 (16:48 +0000)] 
Made the argument to VG_(am_get_filename) const as it doesn't need
to be modified and the routine to find the segment for an address now
returns a const pointer.

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

17 years agoAdd support for the sync_file_range system call.
Tom Hughes [Tue, 8 Jan 2008 16:31:25 +0000 (16:31 +0000)] 
Add support for the sync_file_range system call.

Based on patch from Russell Sears <sears@cs.berkeley.edu>.

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

17 years agoUpdate linux system call lists based on 2.6.23.1 kernel source.
Tom Hughes [Tue, 8 Jan 2008 16:10:47 +0000 (16:10 +0000)] 
Update linux system call lists based on 2.6.23.1 kernel source.

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

17 years agoValid file descriptor argument to llseek system call.
Tom Hughes [Tue, 8 Jan 2008 13:54:43 +0000 (13:54 +0000)] 
Valid file descriptor argument to llseek system call.

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

17 years agoAdd drd suppression file to the default suppressions and avoid
Tom Hughes [Sat, 5 Jan 2008 00:12:45 +0000 (00:12 +0000)] 
Add drd suppression file to the default suppressions and avoid
including core headers in the drd tool.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoFix compiler warnings by using a variable to hide the null pointer
Tom Hughes [Sat, 5 Jan 2008 00:01:20 +0000 (00:01 +0000)] 
Fix compiler warnings by using a variable to hide the null pointer
from the compiler.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoAdd const qualifiers to fix compiler warnings.
Tom Hughes [Fri, 4 Jan 2008 23:58:32 +0000 (23:58 +0000)] 
Add const qualifiers to fix compiler warnings.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoAdd missing include to fix compiler warning.
Tom Hughes [Fri, 4 Jan 2008 23:57:15 +0000 (23:57 +0000)] 
Add missing include to fix compiler warning.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoFix compiler warning.
Tom Hughes [Fri, 4 Jan 2008 23:55:27 +0000 (23:55 +0000)] 
Fix compiler warning.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoRename drd_preloaded.c to drd_intercepts.c (Bart Van Assche)
Julian Seward [Fri, 4 Jan 2008 11:36:41 +0000 (11:36 +0000)] 
Rename drd_preloaded.c to drd_intercepts.c (Bart Van Assche)

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

17 years agoMark the main thread as running while the initial memory declarations
Tom Hughes [Wed, 2 Jan 2008 10:13:04 +0000 (10:13 +0000)] 
Mark the main thread as running while the initial memory declarations
are made to the tool so that the tool can associate that memory with
the main thread if it wishes.

Also cleanup existing hacks in the drd tool which worked around the
fact that the core did not set the current thread while declaring the
initial memory.

Path from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoStop drd trying to get a backtrace when there is no stack pointer.
Tom Hughes [Wed, 2 Jan 2008 10:07:44 +0000 (10:07 +0000)] 
Stop drd trying to get a backtrace when there is no stack pointer.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

17 years agoAdd const qualifiers to appropriate arguments of OSet routines.
Tom Hughes [Sun, 30 Dec 2007 12:28:26 +0000 (12:28 +0000)] 
Add const qualifiers to appropriate arguments of OSet routines.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.

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

18 years agoComment-only change.
Julian Seward [Sat, 22 Dec 2007 14:14:04 +0000 (14:14 +0000)] 
Comment-only change.

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

18 years agoAIX5 counterpart to r7302: Improve handling of programs which require
Julian Seward [Sat, 22 Dec 2007 14:12:42 +0000 (14:12 +0000)] 
AIX5 counterpart to r7302: Improve handling of programs which require
very large main thread stacks.

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

18 years agoPropagate the ucontext information with a received signal to the
Tom Hughes [Fri, 21 Dec 2007 10:24:24 +0000 (10:24 +0000)] 
Propagate the ucontext information with a received signal to the
signal frame constructors and use it (on x86 and amd64) to fill in
the trap number in the signal context information.

Needed for wine which likes to look at the trap number...

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

18 years agoAdd a new method VG_(record_depth_1_ExeContext), a trivial derivative
Julian Seward [Fri, 21 Dec 2007 01:24:59 +0000 (01:24 +0000)] 
Add a new method VG_(record_depth_1_ExeContext), a trivial derivative
of VG_(record_ExeContext), which just records the first stack frame
but does not attempt to unwind the (guest) stack.  This is useful in
situations where we suspect unwinding the stack might cause a
segfault.

Use this in m_signals, when getting a backtrace following a guest
segfault.

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

18 years agoAdd a couple of regtests for large stack frame management.
Julian Seward [Wed, 19 Dec 2007 11:01:13 +0000 (11:01 +0000)] 
Add a couple of regtests for large stack frame management.

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

18 years agoImprove handling of programs which require very large main thread
Julian Seward [Tue, 18 Dec 2007 01:49:23 +0000 (01:49 +0000)] 
Improve handling of programs which require very large main thread
stacks.  Instead of hardwiring the main thread stack to a max of 16MB
and segfaulting the app beyond that point, allow the user to specify
the main stack size using the new flag --main-stacksize=<number>.

If said flag is not present, the current default, which is "MIN(16GB,
current ulimit -s value)", is used.

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

18 years agoPrint a nice message if allocation of the stack fails, rather than just
Julian Seward [Sat, 15 Dec 2007 23:08:35 +0000 (23:08 +0000)] 
Print a nice message if allocation of the stack fails, rather than just
asserting.

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

18 years agoWhen allocating space for the client stack on Linux, take notice of
Julian Seward [Sat, 15 Dec 2007 22:13:05 +0000 (22:13 +0000)] 
When allocating space for the client stack on Linux, take notice of
the --max-stackframe value.  This makes it possible to run programs
with very large (primary) stack requirements simply by specifying
--max-stackframe.

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

18 years agoFix stupid error spotted by by Konstantin Serebryany.
Julian Seward [Wed, 12 Dec 2007 11:42:33 +0000 (11:42 +0000)] 
Fix stupid error spotted by by Konstantin Serebryany.

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

18 years agoUpdate ignores.
Robert Walsh [Wed, 12 Dec 2007 03:16:52 +0000 (03:16 +0000)] 
Update ignores.

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

18 years agoBop version.
Julian Seward [Tue, 11 Dec 2007 00:50:54 +0000 (00:50 +0000)] 
Bop version.

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

18 years agoUpdate notes on repo-mangling.
Julian Seward [Tue, 11 Dec 2007 00:49:33 +0000 (00:49 +0000)] 
Update notes on repo-mangling.

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

18 years agoDuh. Sigh. etc.
Julian Seward [Mon, 10 Dec 2007 22:21:14 +0000 (22:21 +0000)] 
Duh.  Sigh.  etc.

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

18 years agoFinalise 3.3.0.
Julian Seward [Mon, 10 Dec 2007 22:17:42 +0000 (22:17 +0000)] 
Finalise 3.3.0.

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

18 years agoThird time lucky, perhaps.
Julian Seward [Sun, 9 Dec 2007 02:25:44 +0000 (02:25 +0000)] 
Third time lucky, perhaps.

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

18 years agoFinalise distro docs for 3.3.0.
Julian Seward [Sun, 9 Dec 2007 02:24:02 +0000 (02:24 +0000)] 
Finalise distro docs for 3.3.0.

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

18 years agoAnother supp.
Julian Seward [Sun, 9 Dec 2007 02:22:55 +0000 (02:22 +0000)] 
Another supp.

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

18 years agoAdd missing file to tarball.
Julian Seward [Sun, 9 Dec 2007 02:21:22 +0000 (02:21 +0000)] 
Add missing file to tarball.

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

18 years agoDon't do comparisons of (signed) Words by merely subtracting them, as
Julian Seward [Sun, 9 Dec 2007 02:14:35 +0000 (02:14 +0000)] 
Don't do comparisons of (signed) Words by merely subtracting them, as
this does not always produce correct results.  Instead use a slower
but correct method.  Analogous fix to that applied to m_oset.c by
r7283.

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

18 years agoDon't do comparisons of (signed) Words by merely subtracting them, as
Julian Seward [Sun, 9 Dec 2007 02:08:42 +0000 (02:08 +0000)] 
Don't do comparisons of (signed) Words by merely subtracting them, as
this does not always produce correct results.  Instead use a slower
but correct method.  Fixes #147545.  (Nick Nethercote, Tom Hughes et
al)

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

18 years ago--> 3.3.0.RC2.
Julian Seward [Thu, 6 Dec 2007 02:15:16 +0000 (02:15 +0000)] 
--> 3.3.0.RC2.

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

18 years agoUpdate.
Julian Seward [Thu, 6 Dec 2007 02:13:37 +0000 (02:13 +0000)] 
Update.

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

18 years agoAnother supp.
Julian Seward [Thu, 6 Dec 2007 01:58:05 +0000 (01:58 +0000)] 
Another supp.

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

18 years agoDocument flakiness of NON_SIMD_CALL* in comments and the manual.
Nicholas Nethercote [Wed, 5 Dec 2007 21:51:50 +0000 (21:51 +0000)] 
Document flakiness of NON_SIMD_CALL* in comments and the manual.

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