]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoCorrected a few comments.
Bart Van Assche [Thu, 12 Mar 2009 18:38:26 +0000 (18:38 +0000)] 
Corrected a few comments.

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

16 years agoRemoved DRD_() wrapper from static variables. Corrected datatypes of DRD_(sg_new)().
Bart Van Assche [Thu, 12 Mar 2009 18:38:00 +0000 (18:38 +0000)] 
Removed DRD_() wrapper from static variables. Corrected datatypes of DRD_(sg_new)().

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

16 years agoCleanup.
Bart Van Assche [Thu, 12 Mar 2009 18:35:44 +0000 (18:35 +0000)] 
Cleanup.

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

16 years agoRemoved obsolete function declaration.
Bart Van Assche [Thu, 12 Mar 2009 17:47:23 +0000 (17:47 +0000)] 
Removed obsolete function declaration.

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

16 years agoForce thread scheduling order.
Bart Van Assche [Thu, 12 Mar 2009 17:28:44 +0000 (17:28 +0000)] 
Force thread scheduling order.

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

16 years agoRemove Helgrind .exp files which are out-of-date, because Helgrind's output
Nicholas Nethercote [Thu, 12 Mar 2009 05:58:05 +0000 (05:58 +0000)] 
Remove Helgrind .exp files which are out-of-date, because Helgrind's output
has changed since they were generated.  Also remove one
(tc23_bogus_condwait.stderr.exp-glibc25-x86) that was a duplicate.

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

16 years agoAnother filter_xml update.
Nicholas Nethercote [Thu, 12 Mar 2009 05:50:51 +0000 (05:50 +0000)] 
Another filter_xml update.

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

16 years agoFix a .exp file.
Nicholas Nethercote [Thu, 12 Mar 2009 05:20:46 +0000 (05:20 +0000)] 
Fix a .exp file.

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

16 years ago- Removed leakotron. It was not a very useful test, and hard to make
Nicholas Nethercote [Thu, 12 Mar 2009 03:00:05 +0000 (03:00 +0000)] 
- Removed leakotron.  It was not a very useful test, and hard to make
  portable.
- Rewrote leak-tree to be deterministic and clearer.

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

16 years agoA couple more VG_DMSG conversions.
Nicholas Nethercote [Thu, 12 Mar 2009 00:07:35 +0000 (00:07 +0000)] 
A couple more VG_DMSG conversions.

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

16 years agoAdded some shortcuts for VG_(message)(), and used them in a few places (but
Nicholas Nethercote [Thu, 12 Mar 2009 00:06:45 +0000 (00:06 +0000)] 
Added some shortcuts for VG_(message)(), and used them in a few places (but
certainly not all).

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

16 years agoForce the order in which threads run.
Bart Van Assche [Wed, 11 Mar 2009 19:13:34 +0000 (19:13 +0000)] 
Force the order in which threads run.

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

16 years agoAdded a comment that explains the purpose of the test program.
Bart Van Assche [Wed, 11 Mar 2009 19:12:06 +0000 (19:12 +0000)] 
Added a comment that explains the purpose of the test program.

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

16 years agoRemoved cross-tool dependency on helgrind/helgrind.h.
Bart Van Assche [Wed, 11 Mar 2009 18:51:22 +0000 (18:51 +0000)] 
Removed cross-tool dependency on helgrind/helgrind.h.

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

16 years agoUn-break 'make dist'.
Bart Van Assche [Wed, 11 Mar 2009 18:30:59 +0000 (18:30 +0000)] 
Un-break 'make dist'.

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

16 years agoReduced two expected output files to one for the test called atomic_var.
Bart Van Assche [Wed, 11 Mar 2009 18:29:00 +0000 (18:29 +0000)] 
Reduced two expected output files to one for the test called atomic_var.

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

16 years agoReverted to r8771. Please ignore the commit message of r9325.
Bart Van Assche [Wed, 11 Mar 2009 11:09:35 +0000 (11:09 +0000)] 
Reverted to r8771. Please ignore the commit message of r9325.

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

16 years agoAnother regtest fix for machines with debug info installed for libc.
Nicholas Nethercote [Wed, 11 Mar 2009 06:12:59 +0000 (06:12 +0000)] 
Another regtest fix for machines with debug info installed for libc.

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

16 years agoTest fixes for systems that have debug info installed for libc and
Nicholas Nethercote [Tue, 10 Mar 2009 23:39:12 +0000 (23:39 +0000)] 
Test fixes for systems that have debug info installed for libc and
libpthread.

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

16 years agoMake the leak-cases tests more robust.
Nicholas Nethercote [Tue, 10 Mar 2009 23:08:02 +0000 (23:08 +0000)] 
Make the leak-cases tests more robust.

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

16 years agoTweaks to the 'nightly' script and docs.
Nicholas Nethercote [Tue, 10 Mar 2009 22:33:29 +0000 (22:33 +0000)] 
Tweaks to the 'nightly' script and docs.

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

16 years agoFix an expected output for the recent large leak-checker rewrite.
Nicholas Nethercote [Tue, 10 Mar 2009 22:30:44 +0000 (22:30 +0000)] 
Fix an expected output for the recent large leak-checker rewrite.

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

16 years agoUpdated copyright years.
Nicholas Nethercote [Tue, 10 Mar 2009 22:02:09 +0000 (22:02 +0000)] 
Updated copyright years.

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

16 years agoTweak the Memcheck manual, fixing bug #157154 in the process.
Nicholas Nethercote [Tue, 10 Mar 2009 21:40:46 +0000 (21:40 +0000)] 
Tweak the Memcheck manual, fixing bug #157154 in the process.

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

16 years agoAdded support for the VG_USERREQ__HG_CLEAN_MEMORY client request.
Bart Van Assche [Tue, 10 Mar 2009 09:26:07 +0000 (09:26 +0000)] 
Added support for the VG_USERREQ__HG_CLEAN_MEMORY client request.

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

16 years agoAdded DRD_(clean_memory)().
Bart Van Assche [Tue, 10 Mar 2009 09:25:32 +0000 (09:25 +0000)] 
Added DRD_(clean_memory)().

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

16 years agoAdded DRD_(thread_address_on_any_stack)().
Bart Van Assche [Tue, 10 Mar 2009 09:22:13 +0000 (09:22 +0000)] 
Added DRD_(thread_address_on_any_stack)().

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

16 years agoMade sure that the tc19_shadowmem and tc24_nonzero_sem tests do something meaningful...
Bart Van Assche [Tue, 10 Mar 2009 09:21:32 +0000 (09:21 +0000)] 
Made sure that the tc19_shadowmem and tc24_nonzero_sem tests do something meaningful. Thanks to Nicholas for reporting this.

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

16 years agoAdded script filter_stderr_and_thread_no.
Bart Van Assche [Tue, 10 Mar 2009 09:19:26 +0000 (09:19 +0000)] 
Added script filter_stderr_and_thread_no.

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

16 years agoChange 'nightly' to print "(unchanged)" at the start of the email subject
Nicholas Nethercote [Tue, 10 Mar 2009 03:38:05 +0000 (03:38 +0000)] 
Change 'nightly' to print "(unchanged)" at the start of the email subject
line if the results are unchanged from 24 hours ago.  Makes it easier to see
(or filter) if results are unchanged.

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

16 years agoSome tweaks to make more tests pass, or get closer to passing, on
Nicholas Nethercote [Tue, 10 Mar 2009 03:34:00 +0000 (03:34 +0000)] 
Some tweaks to make more tests pass, or get closer to passing, on
--enable-only32bit builds on my Ubuntu box:

- For all tests, replace all operator new/new[]/delete/delete[] variants
  with a common form, eg. "...operator new...".  This makes
  exp-ptrcheck/tests/ccc and memcheck/tests/mismatches pass.

- For Helgrind tests, replace all libpthread paths with "/...libpthread...",
  as is done for libc paths.  This avoids problems when /lib32/libpthread.so
  is the path.  No extra tests pass, but many of them get a lot closer to
  passing.

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

16 years agoThis commit completely overhauls the leak checker. In particular:
Nicholas Nethercote [Mon, 9 Mar 2009 22:52:24 +0000 (22:52 +0000)] 
This commit completely overhauls the leak checker.  In particular:

- It heavily refactors the code:  uses better names for things, splits up
  complex functions that behaved very differently depending on how they were
  called, removes some redundancies, and generally makes it much simpler and
  easier to follow.

- It adds lots of comments, both inline, and also a big explanatory one at
  the top which makes it clear exactly how the leak checker works and also
  exactly what is meant by definite, possible, and indirect leaks.  It also
  has some ideas for future improvements.

- All tabs have been converted to spaces.

It also improves the functionality:

- Previously if you did --leak-check=summary, indirect and suppressed
  blocks were counted as definite leaks.  Now they are done properly, and so
  the summary results from --leak-check=summary match those from
  --leak-check=yes.

- Previously, some possibly reachable blocks were miscategorised as
  definitely reachable, because only the pointer to the block itself was
  considered, not any preceding pointers in the chain.  This is now fixed.

- Added memcheck/tests/leak-cases, which fully tests all the possible
  combinations of directly/indirectly reachable and possibly/definitely
  reachable.

And it improves the manual quite a bit, and the FAQ a little bit.

This doesn't fix the leak checker to handle MALLOCLIKE_BLOCK works that have
been taken from within malloc'd blocks, but I think I know how to do it and
hope to do so in a subsequent commit.

It also changes all instances of "<constant>memcheck</constant>" in the
Memcheck manual to "Memcheck", for consistency and because "Memcheck" is
easier to write.  There's one similar case for DRD but I didn't change that.

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

16 years agoKeep track of the svma and bias values for the debug data separately
Tom Hughes [Mon, 9 Mar 2009 09:19:03 +0000 (09:19 +0000)] 
Keep track of the svma and bias values for the debug data separately
as they may be different to those for other sections of the ELF file
if we have separated debug information and the main file has been
prelinked since they were split. Fixes bug #185816.

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

16 years agoReverted last commit (r9326) -- its commit message did not make sense.
Bart Van Assche [Sun, 8 Mar 2009 19:18:21 +0000 (19:18 +0000)] 
Reverted last commit (r9326) -- its commit message did not make sense.

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

16 years agoAdded vgopts: --var-info=yes.
Bart Van Assche [Sun, 8 Mar 2009 19:03:24 +0000 (19:03 +0000)] 
Added vgopts: --var-info=yes.

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

16 years agoFixed another unintended data race.
Bart Van Assche [Sun, 8 Mar 2009 19:02:59 +0000 (19:02 +0000)] 
Fixed another unintended data race.

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

16 years agoFixed an unintended data race in the bar_trivial test program.
Bart Van Assche [Sun, 8 Mar 2009 18:58:06 +0000 (18:58 +0000)] 
Fixed an unintended data race in the bar_trivial test program.

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

16 years agoRemove .exp64 files that are identical to their corresponding .exp files and
Nicholas Nethercote [Fri, 6 Mar 2009 02:58:12 +0000 (02:58 +0000)] 
Remove .exp64 files that are identical to their corresponding .exp files and
thus unnecessary.

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

16 years ago- Added more comments.
Bart Van Assche [Wed, 4 Mar 2009 19:26:47 +0000 (19:26 +0000)] 
- Added more comments.
- Removed DRD_() wrapper from around local functions and variables.
- Removed some obsolete code.

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

16 years agoRoll back accidental change that shouldn't have been in r9316.
Nicholas Nethercote [Wed, 4 Mar 2009 04:28:34 +0000 (04:28 +0000)] 
Roll back accidental change that shouldn't have been in r9316.

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

16 years agoThis should have been added to the last commit.
Nicholas Nethercote [Wed, 4 Mar 2009 04:18:33 +0000 (04:18 +0000)] 
This should have been added to the last commit.

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

16 years agotests/arch_test is currently being used for two purposes:
Nicholas Nethercote [Wed, 4 Mar 2009 04:15:16 +0000 (04:15 +0000)] 
tests/arch_test is currently being used for two purposes:
- by vg_regtest for determining if a directory name matches an architecture;
- by various .vgtest files for detecting x86/AMD64 features.

This commit splits it in two for the two different purposes, which makes
things clearer.

Specific changes

- Moved the x86/AMD64 feature detection stuff out of arch_test.c, and
  into the new x86_amd64_feature.c.  Updated the relevant .vgtest files for
  the change.

- In vg_regtest, now a prereq command must return 0 (prereq satisfied) or 1
  (prereq not satisfied).  Anything else makes vg_regtest abort.  This
  makes obvious any problems with prereq tests rather than just making the
  tests skip innocuously.  (We previously had exactly such a problem on the
  DARWIN branch;  the x86 feature detection tests caused segfaults so the
  tests were incorrectly skipped.  This change will catch any similar future
  problem.)

- Changed os_test from a script to a C program, matching cpu_test.

- Removed some unintentional darwin stuff from platform_test.

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

16 years agoRemove darwin code that crept into the trunk.
Nicholas Nethercote [Wed, 4 Mar 2009 01:23:04 +0000 (01:23 +0000)] 
Remove darwin code that crept into the trunk.

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

16 years agoUse "status" as the argname for 'exit' and 'exit_group'.
Nicholas Nethercote [Tue, 3 Mar 2009 05:39:23 +0000 (05:39 +0000)] 
Use "status" as the argname for 'exit' and 'exit_group'.

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

16 years agoMerge r9299..r9303 (various leak-check test fixes) from the DARWIN branch.
Nicholas Nethercote [Mon, 2 Mar 2009 05:11:06 +0000 (05:11 +0000)] 
Merge r9299..r9303 (various leak-check test fixes) from the DARWIN branch.

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

16 years agoGet rid of the second argument ("PtrdiffT debug_offset") to
Julian Seward [Sat, 28 Feb 2009 21:23:11 +0000 (21:23 +0000)] 
Get rid of the second argument ("PtrdiffT debug_offset") to
ML_(read_debuginfo_stabs) since it's always equal to di->text_bias.

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

16 years agoRemove dead code relating to interface versions.
Nicholas Nethercote [Fri, 27 Feb 2009 03:38:28 +0000 (03:38 +0000)] 
Remove dead code relating to interface versions.

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

16 years agoMerged r9287 (vgprintf fix) from the DARWIN branch.
Nicholas Nethercote [Fri, 27 Feb 2009 03:23:42 +0000 (03:23 +0000)] 
Merged r9287 (vgprintf fix) from the DARWIN branch.

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

16 years agoMerge r9285 (match-overrun fixes) from the DARWIN branch.
Nicholas Nethercote [Thu, 26 Feb 2009 22:38:42 +0000 (22:38 +0000)] 
Merge r9285 (match-overrun fixes) from the DARWIN branch.

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

16 years agoMerge r9283 (lackey testing fixes) from the DARWIN branch.
Nicholas Nethercote [Thu, 26 Feb 2009 22:26:45 +0000 (22:26 +0000)] 
Merge r9283 (lackey testing fixes) from the DARWIN branch.

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

16 years agoMake this pass on AIX (untested).
Nicholas Nethercote [Thu, 26 Feb 2009 22:09:53 +0000 (22:09 +0000)] 
Make this pass on AIX (untested).

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

16 years agoClean up the diff -u test a little.
Nicholas Nethercote [Thu, 26 Feb 2009 21:25:50 +0000 (21:25 +0000)] 
Clean up the diff -u test a little.

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

16 years agoMake the VKI_PAGE_SIZE conditional match that in m_vki.c.
Nicholas Nethercote [Thu, 26 Feb 2009 21:17:39 +0000 (21:17 +0000)] 
Make the VKI_PAGE_SIZE conditional match that in m_vki.c.

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

16 years agoPorted this test to ppc.
Bart Van Assche [Thu, 26 Feb 2009 17:50:14 +0000 (17:50 +0000)] 
Ported this test to ppc.

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

16 years agoBuilds again on powerpc.
Bart Van Assche [Thu, 26 Feb 2009 13:21:50 +0000 (13:21 +0000)] 
Builds again on powerpc.

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

16 years agorename a function
Nicholas Nethercote [Thu, 26 Feb 2009 04:02:03 +0000 (04:02 +0000)] 
rename a function

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

16 years agoAvoid a warning.
Nicholas Nethercote [Thu, 26 Feb 2009 03:56:48 +0000 (03:56 +0000)] 
Avoid a warning.

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

16 years agoAdd more testing to memcheck/tests/unit_libcbase.c.
Nicholas Nethercote [Thu, 26 Feb 2009 03:52:35 +0000 (03:52 +0000)] 
Add more testing to memcheck/tests/unit_libcbase.c.

Remove VG_(strcmp_ws) and VG_(strncmp_ws);  they're no longer needed by CLO
handling, and they're not much use elsewhere.

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

16 years agoRemove WERROR. It's not much use because getting Valgrind to build without
Nicholas Nethercote [Wed, 25 Feb 2009 23:19:46 +0000 (23:19 +0000)] 
Remove WERROR.  It's not much use because getting Valgrind to build without
errors on all platforms is very difficult.

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

16 years agoGeneralise a couple of Qt4 suppressions (David Faure).
Julian Seward [Wed, 25 Feb 2009 21:28:38 +0000 (21:28 +0000)] 
Generalise a couple of Qt4 suppressions (David Faure).

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

16 years agoUse 'diff -u' for regtests if it's supported, its output it much easier to
Nicholas Nethercote [Wed, 25 Feb 2009 04:57:56 +0000 (04:57 +0000)] 
Use 'diff -u' for regtests if it's supported, its output it much easier to
read than plain 'diff'.

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

16 years agoRemove toobig-allocs.c -- it was unreliable and didn't test any
Nicholas Nethercote [Wed, 25 Feb 2009 04:34:44 +0000 (04:34 +0000)] 
Remove toobig-allocs.c -- it was unreliable and didn't test any
functionality of note.

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

16 years agoMove memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
Nicholas Nethercote [Wed, 25 Feb 2009 04:20:54 +0000 (04:20 +0000)] 
Move memcheck/tests/x86/bug133694 into memcheck/tests/x86-linux -- it uses
MAP_FIXED and so is highly unportable, and doesn't work on x86/Darwin.

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

16 years agoDelete memcheck/tests/zeropage. The original purpose of the test is no
Nicholas Nethercote [Wed, 25 Feb 2009 04:04:29 +0000 (04:04 +0000)] 
Delete memcheck/tests/zeropage.  The original purpose of the test is no
longer valid, as the comment indicates.  Furthermore it mmaps arbitrary bits
of address space and so is horribly unportable, and doesn't work on Darwin.

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

16 years agoatoll() is a terrible function -- you can't do any error checking with it.
Nicholas Nethercote [Wed, 25 Feb 2009 01:01:05 +0000 (01:01 +0000)] 
atoll() is a terrible function -- you can't do any error checking with it.
Some of our option processing code uses it.  This means that eg.
'--log-fd=9xxx' logs to fd 9, and '--log-fd=blahblahblah' logs to 0 (because
atoll() returns 0 if the string doesn't contain a number!)

It turns out that most of our option processing uses VG_(strtoll*) instead
of VG_(atoll).  The reason that not all of it does is that the
option-processing macros are underpowered -- they currently work well if you
just want to assign the value to a variable, eg:

        VG_BOOL_CLO(arg, "--heap",   clo_heap)
   else VG_BOOL_CLO(arg, "--stacks", clo_stacks)

   else VG_NUM_CLO(arg, "--heap-admin", clo_heap_admin)
   else VG_NUM_CLO(arg, "--depth",      clo_depth)

(This works because they are actually an if-statement, but it looks odd.)

VG_NUM_CLO uses VG_(stroll10).  But if you want to do any checking or
processing, you can't use those macros, leading to code like this:

      else if (VG_CLO_STREQN(9,  arg, "--log-fd=")) {
         log_to            = VgLogTo_Fd;
         VG_(clo_log_name) = NULL;
         tmp_log_fd        = (Int)VG_(atoll)(&arg[9]);
      }

So this commit:
- Improves the *_CLO_* macros so that they can be used in all circumstances.
  They're now just expressions (albeit ones with side-effects, setting the
  named variable appropriately).  Thus they can be used as if-conditions,
  and any post-checking or processing can occur in the then-statement.  And
  malformed numeric arguments (eg. --log-fd=foo) aren't accepted.  This also
  means you don't have to specify the lengths of any option strings anywhere
  (eg.  the 9 in the --log-fd example above).  The use of a wrong number
  caused at least one bug, in Massif.
- Updates all places where the macros were used.
- Updates Helgrind to use the *_CLO_* macros (it didn't use them).
- Updates Callgrind to use the *_CLO_* macros (it didn't use them), except
  for the more esoteric option names (those with numbers in the option
  name).  This allowed getUInt() and getUWord() to be removed.
- Improves the cache option parsing in Cachegrind and Callgrind -- now uses
  VG_(strtoll10)(), detects overflow, and is shorter.
- Uses INT instead of NUM in the macro names, to distinguish better vs. the
  DBL macro.
- Removes VG_(atoll*) and the few remaining uses -- they're wretched
  functions and VG_(strtoll*) should be used instead.
- Adds the VG_STREQN macro.
- Changes VG_BINT_CLO and VG_BHEX_CLO to abort if the given value is outside
  the range -- the current silent truncation is likely to cause confusion as
  much as anything.

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

16 years agoCallgrind: fix a few 'unused parameter' warnings
Josef Weidendorfer [Tue, 24 Feb 2009 12:26:53 +0000 (12:26 +0000)] 
Callgrind: fix a few 'unused parameter' warnings

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

16 years agoRemove a number of unused parameters, found with -Wunused-parameter.
Nicholas Nethercote [Tue, 24 Feb 2009 03:07:37 +0000 (03:07 +0000)] 
Remove a number of unused parameters, found with -Wunused-parameter.

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

16 years agoMinor performance optimization: reduced the number of client objects that are inspect...
Bart Van Assche [Mon, 23 Feb 2009 19:15:32 +0000 (19:15 +0000)] 
Minor performance optimization: reduced the number of client objects that are inspected during memory deallocation.

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

16 years agoDeclared those function arguments that are not modified as const.
Bart Van Assche [Mon, 23 Feb 2009 19:12:02 +0000 (19:12 +0000)] 
Declared those function arguments that are not modified as const.

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

16 years ago- handle a couple more syscalls, sys_fallocate and sys_getresuid32
Julian Seward [Mon, 23 Feb 2009 16:56:15 +0000 (16:56 +0000)] 
- handle a couple more syscalls, sys_fallocate and sys_getresuid32
- make suppressions for ld.so be a bit more aggressive

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

16 years agoUpdated expected output files.
Bart Van Assche [Mon, 23 Feb 2009 08:46:42 +0000 (08:46 +0000)] 
Updated expected output files.

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

16 years agoAnother 'make check' warning fix.
Nicholas Nethercote [Mon, 23 Feb 2009 07:28:54 +0000 (07:28 +0000)] 
Another 'make check' warning fix.

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

16 years agoMore 'make check' warning fixes.
Nicholas Nethercote [Mon, 23 Feb 2009 07:26:15 +0000 (07:26 +0000)] 
More 'make check' warning fixes.

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

16 years agoFix some more 'make check' warnings, ones that appear on non-Linux
Nicholas Nethercote [Mon, 23 Feb 2009 07:17:08 +0000 (07:17 +0000)] 
Fix some more 'make check' warnings, ones that appear on non-Linux
platforms.

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

16 years agoGet rid of all "make check" compile warnings, except for the ones from
Nicholas Nethercote [Mon, 23 Feb 2009 06:44:51 +0000 (06:44 +0000)] 
Get rid of all "make check" compile warnings, except for the ones from
fxtract.c.

Also, gets rid of some of the warnings that -Wextra finds in Massif.

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

16 years agoMerged part of r9234 (unit_libcbase improvements) from the DARWIN branch.
Nicholas Nethercote [Mon, 23 Feb 2009 04:16:56 +0000 (04:16 +0000)] 
Merged part of r9234 (unit_libcbase improvements) from the DARWIN branch.

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

16 years agoAdd missing __extension__ markings on a couple of clreqs.
Nicholas Nethercote [Mon, 23 Feb 2009 02:08:24 +0000 (02:08 +0000)] 
Add missing __extension__ markings on a couple of clreqs.

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

16 years agoA few more test/build changes.
Nicholas Nethercote [Mon, 23 Feb 2009 01:33:40 +0000 (01:33 +0000)] 
A few more test/build changes.

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

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