]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoRemove Massif's version number now that it's part of the main distro.
Nicholas Nethercote [Tue, 16 Mar 2004 19:41:14 +0000 (19:41 +0000)] 
Remove Massif's version number now that it's part of the main distro.

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

21 years agoIgnore valgrind core files.
Tom Hughes [Tue, 16 Mar 2004 11:05:16 +0000 (11:05 +0000)] 
Ignore valgrind core files.

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

21 years agoAdded badseg to the list of things to ignore.
Tom Hughes [Tue, 16 Mar 2004 11:04:03 +0000 (11:04 +0000)] 
Added badseg to the list of things to ignore.

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

21 years agoFilter out the ": core dumped" message from test results as the user
Tom Hughes [Tue, 16 Mar 2004 11:03:09 +0000 (11:03 +0000)] 
Filter out the ": core dumped" message from test results as the user
running the tests might have a ulimit set that prevents the core dumps.

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

21 years agoFixed compiler warning.
Tom Hughes [Tue, 16 Mar 2004 10:51:40 +0000 (10:51 +0000)] 
Fixed compiler warning.

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

21 years agoAdded the new badseg test to the list of things to build.
Tom Hughes [Tue, 16 Mar 2004 10:51:29 +0000 (10:51 +0000)] 
Added the new badseg test to the list of things to build.

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

21 years agoThis change does two things: one is the implementation of
Jeremy Fitzhardinge [Tue, 16 Mar 2004 09:49:08 +0000 (09:49 +0000)] 
This change does two things: one is the implementation of
VG_(synth_fault_*), which synthesize faults as if an instruction had
caused a CPU fault.  This is used in two places: one in vg_translate.c,
when trying to fetch instructions from bad memory, and the other in
vg_ldt.c, when using a bad segment register.  This fixes a bug where an
assertion would fail rather than getting a useful message.

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

21 years agoMake the sigaltstack per-thread state, so that two threads handling a
Jeremy Fitzhardinge [Tue, 16 Mar 2004 08:27:29 +0000 (08:27 +0000)] 
Make the sigaltstack per-thread state, so that two threads handling a
signal at once don't share the same stack.

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

21 years agoPrint a backtrace for core-dumping signals, even if we're not actually
Jeremy Fitzhardinge [Tue, 16 Mar 2004 08:20:14 +0000 (08:20 +0000)] 
Print a backtrace for core-dumping signals, even if we're not actually
dumping core.

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

21 years agoOoops. Fix overly-hasty commit.
Jeremy Fitzhardinge [Mon, 15 Mar 2004 23:46:54 +0000 (23:46 +0000)] 
Ooops.  Fix overly-hasty commit.

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

21 years agoBe a bit clearer about core-dumping messages (don't say we are if we're not)
Jeremy Fitzhardinge [Mon, 15 Mar 2004 23:44:11 +0000 (23:44 +0000)] 
Be a bit clearer about core-dumping messages (don't say we are if we're not)

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

21 years agoMove the handling of PSHUFW from the SSE code to the MMX code so that
Tom Hughes [Mon, 15 Mar 2004 16:43:58 +0000 (16:43 +0000)] 
Move the handling of PSHUFW from the SSE code to the MMX code so that
it will work on older Athlons which only have MMXEXT support.

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

21 years agoDon't bother setting the EI_OSABI entry in the core elf header, since
Jeremy Fitzhardinge [Mon, 15 Mar 2004 16:13:06 +0000 (16:13 +0000)] 
Don't bother setting the EI_OSABI entry in the core elf header, since
the kernel doesn't, nobody uses it, and RH7.2 systems don't define it.

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

21 years agoFix compiler warnings.
Tom Hughes [Mon, 15 Mar 2004 12:58:55 +0000 (12:58 +0000)] 
Fix compiler warnings.

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

21 years agoModify the memory manager so it "natively" supports 8-byte alignment,
Julian Seward [Sun, 14 Mar 2004 03:06:37 +0000 (03:06 +0000)] 
Modify the memory manager so it "natively" supports 8-byte alignment,
basically by messing with the block layout.

* Move freelist next ptr from before payload to after it

* Ensure payload and red zones always have sizes which are
  multiples of 8-bytes.

Seems to work OK.  Values returned from the two basic allocator
functions VG_(arena_malloc) and VG_(arena_malloc_aligned) are
vg_asserted to have suitable alignment (== 8, >= 8 && == requested
alignment) respectively.

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

21 years agowhoops
Dirk Mueller [Sat, 13 Mar 2004 02:56:29 +0000 (02:56 +0000)] 
whoops

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

21 years agofix up the other places as well
Dirk Mueller [Sat, 13 Mar 2004 02:49:49 +0000 (02:49 +0000)] 
fix up the other places as well

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

21 years agoClose bug 71906. Set default malloc alignment to 8 rather than 4.
Jeremy Fitzhardinge [Sat, 13 Mar 2004 02:38:33 +0000 (02:38 +0000)] 
Close bug 71906.  Set default malloc alignment to 8 rather than 4.

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

21 years agoFix bug 69872. This change adds a coredumper to vg_signal.c. This means
Jeremy Fitzhardinge [Sat, 13 Mar 2004 02:06:58 +0000 (02:06 +0000)] 
Fix bug 69872.  This change adds a coredumper to vg_signal.c.  This means
that when the client is killed by a coredumping signal, Valgrind will
generate the coredump itself, which is full of client state, rather than
Valgrind state; this core file will therefore be useful to the developer
in debugging their program.

The corefile generated is named vgcore.pidNNNNN (and maybe with .M on
the end in case of duplicates).  If you set a logfile with --logfile,
then this name will be used as the basename for the core file, so that
both the core and the logs will be next to each other.

Valgrind respects the RLIMIT_CORE limit when generating the file; if the
limit is set to 0, then it will not generate one.

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

21 years agohead --> 2.1.2-CVS so as to distinguish it from everything else :-)
Julian Seward [Sat, 13 Mar 2004 00:49:39 +0000 (00:49 +0000)] 
head --> 2.1.2-CVS  so as to distinguish it from everything else :-)

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

21 years agoUpdate for 2.1.1.
Julian Seward [Fri, 12 Mar 2004 21:07:05 +0000 (21:07 +0000)] 
Update for 2.1.1.

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

21 years agoFix "make distcheck", and also make sure that the generated archive
Jeremy Fitzhardinge [Fri, 12 Mar 2004 10:51:39 +0000 (10:51 +0000)] 
Fix "make distcheck", and also make sure that the generated archive
contains everything needed to "make regtest".  Bump the version.

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

21 years agoPartially unbreak 'make distcheck'.
Julian Seward [Fri, 12 Mar 2004 01:22:30 +0000 (01:22 +0000)] 
Partially unbreak 'make distcheck'.

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

21 years agoOops, passing wrong thing to st_mkarray
Jeremy Fitzhardinge [Thu, 11 Mar 2004 00:40:11 +0000 (00:40 +0000)] 
Oops, passing wrong thing to st_mkarray

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

21 years agoAnonymise path names for libc's built with debg symbols.
Tom Hughes [Tue, 9 Mar 2004 09:59:26 +0000 (09:59 +0000)] 
Anonymise path names for libc's built with debg symbols.

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

21 years agoAdd an alternate (appropriately filtered) result for some systems.
Tom Hughes [Tue, 9 Mar 2004 09:16:35 +0000 (09:16 +0000)] 
Add an alternate (appropriately filtered) result for some systems.

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

21 years agoFix expected standard error output for mmxext tests to resolve
Tom Hughes [Tue, 9 Mar 2004 08:50:02 +0000 (08:50 +0000)] 
Fix expected standard error output for mmxext tests to resolve
differences in the amount of whitespace left with different skins.

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

21 years agoFix bug 69856; teach Helgrind about all the new SSE-related UOps.
Jeremy Fitzhardinge [Tue, 9 Mar 2004 02:45:07 +0000 (02:45 +0000)] 
Fix bug 69856; teach Helgrind about all the new SSE-related UOps.
Haven't actually tested races with all those new memory access
instructions though...

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

21 years agoUse Tom's instruction set tests on all tools which do instrumentation, so
Jeremy Fitzhardinge [Tue, 9 Mar 2004 01:44:11 +0000 (01:44 +0000)] 
Use Tom's instruction set tests on all tools which do instrumentation, so
we can make it's OK for all instructions.  Helgrind is badly broken in this
test (bug 69856).

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

21 years agoFix for bug 73892; implement 'S' set/bitstring stabs type.
Jeremy Fitzhardinge [Tue, 9 Mar 2004 01:20:47 +0000 (01:20 +0000)] 
Fix for bug 73892; implement 'S' set/bitstring stabs type.

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

21 years agoRaise RLIMIT_AS to max allowable, so that we can create the large mappings
Jeremy Fitzhardinge [Tue, 9 Mar 2004 00:57:45 +0000 (00:57 +0000)] 
Raise RLIMIT_AS to max allowable, so that we can create the large mappings
we need to.  If the hard limit is set to low, then things will fail as
large mmaps fail.

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

21 years agoCope with strange templated symbol names containing quoted ':'.
Jeremy Fitzhardinge [Tue, 9 Mar 2004 00:43:08 +0000 (00:43 +0000)] 
Cope with strange templated symbol names containing quoted ':'.

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

21 years agoRemove function which is no longer used following the changes to
Tom Hughes [Mon, 8 Mar 2004 15:57:17 +0000 (15:57 +0000)] 
Remove function which is no longer used following the changes to
the handling of libc thread specific data.

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

21 years agoTurn off warning with -q.
Nicholas Nethercote [Mon, 8 Mar 2004 15:37:58 +0000 (15:37 +0000)] 
Turn off warning with -q.

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

21 years agoAdd some alternate regression test results for older libc's.
Tom Hughes [Sun, 7 Mar 2004 19:40:33 +0000 (19:40 +0000)] 
Add some alternate regression test results for older libc's.

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

21 years agoFix the handling of libc thread specific data so that it doesn't rely on
Tom Hughes [Sun, 7 Mar 2004 19:36:14 +0000 (19:36 +0000)] 
Fix the handling of libc thread specific data so that it doesn't rely on
being able to use malloc as the libc malloc tries to use thread specific
data and we wind up in a recursive nightmare.

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

21 years agoBe slightly less verbose at -v.
Julian Seward [Sun, 7 Mar 2004 10:23:20 +0000 (10:23 +0000)] 
Be slightly less verbose at -v.

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

21 years agoTreat INT with an operand other than 0x80 as an undefined instruction.
Tom Hughes [Sat, 6 Mar 2004 12:53:24 +0000 (12:53 +0000)] 
Treat INT with an operand other than 0x80 as an undefined instruction.
CCMAIL: 76839-done@bugs.kde.org

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

21 years agoWe need to specify some version.
Jeremy Fitzhardinge [Sat, 6 Mar 2004 00:14:42 +0000 (00:14 +0000)] 
We need to specify some version.

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

21 years agoFix bug 76780 - implement stabs type '@' for pointer to member.
Jeremy Fitzhardinge [Fri, 5 Mar 2004 05:43:42 +0000 (05:43 +0000)] 
Fix bug 76780 - implement stabs type '@' for pointer to member.

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

21 years agoAdd support for 16 bit pushes and pops of segment registers to
Tom Hughes [Thu, 4 Mar 2004 23:36:58 +0000 (23:36 +0000)] 
Add support for 16 bit pushes and pops of segment registers to
fix bug #76762.

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

21 years agoList memalign as an allocator.
Jeremy Fitzhardinge [Thu, 4 Mar 2004 22:42:03 +0000 (22:42 +0000)] 
List memalign as an allocator.

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

21 years agoRemove comma from last element of enum; C++ apparently doesn't allow it.
Nicholas Nethercote [Thu, 4 Mar 2004 18:05:55 +0000 (18:05 +0000)] 
Remove comma from last element of enum;  C++ apparently doesn't allow it.

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

21 years agoDon't intercept mmap yet, until everything else is in place to deal
Jeremy Fitzhardinge [Tue, 2 Mar 2004 21:40:07 +0000 (21:40 +0000)] 
Don't intercept mmap yet, until everything else is in place to deal
with it.

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

21 years agoFix assertion failure when using VG_(system) near program termination.
Jeremy Fitzhardinge [Tue, 2 Mar 2004 21:38:51 +0000 (21:38 +0000)] 
Fix assertion failure when using VG_(system) near program termination.
The problem is that the use of VG_(system) causes a SIGCHLD to be sent
to the process, which ends up being delivered to one of the proxy LWPs
(which is a small problem in itself, but nothing too bad).

The proxy tells the scheduler LWP about this, and the scheduler LWP sends
a sigACK reply.

Then, while the proxy LWP is in the SigACK state, and the SigACK reply
is still queued in the message pipe, the scheduler LWP starts shutting
Valgrind down, and sends a SIGVGKILL to all proxy LWPs.  This causes
the proxy to drop from sigACK state to WaitReq state, and it reads
further commands - one of which is the SigACK message - this causes the
assertion failure.

The fix is to simply make the proxy LWP exit immediately when it gets
a SIGVGKILL, and not process any more requests.

This change also fixes a bug in VG_(system), in which the child process
returns back into Valgrind rather than exiting when exec fails.

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

21 years agoMake vg_regtest return 1 if any tests fail. Useful for scripts that call it.
Nicholas Nethercote [Mon, 1 Mar 2004 08:27:37 +0000 (08:27 +0000)] 
Make vg_regtest return 1 if any tests fail.  Useful for scripts that call it.

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

21 years agoremove arch subdir for 2.1.1 release
Dirk Mueller [Mon, 1 Mar 2004 03:25:09 +0000 (03:25 +0000)] 
remove arch subdir for 2.1.1 release

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

21 years agoPatch from Bartosz Taudul: latest GCC requires regparm(n) attributes on both
Nicholas Nethercote [Sun, 29 Feb 2004 15:50:04 +0000 (15:50 +0000)] 
Patch from Bartosz Taudul:  latest GCC requires regparm(n) attributes on both
function declarations and definitions.

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

21 years agoAdded some extra suppressions for glibc 2.2.5 on RedHat 7.3 systems.
Tom Hughes [Sun, 29 Feb 2004 13:00:51 +0000 (13:00 +0000)] 
Added some extra suppressions for glibc 2.2.5 on RedHat 7.3 systems.

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

21 years agoModified the basic standard error filter to strip out line info out of
Tom Hughes [Sun, 29 Feb 2004 13:00:18 +0000 (13:00 +0000)] 
Modified the basic standard error filter to strip out line info out of
order warnings which some systems seem to produce.

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

21 years agoAdd an extra suppression for glibc 2.3.2 on RedHat 8.0 systems.
Tom Hughes [Sun, 29 Feb 2004 12:42:12 +0000 (12:42 +0000)] 
Add an extra suppression for glibc 2.3.2 on RedHat 8.0 systems.

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

21 years agoChanged the fdleak tests to explicitly attach /dev/null as the standard
Tom Hughes [Sun, 29 Feb 2004 12:02:32 +0000 (12:02 +0000)] 
Changed the fdleak tests to explicitly attach /dev/null as the standard
input so that the output is well known regardless of whether the test is
run from a terminal or from cron.

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

21 years agoAllow multiple .exp files, eg. foo.stderr.exp, foo.stderr.exp2; test will pass
Nicholas Nethercote [Sun, 29 Feb 2004 01:31:09 +0000 (01:31 +0000)] 
Allow multiple .exp files, eg. foo.stderr.exp, foo.stderr.exp2;  test will pass
as long as one matches.

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

21 years agoAdjust vg_pthread_cond_t so it works with an older glibc.
Nicholas Nethercote [Sat, 28 Feb 2004 23:32:11 +0000 (23:32 +0000)] 
Adjust vg_pthread_cond_t so it works with an older glibc.

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

21 years agoadding suppressions for Redhat 7.2, patch by Tom Hughes
Dirk Mueller [Sat, 28 Feb 2004 21:21:46 +0000 (21:21 +0000)] 
adding suppressions for Redhat 7.2, patch by Tom Hughes

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

21 years agoSome newer systems have a new version of pthreadtypes.h that comes from glibc
Nicholas Nethercote [Sat, 28 Feb 2004 15:40:36 +0000 (15:40 +0000)] 
Some newer systems have a new version of pthreadtypes.h that comes from glibc
2.3.3, which is binary-compatible, but not source compatible with the old one,
which came from LinuxThreads.  We were using the types defined in the old one,
which caused compilation errors on systems using the new one.

This commit introduces our own versions of these types.  Our versions are laid
out identically to the LinuxThreads ones, but the field names are different.
We convert all pthread types to our versions before using them, so we don't
rely on the pthreadtypes.h types any more.  Hopefully this will fix the
problem;  I have three reports that it does.  Let's see...

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

21 years agoMove the '-lm' link flag to the end of the command line, so it works for
Nicholas Nethercote [Thu, 26 Feb 2004 09:04:38 +0000 (09:04 +0000)] 
Move the '-lm' link flag to the end of the command line, so it works for
everyone.

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

21 years agoAdd the nightly build scripts.
Julian Seward [Wed, 25 Feb 2004 13:14:39 +0000 (13:14 +0000)] 
Add the nightly build scripts.

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

21 years agoFix shmdt by using the right argument for the shared segment address.
Jeremy Fitzhardinge [Wed, 25 Feb 2004 00:07:10 +0000 (00:07 +0000)] 
Fix shmdt by using the right argument for the shared segment address.

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

21 years agoCheck new fds are not within Valgrind's reserved range. Still one case for
Nicholas Nethercote [Tue, 24 Feb 2004 23:57:47 +0000 (23:57 +0000)] 
Check new fds are not within Valgrind's reserved range.  Still one case for
recvmsg() where I'm not sure if it should be checked, and if so, what error
should be returned if the check fails.

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

21 years agoThis fixes bug 75614. It seems that a symbol can be named
Jeremy Fitzhardinge [Tue, 24 Feb 2004 23:46:06 +0000 (23:46 +0000)] 
This fixes bug 75614.  It seems that a symbol can be named
"foo<bar::blat>"; normally stabs names are terminated by ':', but we
also need to keep track of <> pairs so we can ignore nested colons.

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

21 years agoFix the use of brk. This change removes the requirement for the "real" brk
Jeremy Fitzhardinge [Tue, 24 Feb 2004 23:42:55 +0000 (23:42 +0000)] 
Fix the use of brk.  This change removes the requirement for the "real" brk
segment to be moved up to stage2's brk segment.  Instead, Valgrind's
use of brk is simulated with mmap.  In order to prevent any unwanted use
of the process brk segment, it also sets the RLIMIT_DATA to 0, which will
make brk always fail.  glibc's malloc will use mmap to allocate if brk
fails.  We try to intercept glibc's brk, but malloc seems to always use the
library-internal version.  (The client's use of brk has always been simulated,
and is unaffected by this change.)

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

21 years agoFix 'make dist'.
Nicholas Nethercote [Tue, 24 Feb 2004 23:38:17 +0000 (23:38 +0000)] 
Fix 'make dist'.

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

21 years agopatch by Tom Hughes to make it work with gcc 2.96
Dirk Mueller [Mon, 23 Feb 2004 22:09:54 +0000 (22:09 +0000)] 
patch by Tom Hughes to make it work with gcc 2.96

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

21 years agoFix var names in prototypes.
Nicholas Nethercote [Mon, 23 Feb 2004 16:45:18 +0000 (16:45 +0000)] 
Fix var names in prototypes.

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

21 years agoAdded various functions that make instrumentation easier, particularly
Nicholas Nethercote [Mon, 23 Feb 2004 16:10:06 +0000 (16:10 +0000)] 
Added various functions that make instrumentation easier, particularly
doing C calls.

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

21 years agoChanged bug_reports_to.
Nicholas Nethercote [Mon, 23 Feb 2004 15:33:33 +0000 (15:33 +0000)] 
Changed bug_reports_to.

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

21 years agoUpdate and add various .cvsignore files.
Nicholas Nethercote [Sun, 22 Feb 2004 19:34:55 +0000 (19:34 +0000)] 
Update and add various .cvsignore files.

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

21 years agoThree CDROM ioctls, from Rocky Bernstein.
Nicholas Nethercote [Sun, 22 Feb 2004 18:08:04 +0000 (18:08 +0000)] 
Three CDROM ioctls, from Rocky Bernstein.

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

21 years agoRemove system-dependent output from test.
Nicholas Nethercote [Sun, 22 Feb 2004 17:24:01 +0000 (17:24 +0000)] 
Remove system-dependent output from test.

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

21 years agoPatch from Tom Hughes:
Nicholas Nethercote [Sun, 22 Feb 2004 16:56:28 +0000 (16:56 +0000)] 
Patch from Tom Hughes:

  Patch to ignore REP prefixes on single byte RET instructions.

(REP RET is apparently faster than RET on AMD K7/K8)

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

21 years agosigh
Dirk Mueller [Sat, 21 Feb 2004 04:27:49 +0000 (04:27 +0000)] 
sigh

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

21 years agoget rid of the thread local storage tests until somebody
Dirk Mueller [Fri, 20 Feb 2004 14:45:52 +0000 (14:45 +0000)] 
get rid of the thread local storage tests until somebody
writes a configure check for them.

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

21 years agoAdd a pair of missing {pre,post}_mem_write events.
Nicholas Nethercote [Sun, 15 Feb 2004 16:21:38 +0000 (16:21 +0000)] 
Add a pair of missing {pre,post}_mem_write events.

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

21 years agoFix so that new versions of system (using clone()) work.
Nicholas Nethercote [Sun, 15 Feb 2004 16:15:05 +0000 (16:15 +0000)] 
Fix so that new versions of system (using clone()) work.

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

21 years agowhoops
Nicholas Nethercote [Sun, 15 Feb 2004 16:12:35 +0000 (16:12 +0000)] 
whoops

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

21 years agoAdded copyright notice to all hp2ps source files.
Nicholas Nethercote [Sun, 15 Feb 2004 15:38:08 +0000 (15:38 +0000)] 
Added copyright notice to all hp2ps source files.

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

21 years agoThis patch fixes getrlimit(RLIMIT_FILENO) to return VG_(max_fd) as the soft
Nicholas Nethercote [Sun, 15 Feb 2004 15:32:51 +0000 (15:32 +0000)] 
This patch fixes getrlimit(RLIMIT_FILENO) to return VG_(max_fd) as the soft
limit for file descriptors to try and prevent the target programming realising
that the reserved file descriptors exist. It also appears to fix
sysconf(_SC_OPEN_MAX) so that must be going through the same system call.

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

21 years agofix code typo
Nicholas Nethercote [Sun, 15 Feb 2004 15:10:25 +0000 (15:10 +0000)] 
fix code typo

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

21 years agoRemove compile warnings.
Nicholas Nethercote [Sat, 14 Feb 2004 16:53:53 +0000 (16:53 +0000)] 
Remove compile warnings.

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

21 years agoWhoops, meant to add with Massif.
Nicholas Nethercote [Sat, 14 Feb 2004 16:48:35 +0000 (16:48 +0000)] 
Whoops, meant to add with Massif.

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

21 years agoWhoops, meant to add this with the rest of Massif.
Nicholas Nethercote [Sat, 14 Feb 2004 16:46:17 +0000 (16:46 +0000)] 
Whoops, meant to add this with the rest of Massif.

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

21 years agoAdding Massif, the heap profiler.
Nicholas Nethercote [Sat, 14 Feb 2004 16:40:02 +0000 (16:40 +0000)] 
Adding Massif, the heap profiler.

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

21 years agoNow doing pre_mem_read()s on the args to execve(), so eg. Memcheck can check
Nicholas Nethercote [Thu, 12 Feb 2004 14:34:14 +0000 (14:34 +0000)] 
Now doing pre_mem_read()s on the args to execve(), so eg. Memcheck can check
them.  Added a regtest for this.

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

21 years agoAdd files I forgot to when I committed Tom Hughes' patch for bug 73907.
Nicholas Nethercote [Thu, 12 Feb 2004 08:35:57 +0000 (08:35 +0000)] 
Add files I forgot to when I committed Tom Hughes' patch for bug 73907.

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

21 years agoHeroic patch from Tom Hughes:
Nicholas Nethercote [Wed, 11 Feb 2004 23:33:29 +0000 (23:33 +0000)] 
Heroic patch from Tom Hughes:

  This patch adds translation tests for most of the basic x86 instructions and
  fixes a few missing/broken instructions to work properly.

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

21 years agoAdded support for epoll.
Nicholas Nethercote [Tue, 10 Feb 2004 23:44:15 +0000 (23:44 +0000)] 
Added support for epoll.

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

21 years agoFix for bug 73326. It seems that gcc 3.2.2 is generating negatively-sized
Jeremy Fitzhardinge [Thu, 5 Feb 2004 22:58:37 +0000 (22:58 +0000)] 
Fix for bug 73326.  It seems that gcc 3.2.2 is generating negatively-sized
scopes and out of order line number information in the stabs debug info.
I wonder if this is the stabs writer rotting now that dwarf is the
default...

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

21 years agoFix broken "make dist".
Nicholas Nethercote [Thu, 5 Feb 2004 14:27:36 +0000 (14:27 +0000)] 
Fix broken "make dist".

Doesn't fix "make distcheck", however, because this happens:

  /usr/bin/ld: cannot open linker script file ../../coregrind/x86/stage2.lds:
  No such file or directory

For some reason I can't work out, that file is built when you make in a CVS
tree, or manually from a "make dist" tarball, but not when you "make
distcheck".

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

21 years agoKilled the terminally wounded --stop-after option.
Nicholas Nethercote [Sun, 1 Feb 2004 17:29:59 +0000 (17:29 +0000)] 
Killed the terminally wounded --stop-after option.

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

21 years agoNo longer showing debugging options for --help; only for the newly added
Nicholas Nethercote [Sat, 31 Jan 2004 22:55:15 +0000 (22:55 +0000)] 
No longer showing debugging options for --help;  only for the newly added
--help-debug.

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

21 years agoRearrange CPUID again. Moved most of the helper logic into C, since
Jeremy Fitzhardinge [Mon, 26 Jan 2004 21:11:51 +0000 (21:11 +0000)] 
Rearrange CPUID again.  Moved most of the helper logic into C, since
the assember was getting fiddly.  It now masks out only the undefined
or unimplemented parts of the feature set bits, so it now passes through
all the non-ISA-related feature bits to clients.

It also leaves the vendor ID string unmolested, so that clients can
extract vendor-specific information like extended brand strings and
cache/TLB configuration info.

It does, however, implement some Valgrind-specific requests at 0xd8000000,
though at present the only functionality is the ValgrindVCPU signature.

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

21 years ago"VG_AR_SKIN" --> "VG_AR_TOOL"
Nicholas Nethercote [Mon, 26 Jan 2004 17:24:42 +0000 (17:24 +0000)] 
"VG_AR_SKIN" --> "VG_AR_TOOL"

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

21 years agoMade code more concise. In particular:
Nicholas Nethercote [Mon, 26 Jan 2004 17:14:17 +0000 (17:14 +0000)] 
Made code more concise.  In particular:

  - introduced DIS() and DIP() macros to shorten debug printing

  - introduce jmp_lit(), jcc_lit(), jmp_treg() for common UCode sequences

  - replace many unnecessary dis?dis_buf:NULL tests with dis_buf, by
    changing the tests in disAMode()

Overall, reduced code size by about 230 lines.

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

21 years agoPatch from Tom Hughes:
Nicholas Nethercote [Mon, 26 Jan 2004 17:10:01 +0000 (17:10 +0000)] 
Patch from Tom Hughes:

    Patch to provide a proper environment to the debugger

    Although this patch isn't strictly needed to allow alternative debuggers to
    be used, it is needed if you want to use an X based debugger such as ups
    (and presumably ddd) as VG_(system) has until now passed an empty
    enviroment when starting the debugger but that causes DISPLAY to be lost.

    This patch causes VG_(system) to pass a copy of the client environment
    instead, with the necessary mashing done to clean up the LD_xxx variables.

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

21 years agoPatch from Tom Hughes:
Nicholas Nethercote [Mon, 26 Jan 2004 16:48:06 +0000 (16:48 +0000)] 
Patch from Tom Hughes:

    Patch to allow debuggers other than GDB to be used

    The patch replaces --gdb-attach and --gdb-path with --db-attach and
    --db-command which are more general. The --db-command switch takes a
    command string that can contain one or more instances of %p and %f markers.
    The %p marker is replaced with the PID of the process to attach to and the
    %f marker with the filename of the executable being attached to.

    The default command is "gdb -nw %f %p" which gaves the same result as
    currently.

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

21 years agoRemove some small unnecessary, out-of-date bits
Nicholas Nethercote [Mon, 26 Jan 2004 14:51:40 +0000 (14:51 +0000)] 
Remove some small unnecessary, out-of-date bits

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

21 years agoFix comment
Nicholas Nethercote [Mon, 26 Jan 2004 14:50:45 +0000 (14:50 +0000)] 
Fix comment

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

21 years agostaticalise
Nicholas Nethercote [Sun, 25 Jan 2004 20:33:53 +0000 (20:33 +0000)] 
staticalise

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

21 years agoAnti-globalisation
Nicholas Nethercote [Sun, 25 Jan 2004 19:30:29 +0000 (19:30 +0000)] 
Anti-globalisation

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