]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoWhen cancelling a thread that is waiting on a condition variable we
Tom Hughes [Sun, 13 Jun 2004 12:07:53 +0000 (12:07 +0000)] 
When cancelling a thread that is waiting on a condition variable we
need to relock the associated mutex before running the cancellation
handlers.

This patch ensures that the mutex is reaquired in the above case and
also makes pthread_join and pthread_cond_wait act as cancellation points
as required by the POSIX threads standard.

Based on patch from Joseph Link <joelink@joelink.net>.

CCMAIL: 81297-done@bugs.kde.org

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

21 years agoAdd support for separate debug files, which are just separate ELF files
Tom Hughes [Sun, 13 Jun 2004 09:59:02 +0000 (09:59 +0000)] 
Add support for separate debug files, which are just separate ELF files
containing the relevant debug sections and located using the information
in the .gnu_debuglink section of the main file along with some search
rules and checksum logic borrowed from binutils/gdb.

CCMAIL: 82872-done@bugs.kde.org

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

21 years agoAdd a strrchr implementation.
Tom Hughes [Sun, 13 Jun 2004 09:55:22 +0000 (09:55 +0000)] 
Add a strrchr implementation.

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

21 years agoFixed the NPTL cleanup handler support to try and make sure it will
Tom Hughes [Sat, 12 Jun 2004 17:25:25 +0000 (17:25 +0000)] 
Fixed the NPTL cleanup handler support to try and make sure it will
compile on systems with NPTL header files.

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

21 years agoIt appears that NPTL uses a new system for dealing with cleanup
Tom Hughes [Sat, 12 Jun 2004 12:58:22 +0000 (12:58 +0000)] 
It appears that NPTL uses a new system for dealing with cleanup
handlers when a thread is cancelled which has the side effect that
programs linked with librt fail on Fedora Core 2 due to librt having
been built against the NPTL header instead of the old pthread headers.

This change extends valgrind's libpthread.so to handle both the old
and new style cleanup handlers in a similar way to NPTL and seems to
be sufficient to get programs linked with librt working again.

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

21 years agoThere is no __accept in any libc or libpthread that I can find so
Tom Hughes [Fri, 4 Jun 2004 21:42:18 +0000 (21:42 +0000)] 
There is no __accept in any libc or libpthread that I can find so
it isn't clear why we were intercepting that and only aliasing accept
to it. Switched to intercepting accept directly instead.

CCMAIL: 76869-done@bugs.kde.org

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

21 years agoAdd an extra suppression for Fedora Core 2/glibc 2.3.3 systems.
Tom Hughes [Thu, 3 Jun 2004 18:42:34 +0000 (18:42 +0000)] 
Add an extra suppression for Fedora Core 2/glibc 2.3.3 systems.

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

21 years agoChanged cancellation wrappers to use dlsym(RTLD_NEXT) to look up the
Tom Hughes [Thu, 3 Jun 2004 18:00:58 +0000 (18:00 +0000)] 
Changed cancellation wrappers to use dlsym(RTLD_NEXT) to look up the
libc version of the wrapped function when forwarding the call rather
than trying to call the internal __libc_xxx version of the routine
as many of those are marked as GLIBC_PRIVATE in recent releases.

CCMAIL: 82026-done@bugs.kde.org

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

21 years agoOops - fix up broken assert.
Jeremy Fitzhardinge [Thu, 3 Jun 2004 17:12:07 +0000 (17:12 +0000)] 
Oops - fix up broken assert.

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

21 years agoPartial fix for bug 76869. This fixes the problem with returning from
Jeremy Fitzhardinge [Thu, 3 Jun 2004 10:00:42 +0000 (10:00 +0000)] 
Partial fix for bug 76869.  This fixes the problem with returning from
a signal handler when VDSOs are turned off in FC2.  Note that we don't
(yet) support VDSOs being on (use "echo 0 > /proc/sys/kernel/vdso").

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

21 years agoFix wishlist item 82098, thanks to Ralf Wildenhues:
Nicholas Nethercote [Wed, 2 Jun 2004 20:43:24 +0000 (20:43 +0000)] 
Fix wishlist item 82098, thanks to Ralf Wildenhues:

  ANSIfication of the hp2ps code. The most important changes are the correct
  use of the stdarg mechanism (former hacks could bite on other systems, so
  please tell upstream), inclusion of stdlib.h instead of declaring free
  yourself, adding a few missed PROTO()s and using size_t for xmalloc and
  xrealloc.:

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

21 years agoAdded "repne movs", not official but seems to occur. Also restructured the
Nicholas Nethercote [Wed, 2 Jun 2004 14:48:16 +0000 (14:48 +0000)] 
Added "repne movs", not official but seems to occur.  Also restructured the
rep/repe/repne cases to use a switch instead of if/else, as it's cleaner.

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

21 years agoFix patch from this morning -- missing commas, erk
Nicholas Nethercote [Tue, 11 May 2004 16:37:17 +0000 (16:37 +0000)] 
Fix patch from this morning -- missing commas, erk

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

21 years agoTeach Massif about the 'nothrow' versions of new and new[].
Nicholas Nethercote [Tue, 11 May 2004 09:21:08 +0000 (09:21 +0000)] 
Teach Massif about the 'nothrow' versions of new and new[].

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

21 years agoUpdate copyright
Nicholas Nethercote [Tue, 11 May 2004 09:17:49 +0000 (09:17 +0000)] 
Update copyright

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

21 years agoFix for bug #80942.
Nicholas Nethercote [Wed, 5 May 2004 10:46:22 +0000 (10:46 +0000)] 
Fix for bug #80942.

Addrcheck wasn't doing overlap checking as it should.  This is because
mac_replace_strmem.o was being linked with vgskin_addrcheck.so instead of
vgpreload_addrcheck.so.  I fixed the Makefile, and also moved
_VG_USERREQ__MEMCHECK_GET_RECORD_OVERLAP so Addrcheck could see it.  And I
added the 'overlap' test (from memcheck/tests/) to Addrcheck's regression
suite.

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

21 years agoFix comment
Nicholas Nethercote [Tue, 4 May 2004 11:25:34 +0000 (11:25 +0000)] 
Fix comment

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

21 years agoSuppressions for Fedora Core 2.
Robert Walsh [Thu, 29 Apr 2004 08:50:44 +0000 (08:50 +0000)] 
Suppressions for Fedora Core 2.

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

21 years agoImplement syscall 258, for those of use running Fedora Core 2.
Robert Walsh [Thu, 29 Apr 2004 08:40:50 +0000 (08:40 +0000)] 
Implement syscall 258, for those of use running Fedora Core 2.

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

21 years agoFix for bug 79355: fix up bogus assertion that was failing when
Nicholas Nethercote [Tue, 27 Apr 2004 09:51:51 +0000 (09:51 +0000)] 
Fix for bug 79355:  fix up bogus assertion that was failing when
stack_snapshot() returned 0xffffffff as one of its eip values.

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

21 years agoAdd missing SSE case for Memcheck's instrumentation (sigh).
Nicholas Nethercote [Mon, 26 Apr 2004 13:06:16 +0000 (13:06 +0000)] 
Add missing SSE case for Memcheck's instrumentation (sigh).

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

21 years agoTighten MOV's sanity checking slightly
Nicholas Nethercote [Mon, 26 Apr 2004 09:21:25 +0000 (09:21 +0000)] 
Tighten MOV's sanity checking slightly

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

21 years agoSplit some combined error messages, so they are more informative. Also return
Nicholas Nethercote [Mon, 26 Apr 2004 08:05:24 +0000 (08:05 +0000)] 
Split some combined error messages, so they are more informative.  Also return
EPERM where appropriate, instead of EINVAL.

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

21 years agoFix supps for Valgrind's own libpthread leak.
Nicholas Nethercote [Sun, 25 Apr 2004 12:02:31 +0000 (12:02 +0000)] 
Fix supps for Valgrind's own libpthread leak.

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

21 years agoFix bug in helper_{IN,OUT} -- they weren't preserving %eflags as they should.
Nicholas Nethercote [Thu, 22 Apr 2004 18:47:07 +0000 (18:47 +0000)] 
Fix bug in helper_{IN,OUT} -- they weren't preserving %eflags as they should.

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

21 years agoCope with AT_xCACHEBSIZE not being defined, which they aren't on systems
Tom Hughes [Thu, 22 Apr 2004 18:12:31 +0000 (18:12 +0000)] 
Cope with AT_xCACHEBSIZE not being defined, which they aren't on systems
with 2.2 kernels and, it seems, on some systems with 2.4 kernels.

CCMAIL: 79179-done@bugs.kde.org

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

21 years agoSETV and TESTV never have an ArchReg as their first argument.
Nicholas Nethercote [Thu, 22 Apr 2004 12:58:05 +0000 (12:58 +0000)] 
SETV and TESTV never have an ArchReg as their first argument.

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

21 years agoMake support for the FBIOGET ioctls conditional on linux/fb.h being
Tom Hughes [Thu, 22 Apr 2004 07:28:43 +0000 (07:28 +0000)] 
Make support for the FBIOGET ioctls conditional on linux/fb.h being
present at compile time.

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

21 years agoAdd support for the FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO ioctls
Tom Hughes [Wed, 21 Apr 2004 15:52:33 +0000 (15:52 +0000)] 
Add support for the FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO ioctls
based on a patch from Paul Olav Tvete <paul@trolltech.com>.

CCMAIL: 77022-done@bugs.kde.org

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

21 years agoChange the debugger attachment code to send the STOP signal to the
Tom Hughes [Wed, 21 Apr 2004 15:39:57 +0000 (15:39 +0000)] 
Change the debugger attachment code to send the STOP signal to the
forked process before using ptrace() to continue it, instead of asking
ptrace to deliver it, as that doesn't seem to work on some versions
of linux.

CCMAIL: 77824-done@bugs.kde.org

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

21 years agoInitialise %cs, %ds and %ss in the virtual machine to match the values
Tom Hughes [Wed, 21 Apr 2004 15:16:43 +0000 (15:16 +0000)] 
Initialise %cs, %ds and %ss in the virtual machine to match the values
supplied by the operating system for the code, data and stack segments.

Explicit references using these segments still won't work but they
will at least produce an assertion to indicate that they aren't
supported instead of raising a segmentation fault in the target
program because of an apparent privilege violation.

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

21 years agofix typo
Nicholas Nethercote [Wed, 21 Apr 2004 09:17:19 +0000 (09:17 +0000)] 
fix typo

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

21 years agoUpdate for compulsory --tool
Nicholas Nethercote [Wed, 21 Apr 2004 07:22:50 +0000 (07:22 +0000)] 
Update for compulsory --tool

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

21 years agoAddrcheck wasn't instrumenting MMX2a1_MemRd... whoops. Man, those instructions
Nicholas Nethercote [Tue, 20 Apr 2004 10:07:44 +0000 (10:07 +0000)] 
Addrcheck wasn't instrumenting MMX2a1_MemRd... whoops.  Man, those instructions
are a mess.

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

21 years agoWhen printing code and an insane instruction is encountered, ugly-print (giving
Nicholas Nethercote [Sun, 18 Apr 2004 15:20:43 +0000 (15:20 +0000)] 
When printing code and an insane instruction is encountered, ugly-print (giving
full details) it as well as pretty-printing it.

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

21 years agoIntroduce uWiden, similar to uCCall, uCond, etc.
Nicholas Nethercote [Sun, 18 Apr 2004 12:23:02 +0000 (12:23 +0000)] 
Introduce uWiden, similar to uCCall, uCond, etc.

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

21 years agoWith -v, print out contents of /proc/version at startup.
Nicholas Nethercote [Sun, 18 Apr 2004 12:08:46 +0000 (12:08 +0000)] 
With -v, print out contents of /proc/version at startup.

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

21 years agoAdd a "delete:" line to the regression test .vgtest files, to clean up any file
Nicholas Nethercote [Sat, 17 Apr 2004 17:25:08 +0000 (17:25 +0000)] 
Add a "delete:" line to the regression test .vgtest files, to clean up any file
created by the test.  Added appropriate lines to the Cachegrind and Massif
tests.  Should prevent large numbers of files clogging up directories.

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

21 years agoFix bug 73655.
Robert Walsh [Fri, 16 Apr 2004 23:02:29 +0000 (23:02 +0000)] 
Fix bug 73655.

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

21 years agoAdded comment clarifying RDTSC.
Nicholas Nethercote [Fri, 16 Apr 2004 22:21:18 +0000 (22:21 +0000)] 
Added comment clarifying RDTSC.

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

21 years agoIncrease sanity checking on .extra4b field for WIDEN, rename a sanity macro,
Nicholas Nethercote [Fri, 16 Apr 2004 16:16:34 +0000 (16:16 +0000)] 
Increase sanity checking on .extra4b field for WIDEN, rename a sanity macro,
add some missing #undefs for some sanity macros.

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

21 years agoPretty-print WIDENs properly.
Nicholas Nethercote [Fri, 16 Apr 2004 15:39:22 +0000 (15:39 +0000)] 
Pretty-print WIDENs properly.

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

21 years agoImproved pretty-printing:
Nicholas Nethercote [Fri, 16 Apr 2004 11:33:53 +0000 (11:33 +0000)] 
Improved pretty-printing:
 - now showing conditions for CC2VAL and CMOV
 - fixed indenting on JumpKind (-c, -r, -sys, etc)

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

21 years agoFix assertion failure msg.
Nicholas Nethercote [Fri, 16 Apr 2004 08:04:28 +0000 (08:04 +0000)] 
Fix assertion failure msg.

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

21 years agoFix typo, and update bug-reporting procedure.
Nicholas Nethercote [Fri, 16 Apr 2004 07:25:32 +0000 (07:25 +0000)] 
Fix typo, and update bug-reporting procedure.

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

21 years agoMake that damn 'inherit' test stop failing, even if Helgrind isn't doing the
Nicholas Nethercote [Fri, 16 Apr 2004 07:22:42 +0000 (07:22 +0000)] 
Make that damn 'inherit' test stop failing, even if Helgrind isn't doing the
right thing.

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

21 years agoQuiet an overly noisy message.
Jeremy Fitzhardinge [Wed, 14 Apr 2004 07:22:00 +0000 (07:22 +0000)] 
Quiet an overly noisy message.

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

21 years agoFix for bug 77869. Names in stabs are terminated by ':'. Except templated
Jeremy Fitzhardinge [Wed, 14 Apr 2004 07:19:20 +0000 (07:19 +0000)] 
Fix for bug 77869.  Names in stabs are terminated by ':'.  Except templated
names, which can have :: within <> quotes.  Except when it's an operator,
which can have a name like operator<, followed by ::.

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

21 years agoFix new override test.
Robert Walsh [Tue, 13 Apr 2004 19:11:27 +0000 (19:11 +0000)] 
Fix new override test.

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

21 years agoUpdate test for recent "recently" fix.
Robert Walsh [Tue, 13 Apr 2004 19:08:34 +0000 (19:08 +0000)] 
Update test for recent "recently" fix.

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

21 years agoSuppressions of jump errors were broken, because the size was zero and
Nicholas Nethercote [Tue, 13 Apr 2004 08:47:35 +0000 (08:47 +0000)] 
Suppressions of jump errors were broken, because the size was zero and
so caused an assertion failure.  So set size == 1 -- it's only used for
suppressions.

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

21 years agoChanged error message from:
Nicholas Nethercote [Tue, 13 Apr 2004 08:36:35 +0000 (08:36 +0000)] 
Changed error message from:

  Address 0x%x is not stack'd, malloc'd or free'd

to

  Address 0x%x is not stack'd, malloc'd or (recently) free'd

This makes things clearer in some circumstances, particularly when bogusly
accessing heap memory that has been freed, but Memcheck is no longer tracking.

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

21 years agoRemove illegal '-' in @VERSION@.
Nicholas Nethercote [Mon, 12 Apr 2004 09:09:29 +0000 (09:09 +0000)] 
Remove illegal '-' in @VERSION@.

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

21 years agoRemove "pre-history" handling for mutexes -- now that Valgrind has full control
Nicholas Nethercote [Sat, 10 Apr 2004 00:54:42 +0000 (00:54 +0000)] 
Remove "pre-history" handling for mutexes -- now that Valgrind has full control
from the very beginning (thanks to FV) it's no longer necessary.

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

21 years agoAdded 2nd expected stderr output for trivialleak; often one of the 1000 blocks
Nicholas Nethercote [Sat, 10 Apr 2004 00:53:45 +0000 (00:53 +0000)] 
Added 2nd expected stderr output for trivialleak;  often one of the 1000 blocks
by chance retains a pointer.

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

21 years agoUpdate for having added Massif.
Nicholas Nethercote [Sat, 10 Apr 2004 00:36:25 +0000 (00:36 +0000)] 
Update for having added Massif.

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

21 years agoRevamped. Split into sections, added stuff about the name "Valgrind" (where it
Nicholas Nethercote [Sat, 10 Apr 2004 00:29:58 +0000 (00:29 +0000)] 
Revamped.  Split into sections, added stuff about the name "Valgrind" (where it
comes from, pronunciation), removed some obsolete questions, added some new
ones.

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

21 years agoAdded acct() syscall.
Nicholas Nethercote [Sat, 10 Apr 2004 00:26:10 +0000 (00:26 +0000)] 
Added acct() syscall.

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

21 years agoFix bug in hp2ps that caused the title to have negative numbers in it. Thanks
Nicholas Nethercote [Fri, 2 Apr 2004 13:08:40 +0000 (13:08 +0000)] 
Fix bug in hp2ps that caused the title to have negative numbers in it.  Thanks
to Ralf.Wildenhues@gmx.de.

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

21 years agoRemoved unused function.
Nicholas Nethercote [Thu, 1 Apr 2004 15:26:23 +0000 (15:26 +0000)] 
Removed unused function.

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

21 years agoAdded more floating point instruction tests.
Tom Hughes [Wed, 31 Mar 2004 22:47:52 +0000 (22:47 +0000)] 
Added more floating point instruction tests.

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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

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