]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
17 years agoComment-only change.
Nicholas Nethercote [Mon, 3 Dec 2007 21:29:22 +0000 (21:29 +0000)] 
Comment-only change.

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

17 years agoFinalise 3.3.0.RC1.
Julian Seward [Sun, 2 Dec 2007 22:15:31 +0000 (22:15 +0000)] 
Finalise 3.3.0.RC1.

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

17 years agoBack out r7210 ("Fix completely bogus implementation of
Julian Seward [Sun, 2 Dec 2007 22:03:43 +0000 (22:03 +0000)] 
Back out r7210 ("Fix completely bogus implementation of
VG_(seginfo_sect_kind).") as it breaks DRD and possible Callgrind.

The segment kind identification code is basically broken for non-text
segments, but requires fixing at a higher level than this.  See
discussion on valgrind-developers, 20 March 07, "Bug in
VG_(seginfo_sect_kind) ?"

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

17 years agoSet version to 3.3.0-RC1.
Julian Seward [Sun, 2 Dec 2007 13:37:18 +0000 (13:37 +0000)] 
Set version to 3.3.0-RC1.

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

17 years agoUpdate release docs.
Julian Seward [Sun, 2 Dec 2007 02:08:17 +0000 (02:08 +0000)] 
Update release docs.

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

17 years agoFutz with headers.
Julian Seward [Sun, 2 Dec 2007 02:06:46 +0000 (02:06 +0000)] 
Futz with headers.

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

17 years agoWibble.
Julian Seward [Sun, 2 Dec 2007 02:05:23 +0000 (02:05 +0000)] 
Wibble.

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

17 years ago* document gcc code generation shenanigans on ppc32-linux
Julian Seward [Sun, 2 Dec 2007 02:01:09 +0000 (02:01 +0000)] 
* document gcc code generation shenanigans on ppc32-linux
* add docs for --malloc-fill and --free-fill

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

17 years agoOnly pass valid ThreadIDs to VG_(record_ExeContext). (Bart Van Assche)
Julian Seward [Sat, 1 Dec 2007 02:09:50 +0000 (02:09 +0000)] 
Only pass valid ThreadIDs to VG_(record_ExeContext).  (Bart Van Assche)

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

17 years agoUpdate contact details.
Julian Seward [Fri, 30 Nov 2007 21:52:27 +0000 (21:52 +0000)] 
Update contact details.

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

17 years agoNew options for Memcheck, --malloc-fill=<hexnumber> and
Julian Seward [Fri, 30 Nov 2007 21:41:40 +0000 (21:41 +0000)] 
New options for Memcheck, --malloc-fill=<hexnumber> and
--fill-free=<hexnumber>, which cause malloc'd(etc) and free'd(etc)
blocks to be filled with the specified value.  This can apparently be
useful for shaking out hard-to-track-down memory corruption.  The
definedness/addressability of said areas is not affected -- only the
contents.  Documentation to follow.

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

17 years agoMarginally enhance help message.
Julian Seward [Fri, 30 Nov 2007 21:24:05 +0000 (21:24 +0000)] 
Marginally enhance help message.

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

17 years agoGet rid of VG_NUMW_CLO, as it is pretty much identical to VG_NUM_CLO,
Julian Seward [Fri, 30 Nov 2007 17:50:44 +0000 (17:50 +0000)] 
Get rid of VG_NUMW_CLO, as it is pretty much identical to VG_NUM_CLO,
and only used in one place.

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

17 years agoMake the freed-block-queue volume metrics 64-bit throughout, to avoid
Julian Seward [Fri, 30 Nov 2007 17:19:36 +0000 (17:19 +0000)] 
Make the freed-block-queue volume metrics 64-bit throughout, to avoid
any wierdness on very large machines in the future.  Also, double the
default size from 5MB to 10MB, on the basis that programs are now on
average twice as lardy as they were when it was set to 5MB, whenever
that was.

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

17 years agoInclude headers in tarball.
Julian Seward [Fri, 30 Nov 2007 15:28:13 +0000 (15:28 +0000)] 
Include headers in tarball.

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

17 years agoAdd a test case for semaphores with nonzero initial values.
Julian Seward [Fri, 30 Nov 2007 11:22:35 +0000 (11:22 +0000)] 
Add a test case for semaphores with nonzero initial values.

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

17 years agoCorrectly handle semaphores with nonzero initial values. Fixes bug
Julian Seward [Fri, 30 Nov 2007 11:11:02 +0000 (11:11 +0000)] 
Correctly handle semaphores with nonzero initial values.  Fixes bug
observed by Matthieu Castet.  Also, add another sanity-check flag.

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

17 years agoRemove pthread_object_size.h and associated hardwired constants.
Julian Seward [Fri, 30 Nov 2007 08:30:29 +0000 (08:30 +0000)] 
Remove pthread_object_size.h and associated hardwired constants.
(Bart Van Assche)

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

17 years agoSo much for C's "type system" (ha ha). Correct version of r7250.
Julian Seward [Thu, 29 Nov 2007 13:04:03 +0000 (13:04 +0000)] 
So much for C's "type system" (ha ha).  Correct version of r7250.

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

17 years agoDon't assert when destroying a locked rwlock.
Julian Seward [Thu, 29 Nov 2007 12:53:25 +0000 (12:53 +0000)] 
Don't assert when destroying a locked rwlock.

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

17 years agoChanges to make Memcheck work sanely on recent incarnations of AIX 5.3:
Julian Seward [Thu, 29 Nov 2007 03:08:32 +0000 (03:08 +0000)] 
Changes to make Memcheck work sanely on recent incarnations of AIX 5.3:

* add a few more syscall wrappers, and fix a couple of buggy ones

* intercept strcmp et al in a few more libraries

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

17 years agoDon't be confused by archive (.a) files which contain both a 32-bit
Julian Seward [Thu, 29 Nov 2007 03:06:25 +0000 (03:06 +0000)] 
Don't be confused by archive (.a) files which contain both a 32-bit
and a 64-bit version of the same object (with the same name).  Prior
to this, it would sometimes attempt to read debug info from the wrong
version of the object, complain that the magic number wasn't right,
and so end up reading nothing at all for that object.

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

17 years ago- Remove extraneous 'o' (will be stored in svn server for possible
Julian Seward [Wed, 28 Nov 2007 01:55:29 +0000 (01:55 +0000)] 
- Remove extraneous 'o' (will be stored in svn server for possible
  future use)

- Fix tag

- Fix long line which wraps around in html output

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

17 years agoDump extraneous code.
Julian Seward [Wed, 28 Nov 2007 01:50:55 +0000 (01:50 +0000)] 
Dump extraneous code.

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

17 years agoMake it compile on AIX, even if the result doesn't do anything useful.
Julian Seward [Wed, 28 Nov 2007 01:27:03 +0000 (01:27 +0000)] 
Make it compile on AIX, even if the result doesn't do anything useful.

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

17 years agoFix compilation on older Linux distros (Bart Van Assche)
Julian Seward [Tue, 27 Nov 2007 23:39:13 +0000 (23:39 +0000)] 
Fix compilation on older Linux distros (Bart Van Assche)

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

17 years agoClarify peak-taking details.
Nicholas Nethercote [Tue, 27 Nov 2007 21:38:14 +0000 (21:38 +0000)] 
Clarify peak-taking details.

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

17 years agoMassif doc fixes, mostly from Julian.
Nicholas Nethercote [Tue, 27 Nov 2007 21:29:33 +0000 (21:29 +0000)] 
Massif doc fixes, mostly from Julian.

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

17 years agoMake Memcheck work sanely on AIX5.3 (again):
Julian Seward [Tue, 27 Nov 2007 11:42:47 +0000 (11:42 +0000)] 
Make Memcheck work sanely on AIX5.3 (again):

* Don't intercept putenv/getenv/setenv.  Causes a lot of whinging
  about missing TOC pointers.

* Add 'strcmp' to the bundle of 4 functions intercepted in all
  objects.

* xlc now seems to route calls through to malloc_common, free_common,
  calloc_common, realloc_common, memalign_common in libc.  Intercept
  those names too.

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

17 years agoDon't break the build on AIX5.3.
Julian Seward [Tue, 27 Nov 2007 11:23:55 +0000 (11:23 +0000)] 
Don't break the build on AIX5.3.

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

17 years agoMinor updates.
Nicholas Nethercote [Tue, 27 Nov 2007 02:03:44 +0000 (02:03 +0000)] 
Minor updates.

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

17 years agoTranslate the drd regtests from C++ to C. (Bart Van Assche).
Julian Seward [Tue, 27 Nov 2007 01:59:38 +0000 (01:59 +0000)] 
Translate the drd regtests from C++ to C.  (Bart Van Assche).

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

17 years agoTweaked the tool-writing docs.
Nicholas Nethercote [Tue, 27 Nov 2007 01:59:02 +0000 (01:59 +0000)] 
Tweaked the tool-writing docs.

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

17 years agoAdd Massif bugs fixed by the rewrite. I added them to the top part of the
Nicholas Nethercote [Tue, 27 Nov 2007 01:34:06 +0000 (01:34 +0000)] 
Add Massif bugs fixed by the rewrite.  I added them to the top part of the
file, not the "after 3.2.3" section, I hope this is the right place for
them.

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

17 years agocallgrind: support for --callgrind-out-file
Josef Weidendorfer [Tue, 27 Nov 2007 01:27:12 +0000 (01:27 +0000)] 
callgrind: support for --callgrind-out-file

This removes the --base option, which is replaced by
--callgrind-out-file.
Plus manual update.

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

17 years agoThis should have gone in with r7233.
Nicholas Nethercote [Tue, 27 Nov 2007 00:59:17 +0000 (00:59 +0000)] 
This should have gone in with r7233.

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

17 years agoUpdate test output for a recent graph-drawing change. Update some notes.
Nicholas Nethercote [Tue, 27 Nov 2007 00:53:56 +0000 (00:53 +0000)] 
Update test output for a recent graph-drawing change. Update some notes.

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

17 years agoAIX 5.3 build fixes.
Julian Seward [Mon, 26 Nov 2007 22:43:03 +0000 (22:43 +0000)] 
AIX 5.3 build fixes.

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

17 years agoMinor tweak to drawing of peak and detailed snapshot bars on the graph.
Nicholas Nethercote [Mon, 26 Nov 2007 22:27:02 +0000 (22:27 +0000)] 
Minor tweak to drawing of peak and detailed snapshot bars on the graph.

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

17 years agoMinor tweak to x-axis positioning of bars.
Nicholas Nethercote [Mon, 26 Nov 2007 22:17:19 +0000 (22:17 +0000)] 
Minor tweak to x-axis positioning of bars.

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

17 years ago- Rewrote documentation.
Nicholas Nethercote [Mon, 26 Nov 2007 21:59:04 +0000 (21:59 +0000)] 
- Rewrote documentation.
- Added a new time unit, instructions executed, and made it the default -- it's
  much more reproducible and consistent than milliseconds.  Requires IRSB
  instrumentation and so slows down some programs (malloc-light ones such as
  bzip2) by about 20%, others by less.
- ms_print now doesn't overwrite the x-axis in the graphs.
- Added a test for --detailed-freq and --max-snapshots

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

17 years agodrd: make the build silent regardless of platform, and abort at
Julian Seward [Mon, 26 Nov 2007 21:34:30 +0000 (21:34 +0000)] 
drd: make the build silent regardless of platform, and abort at
     startup with a message if a not supported platform, like
     Omega.

omega: make the platform-not-supported-message a bit nicer.

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

17 years agoadd glibc 2.7 suppression to the distribution list
Dirk Mueller [Mon, 26 Nov 2007 14:54:36 +0000 (14:54 +0000)] 
add glibc 2.7 suppression to the distribution list

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

17 years agoDon't break the build on unknown (to drd) platforms.
Julian Seward [Mon, 26 Nov 2007 06:03:05 +0000 (06:03 +0000)] 
Don't break the build on unknown (to drd) platforms.

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

17 years agoBack out r7221, which was incorrect.
Nicholas Nethercote [Mon, 26 Nov 2007 02:55:12 +0000 (02:55 +0000)] 
Back out r7221, which was incorrect.

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

17 years agoProgram uses too many new-ish constructions to be compilable on glibc 2.2
Julian Seward [Mon, 26 Nov 2007 00:41:54 +0000 (00:41 +0000)] 
Program uses too many new-ish constructions to be compilable on glibc 2.2
(Red Hat 7.3).  Do nothing on very old platforms.

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

17 years agoMake drd regtests work again following core changes. (Bart Van Assche)
Julian Seward [Mon, 26 Nov 2007 00:11:04 +0000 (00:11 +0000)] 
Make drd regtests work again following core changes.  (Bart Van Assche)

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

17 years agoFix NUM_CLO checking.
Nicholas Nethercote [Mon, 26 Nov 2007 00:00:32 +0000 (00:00 +0000)] 
Fix NUM_CLO checking.

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

17 years agoGet rid of stuff which should not have been committed. Urrr.
Julian Seward [Sun, 25 Nov 2007 23:56:12 +0000 (23:56 +0000)] 
Get rid of stuff which should not have been committed.  Urrr.

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

17 years agoFix g++-2.96 build breakage.
Julian Seward [Sun, 25 Nov 2007 23:15:44 +0000 (23:15 +0000)] 
Fix g++-2.96 build breakage.

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

17 years agoUn-break 'make distdir'. Either by removing from EXTRA_DIST, file
Julian Seward [Sun, 25 Nov 2007 20:20:49 +0000 (20:20 +0000)] 
Un-break 'make distdir'.  Either by removing from EXTRA_DIST, file
names pertaining to tests which cannot be run (no associated .vgtest),
or by adding missing .stdout.exp files for tests which are to be run
(there is an associated .vgtest).

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

17 years agoGet rid of compiler warnings.
Julian Seward [Sun, 25 Nov 2007 15:40:17 +0000 (15:40 +0000)] 
Get rid of compiler warnings.

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

17 years agoRemove from the active tree; this is of historical interest only now.
Julian Seward [Sun, 25 Nov 2007 14:11:38 +0000 (14:11 +0000)] 
Remove from the active tree; this is of historical interest only now.
Of course this remains in the repo forever.

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

17 years agoUpdate.
Julian Seward [Sun, 25 Nov 2007 14:09:45 +0000 (14:09 +0000)] 
Update.

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

17 years agoFix broken link.
Julian Seward [Sun, 25 Nov 2007 14:09:26 +0000 (14:09 +0000)] 
Fix broken link.

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

17 years agoMisc changes needed to support exp-drd (Bart Van Assche).
Julian Seward [Sun, 25 Nov 2007 14:08:53 +0000 (14:08 +0000)] 
Misc changes needed to support exp-drd (Bart Van Assche).

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

17 years agoCore-tool iface changes needed to support exp-drd (Bart Van Assche).
Julian Seward [Sun, 25 Nov 2007 14:06:06 +0000 (14:06 +0000)] 
Core-tool iface changes needed to support exp-drd (Bart Van Assche).

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

17 years agoAdd DRD as an experimental tool. Bart Van Assche is the maintainer.
Julian Seward [Sun, 25 Nov 2007 14:01:38 +0000 (14:01 +0000)] 
Add DRD as an experimental tool.  Bart Van Assche is the maintainer.

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

17 years agoFix completely bogus implementation of VG_(seginfo_sect_kind). This
Julian Seward [Sun, 25 Nov 2007 12:30:36 +0000 (12:30 +0000)] 
Fix completely bogus implementation of VG_(seginfo_sect_kind).  This
was reported a very long time ago (2 years?) but was not fixed until
now.

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

17 years agoVery minor changes.
Julian Seward [Sun, 25 Nov 2007 00:56:51 +0000 (00:56 +0000)] 
Very minor changes.

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

17 years agoCreate a new chapter in the Valgrind Manual: a chapter containing info
Julian Seward [Sun, 25 Nov 2007 00:55:11 +0000 (00:55 +0000)] 
Create a new chapter in the Valgrind Manual: a chapter containing info
on some advanced aspects of the core (client requests, function
wrapping) and move stuff from the main core manual into it.

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

17 years agoAttempt to shake out uses of uninitialised malloc'd memory by Valgrind
Julian Seward [Sat, 24 Nov 2007 23:37:07 +0000 (23:37 +0000)] 
Attempt to shake out uses of uninitialised malloc'd memory by Valgrind
itself, if such exist.  Attempt failed (or no such uses exist :-)
Commit does not change any code.

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

17 years agoUpdate expected outputs.
Julian Seward [Sat, 24 Nov 2007 22:53:31 +0000 (22:53 +0000)] 
Update expected outputs.

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

17 years agoDon't let the debugger attachment fail silently in some cases.
Julian Seward [Sat, 24 Nov 2007 21:24:25 +0000 (21:24 +0000)] 
Don't let the debugger attachment fail silently in some cases.

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

17 years agoTweak VG_(expand_file_name), as per Josef's suggestions.
Nicholas Nethercote [Fri, 23 Nov 2007 22:37:35 +0000 (22:37 +0000)] 
Tweak VG_(expand_file_name), as per Josef's suggestions.

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

17 years agoupdate
Nicholas Nethercote [Fri, 23 Nov 2007 01:42:10 +0000 (01:42 +0000)] 
update

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

17 years agoFixed up the log file mess throughout, including the docs. This killed
Nicholas Nethercote [Fri, 23 Nov 2007 01:41:32 +0000 (01:41 +0000)] 
Fixed up the log file mess throughout, including the docs.  This killed
--log-file-qualifier and --log-file-exactly.

Updated NEWS some in preparation for 3.3.0.

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

17 years agoAvoid some compiler warnings.
Nicholas Nethercote [Thu, 22 Nov 2007 23:33:20 +0000 (23:33 +0000)] 
Avoid some compiler warnings.

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

17 years agoAdd support for %q in --massif-out-file. Todo: use this mechanism for the
Nicholas Nethercote [Thu, 22 Nov 2007 23:01:59 +0000 (23:01 +0000)] 
Add support for %q in --massif-out-file.  Todo: use this mechanism for the
core and Cachegrind.

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

17 years agoUpdate documents in preparation for 3.3.0, and restructure them
Julian Seward [Thu, 22 Nov 2007 01:21:56 +0000 (01:21 +0000)] 
Update documents in preparation for 3.3.0, and restructure them
somewhat to move less relevant material out of the way to some extent.
The main changes are:

* Update date and version info

* Mention other tools in the quick-start guide

* Document --child-silent-after-fork

* Rearrange order of sections in the Valgrind Core chapter, to move
  advanced stuff (client requests) to the end, and compact stuff
  relevant to the majority of users towards the front

* Move MPI debugging stuff from the Core manual (a nonsensical place
  for it) to the Memcheck chapter

* Update the manual's introductory chapter a bit

* Connect up new tech docs summary page, and disconnect old and
  very out of date valgrind/memcheck tech docs

* Add section tags to the Cachegrind manual, to stop xsltproc
  complaining about their absence

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

17 years agoAdd a page listing papers etc about Valgrind. Cut-down version of
Julian Seward [Thu, 22 Nov 2007 01:07:57 +0000 (01:07 +0000)] 
Add a page listing papers etc about Valgrind.  Cut-down version of
http://valgrind.org/docs/pubs.html.  Could do with improved
formatting, but is at least a start.

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

17 years agoUpdate bug status.
Tom Hughes [Wed, 21 Nov 2007 16:12:57 +0000 (16:12 +0000)] 
Update bug status.

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

17 years agoDon't load debug sections from the linked debug file if we have
Tom Hughes [Wed, 21 Nov 2007 16:09:18 +0000 (16:09 +0000)] 
Don't load debug sections from the linked debug file if we have
already loaded them from the main ELF file. Fixes #145609.

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

17 years agoSupport sys_utimensat on x86-linux. (Dan McGee)
Julian Seward [Tue, 20 Nov 2007 23:41:23 +0000 (23:41 +0000)] 
Support sys_utimensat on x86-linux. (Dan McGee)

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

17 years agoFollowup to r7192: don't bork the compilation if GDB_PATH is not
Julian Seward [Tue, 20 Nov 2007 21:38:14 +0000 (21:38 +0000)] 
Followup to r7192: don't bork the compilation if GDB_PATH is not
defined (in config.h)

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

17 years agoHandle sys_getitimer on ppc32-linux and ppc64-linux.
Julian Seward [Tue, 20 Nov 2007 19:59:51 +0000 (19:59 +0000)] 
Handle sys_getitimer on ppc32-linux and ppc64-linux.

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

17 years agoIn the --help text, print the actual name of the GDB that will by
Julian Seward [Tue, 20 Nov 2007 19:45:03 +0000 (19:45 +0000)] 
In the --help text, print the actual name of the GDB that will by
default be used.  Fixes #151938.  Unfortunately this makes the help
text non-constant, which could have a bad effect on regtesting; but
GDB is so usually installed in the standard place /usr/bin/gdb that I
don't think that's much of a big deal.

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

17 years agoBe more robust against malformed DWARF2 line number information: don't
Julian Seward [Tue, 20 Nov 2007 08:46:05 +0000 (08:46 +0000)] 
Be more robust against malformed DWARF2 line number information: don't
assert when a reference is made to a filename not in the filename
table.  Fixes #150380 and #129937.

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

17 years agoDo Massif output file name properly. Default is massif.out.%p, where %p
Nicholas Nethercote [Tue, 20 Nov 2007 07:55:40 +0000 (07:55 +0000)] 
Do Massif output file name properly.  Default is massif.out.%p, where %p
expands to the PID.  Updated the tests.  Still todo:  handle %q for
environment variables, and do the same for the core and
Cachegrind/Callgrind.

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

17 years agoshut GCC up
Nicholas Nethercote [Tue, 20 Nov 2007 07:04:36 +0000 (07:04 +0000)] 
shut GCC up

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

17 years agoupdate
Nicholas Nethercote [Tue, 20 Nov 2007 06:40:48 +0000 (06:40 +0000)] 
update

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

17 years agoZero out the vki_user_regs_struct before using it. Otherwise, we end
Julian Seward [Mon, 19 Nov 2007 14:54:09 +0000 (14:54 +0000)] 
Zero out the vki_user_regs_struct before using it.  Otherwise, we end
up passing uninitialised garbage on the stack to ptrace(SETREGS, ...)
for any fields in the struct which are not filled in.  This does not
fix any known bugs, but seems like a good precautionary measure.

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

17 years agoUpdate.
Julian Seward [Mon, 19 Nov 2007 02:47:16 +0000 (02:47 +0000)] 
Update.

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

17 years agoAdd initial code to support debugger attaching on ppc64-linux (Ryan John).
Julian Seward [Mon, 19 Nov 2007 02:29:07 +0000 (02:29 +0000)] 
Add initial code to support debugger attaching on ppc64-linux (Ryan John).
Works on 2.6.20.  Does not work on 2.6.23 for unknown reasons.

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

17 years agoMinor tidyings to the debugger-attach code, as part of a failed
Julian Seward [Mon, 19 Nov 2007 02:01:01 +0000 (02:01 +0000)] 
Minor tidyings to the debugger-attach code, as part of a failed
attempt to fix debugger attach on ppc32-linux and ppc64-linux (see
#151908).  The fork/ptrace-based mechanism works fine for x86-linux
and amd64-linux but not on ppc.  I have no idea what is going on.

It seems like the forked child process (to which we will attach GDB)
does not stop when it does PTRACE_TRACE_ME and so things go downhill
very rapidly after that.

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

17 years agoWhen doing ptrace on amd64-linux, provide values which don't fail the
Julian Seward [Mon, 19 Nov 2007 00:58:18 +0000 (00:58 +0000)] 
When doing ptrace on amd64-linux, provide values which don't fail the
kernel's sanity checks for kernel >= 2.6.21.  Fixes #145622.

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

17 years agoInitial glibc-2.7 suppressions for Helgrind. Also rearrange order of
Julian Seward [Sun, 18 Nov 2007 18:22:50 +0000 (18:22 +0000)] 
Initial glibc-2.7 suppressions for Helgrind.  Also rearrange order of
entries in file.

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

17 years agoPreliminary support for Fedora 8, which includes initial support for
Julian Seward [Sun, 18 Nov 2007 14:40:02 +0000 (14:40 +0000)] 
Preliminary support for Fedora 8, which includes initial support for
glibc-2.7.

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

17 years ago* more suppressions, for glibc-2.5 on ppc64
Julian Seward [Sun, 18 Nov 2007 01:40:14 +0000 (01:40 +0000)] 
* more suppressions, for glibc-2.5 on ppc64
* generalise the 2.4.so and 2.5.so patterns just to be on the safe side

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

17 years agoTry to fix, or at least avoid if possible, some arbitrary delays at
Julian Seward [Sun, 18 Nov 2007 01:16:52 +0000 (01:16 +0000)] 
Try to fix, or at least avoid if possible, some arbitrary delays at
thread creation time observed when running on POWER5 64-bit Linux.

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

17 years agoAdd regtest for the --child-silent-after-fork added in r7177.
Julian Seward [Sat, 17 Nov 2007 23:00:47 +0000 (23:00 +0000)] 
Add regtest for the --child-silent-after-fork added in r7177.

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

17 years agoAdd a new flag, --child-silent-after-fork=no|yes [no]. When enabled,
Julian Seward [Sat, 17 Nov 2007 22:29:25 +0000 (22:29 +0000)] 
Add a new flag, --child-silent-after-fork=no|yes [no].  When enabled,
causes child processes after fork to fall completely silent, which can
make the output a lot less confusing.  In addition it is pretty much
essential in XML output mode, so as to avoid mixing up any child XML
output with the parent's.

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

17 years agoDon't pollute the XML output if the program terminates with a signal,
Julian Seward [Sat, 17 Nov 2007 21:31:48 +0000 (21:31 +0000)] 
Don't pollute the XML output if the program terminates with a signal,
and for a couple of other minor warnings.

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

17 years agoMake handling of setuid executables marginally more sensible, as
Julian Seward [Sat, 17 Nov 2007 21:11:57 +0000 (21:11 +0000)] 
Make handling of setuid executables marginally more sensible, as
suggested in #119404.

Prior to this commit, if the current traced process attempted to
execve a setuid executable, an error was always returned.  The revised
behaviour is:

If the current (traced) process attempts to execve a setuid
executable:

* If --trace-children=yes is not in effect, the execve is allowed.

* If --trace-children=yes is in effect, the execve is disallowed
  (as at present), but an error message is printed (unless in XML mode),
  so at least the execve does not fail silently any more.

As per discussion on #119404 we could probably do a lot better, but
these changes are at least simple, useful and uncontroversial.

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

17 years agoMakefile.tool-inplace.am: correctly handle tool names with dashes in,
Julian Seward [Sat, 17 Nov 2007 18:35:54 +0000 (18:35 +0000)] 
Makefile.tool-inplace.am: correctly handle tool names with dashes in,
using same changes to magic sed scripts as were recently applied to
Makefile.install.am.

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

17 years agoSpelling fixes and misc tidying for the manual. (Brian Gough)
Julian Seward [Sat, 17 Nov 2007 09:43:25 +0000 (09:43 +0000)] 
Spelling fixes and misc tidying for the manual.  (Brian Gough)

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

17 years agoUpdate.
Julian Seward [Sat, 17 Nov 2007 02:46:42 +0000 (02:46 +0000)] 
Update.

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

17 years agoStack registration stuff: don't dereference NULL pointers (Eric
Julian Seward [Sat, 17 Nov 2007 02:05:57 +0000 (02:05 +0000)] 
Stack registration stuff: don't dereference NULL pointers (Eric
Sharkey, #150044).

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

17 years agoDon't segfault on syscall (SYS_io_destroy, 0). (Jakub Jelinek) Fixes
Julian Seward [Sat, 17 Nov 2007 01:49:06 +0000 (01:49 +0000)] 
Don't segfault on syscall (SYS_io_destroy, 0).  (Jakub Jelinek) Fixes
#147325.

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

17 years agoAdd support for private futexes (whatever they might be). Patch from
Julian Seward [Sat, 17 Nov 2007 01:35:08 +0000 (01:35 +0000)] 
Add support for private futexes (whatever they might be).  Patch from
Eric Dumazet.  Fixes #146781.

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