]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
22 years agoImport some very small tests.
Julian Seward [Wed, 31 Mar 2004 20:31:07 +0000 (20:31 +0000)] 
Import some very small tests.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3

22 years agoInitial import of ELF .o linker.
Julian Seward [Wed, 31 Mar 2004 20:26:15 +0000 (20:26 +0000)] 
Initial import of ELF .o linker.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2

22 years agoImplement tcdrain in the pthread library. The fact that this function
Tom Hughes [Wed, 31 Mar 2004 15:23:13 +0000 (15:23 +0000)] 
Implement tcdrain in the pthread library. The fact that this function
is missing was reported in bug #70344 but the reporter then closed the
bug saying that they were using the wrong version of valgrind.

Patch from Henrik Algestam <algestam@home.se>.

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

22 years agoInitial repository layout
Julian Seward [Tue, 30 Mar 2004 21:10:56 +0000 (21:10 +0000)] 
Initial repository layout

git-svn-id: svn://svn.valgrind.org/vex/trunk@1

22 years agoFix typo in FPU eflags fix.
Tom Hughes [Sun, 28 Mar 2004 11:36:23 +0000 (11:36 +0000)] 
Fix typo in FPU eflags fix.

CCMAIL: 78514-done@bugs.kde.org

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

22 years agoFor FPU/MMX/SSE instructions which don't reference any memory, make memcheck
Tom Hughes [Sun, 28 Mar 2004 11:26:29 +0000 (11:26 +0000)] 
For FPU/MMX/SSE instructions which don't reference any memory, make memcheck
look at whether the eflags are read or written and generate UCode to validate
and/or mark as valid the eflags when necessary.

CCMAIL: 78514-done@bugs.kde.org

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

22 years agoAdded more floating point instruction tests.
Tom Hughes [Sun, 28 Mar 2004 10:33:51 +0000 (10:33 +0000)] 
Added more floating point instruction tests.

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

22 years agoFix typo that broke tests which compared the contents of eflags.
Tom Hughes [Sun, 28 Mar 2004 08:43:35 +0000 (08:43 +0000)] 
Fix typo that broke tests which compared the contents of eflags.

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

22 years agoIgnore generated files from insn_fpu test.
Tom Hughes [Sun, 28 Mar 2004 00:31:30 +0000 (00:31 +0000)] 
Ignore generated files from insn_fpu test.

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

22 years agoAdded tests for floating point multiple and divide instructions.
Tom Hughes [Sun, 28 Mar 2004 00:30:57 +0000 (00:30 +0000)] 
Added tests for floating point multiple and divide instructions.

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

22 years agoFixed decoding of x87 instructions to handle those taking 16 bit
Tom Hughes [Sat, 27 Mar 2004 18:03:26 +0000 (18:03 +0000)] 
Fixed decoding of x87 instructions to handle those taking 16 bit
integer arguments.

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

22 years agoExtended instruction test system to handle x87 floating point instructions
Tom Hughes [Sat, 27 Mar 2004 18:02:37 +0000 (18:02 +0000)] 
Extended instruction test system to handle x87 floating point instructions
and started working on adding tests for the x87 instruction set.

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

22 years agoAdded some extra .cvsignore entries.
Tom Hughes [Tue, 23 Mar 2004 19:52:03 +0000 (19:52 +0000)] 
Added some extra .cvsignore entries.

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

22 years agoCommit rewrite of semaphore handling to avoid having a fixed upper
Tom Hughes [Tue, 23 Mar 2004 19:48:54 +0000 (19:48 +0000)] 
Commit rewrite of semaphore handling to avoid having a fixed upper
limit. Patch courtesy of Aleksander Salwa <A.Salwa@osmosys.tv>.

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

22 years agoStrip _nocancel from glibc stack traces so that __open_nocancel etc
Tom Hughes [Mon, 22 Mar 2004 19:57:41 +0000 (19:57 +0000)] 
Strip _nocancel from glibc stack traces so that __open_nocancel etc
look like open as seen in traces from older glibcs.

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

22 years agoRedirect _dl_sysinfo_int80, which is glibc's default system call
Tom Hughes [Mon, 22 Mar 2004 19:46:29 +0000 (19:46 +0000)] 
Redirect _dl_sysinfo_int80, which is glibc's default system call
routine, to the routine in our trampoline page so that the
special sysinfo unwind hack in vg_execontext.c will kick in.

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

22 years agoAdd susphello test, which has turned up a number of interesting bugs
Jeremy Fitzhardinge [Wed, 17 Mar 2004 18:20:46 +0000 (18:20 +0000)] 
Add susphello test, which has turned up a number of interesting bugs

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

22 years agoWhen creating new threads, initially block all signals. It's up to the
Jeremy Fitzhardinge [Tue, 16 Mar 2004 22:09:12 +0000 (22:09 +0000)] 
When creating new threads, initially block all signals.  It's up to the
client code (in vg_libpthread.c) to set the appropriate signal mask when
its ready.  This prevents a bug where a thread gets sent a signal before
even running any of its initialization code, which can cause problems
(particularly if the signal handler directly or indirectly uses TLS).

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

22 years agoInit the per-thread sigaltstacks properly. New threads should always
Jeremy Fitzhardinge [Tue, 16 Mar 2004 22:07:12 +0000 (22:07 +0000)] 
Init the per-thread sigaltstacks properly.  New threads should always
appear without a sigaltstack.

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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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