Commit Graph

67 Commits

Author SHA1 Message Date
Tom Hughes
67bb2b010d 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
2004-03-23 19:48:54 +00:00
Jeremy Fitzhardinge
3ee834af04 Add susphello test, which has turned up a number of interesting bugs
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2333
2004-03-17 18:20:46 +00:00
Tom Hughes
34c0bbafdd Ignore valgrind core files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2329
2004-03-16 11:05:16 +00:00
Tom Hughes
fdeb943505 Added badseg to the list of things to ignore.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2328
2004-03-16 11:04:03 +00:00
Tom Hughes
4ab4db0743 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
2004-03-16 11:03:09 +00:00
Tom Hughes
c58501088e Fixed compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2326
2004-03-16 10:51:40 +00:00
Tom Hughes
0615a8eae6 Added the new badseg test to the list of things to build.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2325
2004-03-16 10:51:29 +00:00
Jeremy Fitzhardinge
cae906da57 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
2004-03-16 09:49:08 +00:00
Tom Hughes
328e766d09 Fix compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2317
2004-03-15 12:58:55 +00:00
Jeremy Fitzhardinge
82aaa16ef9 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
2004-03-12 10:51:39 +00:00
Tom Hughes
56a515fc49 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
2004-03-06 12:53:24 +00:00
Tom Hughes
67f9196d17 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
2004-03-04 23:36:58 +00:00
Dirk Mueller
42b3333516 patch by Tom Hughes to make it work with gcc 2.96
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2264
2004-02-23 22:09:54 +00:00
Nicholas Nethercote
39c1f4e7fc Update and add various .cvsignore files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2260
2004-02-22 19:34:55 +00:00
Dirk Mueller
d03de4f1f0 sigh
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2256
2004-02-21 04:27:49 +00:00
Dirk Mueller
c87d4957a6 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
2004-02-20 14:45:52 +00:00
Nicholas Nethercote
3b2f2b7d57 Fix so that new versions of system (using clone()) work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2253
2004-02-15 16:15:05 +00:00
Nicholas Nethercote
1e90b8cb29 whoops
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2252
2004-02-15 16:12:35 +00:00
Nicholas Nethercote
500de31850 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
2004-02-15 15:32:51 +00:00
Nicholas Nethercote
0d8965fded Remove compile warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2248
2004-02-14 16:53:53 +00:00
Nicholas Nethercote
9e07c6d746 Add files I forgot to when I committed Tom Hughes' patch for bug 73907.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2243
2004-02-12 08:35:57 +00:00
Nicholas Nethercote
4c8ecb23c3 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
2004-02-11 23:33:29 +00:00
Jeremy Fitzhardinge
75d6dc8434 This change implements the TLS extension to the x86 ABI. This allows
threads to have thread-private data which is quickly accessible via a
segment in the GDT, stored in %gs.  The patch implements the relevent
syscalls (setthreadarea), and also manages switching the VCPU's segment
information at thread context-switch time.  Mostly Tom Hughes' work.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2215
2004-01-21 01:27:27 +00:00
Jeremy Fitzhardinge
08f94858b4 Hasn't this been added already?
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2213
2004-01-21 01:20:38 +00:00
Nicholas Nethercote
a49958845e Adding files from Tom Hughes' SSE-completion patch, which I forgot yesterday.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2209
2004-01-20 09:24:53 +00:00
Jeremy Fitzhardinge
a327fbfd59 Reduce the pounding.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2206
2004-01-19 21:47:52 +00:00
Nicholas Nethercote
5630025b84 Patch from Tom Hughes, for bug 72643:
Patch to improve SSE/SS2 support

  This patch should implement most of the missing SSE/SSE2 opcodes. About
  the only ones it doesn't do are the MASKMOVxxx ones as they are quite
  horrible and involved an implicit reference to EDI so I need to think
  about them a bit more.

  The patch also includes a set of tests for the MMX/SSE/SSE2 opcodes to
  validate that they have the same effect under valgrind as they do when
  run normally. In one or two cases this wasn't actually the case even
  for some of the implemented opcodes, so I fixed those as well ;-)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2202
2004-01-19 19:14:18 +00:00
Jeremy Fitzhardinge
7dbc0eafaf Oops, add missing file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2200
2004-01-16 05:37:46 +00:00
Jeremy Fitzhardinge
d9ce743c50 Add other .exp file for exec-sigmask.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2199
2004-01-16 02:19:15 +00:00
Jeremy Fitzhardinge
7def6b371b Fix bug 72484. Set the process signal mask to match the client's before
running exec.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2198
2004-01-16 02:17:30 +00:00
Jeremy Fitzhardinge
aab639348b Fix bug 72650. Only restart syscalls on signal if the client asked for it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2197
2004-01-16 02:15:23 +00:00
Jeremy Fitzhardinge
437a6939cc Make fork test deterministic.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2190
2004-01-06 21:46:02 +00:00
Dirk Mueller
c8bff3b75e CVS_SILENT ignore
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2173
2004-01-03 15:22:09 +00:00
Dirk Mueller
811fc0511c make it compile on FreeBSD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2169
2004-01-03 14:24:42 +00:00
Jeremy Fitzhardinge
e468324c92 Fixed munmap bug - split_segment wasn't updating the lengths properly.
Turn off debug printing.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2144
2003-12-22 10:58:06 +00:00
Jeremy Fitzhardinge
88892fd58d Re-add proper support for mremap(). Also, fix a bug in munmap().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2142
2003-12-22 08:48:50 +00:00
Jeremy Fitzhardinge
4623bc042c mmap/munmap exerciser test
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2134
2003-12-19 21:56:04 +00:00
Jeremy Fitzhardinge
72bfb346c0 Sigh. Add the test files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2130
2003-12-18 09:08:51 +00:00
Jeremy Fitzhardinge
863238a720 Make rep; nop (pause) yield the thread. Based on a patch by Tom Hughes;
I added a test case and cleaned up vg_dispatch.S while I was about it.
CCMAIL: 69529-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2129
2003-12-18 09:06:09 +00:00
Jeremy Fitzhardinge
918c3a7b7e This jumbo-checkin is the Full Virtualization checkin. This eliminates
Valgrind's dependency on the dynamic linker for getting started, and
instead takes things into its own hands.

This checkin doesn't add much in the way of new functionality, but it
is the basis for all future work on Valgrind.  It allows us much more
flexibility in implementation, and well as increasing the reliability
of Valgrind by protecting it more from its clients.

This patch requires some changes to tools to update them to the changes
in the tool API, but they are straightforward.  See the posting "Heads
up: Full Virtualization" on valgrind-developers for a more complete
description of this change and its effects on you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2118
2003-12-16 02:05:15 +00:00
Nicholas Nethercote
c4d186f121 Removed no-longer-needed declarations of __SOME_SKIN_H.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2025
2003-11-13 23:02:16 +00:00
Jeremy Fitzhardinge
32c9b08d6e We expect new output with the syscalls changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1924
2003-10-14 21:11:29 +00:00
Nicholas Nethercote
136c7fba2c Fixed cpuid regtest, which was broken by the switch to using the machine's real
CPUID.

Also added filters to Makefiles where missing;  "make regtest" was broken
within distributions created using "make dist", now fixed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1709
2003-06-29 10:12:58 +00:00
Nicholas Nethercote
83ef1ca2ed Some Makefile.am changes. Lots of them affected:
- changed deprecated INCLUDES variable to AM_CPPFLAGS

- moved the -DVG_LIBDIR definition from AM_CFLAGS into AM_CPPFLAGS

- generally neatened them up a bit -- removed old commented out stuff, fixed a
  couple of other minor things

Everything works for me, hopefully it won't break things for anyone else...


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1680
2003-06-12 14:13:05 +00:00
Dirk Mueller
02b63b3ba8 reapply automake fixes. make check will now generate the binaries which
are only required for regression testing.

If this breaks something, please mail me first instead of reverting.
Thank you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1530
2003-04-17 17:00:43 +00:00
Nicholas Nethercote
ac7027c441 Updated copyright notices for 2003. Only 4 months late.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1526
2003-04-15 14:58:06 +00:00
Nicholas Nethercote
230a216353 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1523
2003-04-08 12:06:51 +00:00
Nicholas Nethercote
b304e50952 Added regression test from Dominic Mazzoni for FPU lazy eflags update bug that
was fixed in coregrind/vg_from_ucode.c v1.42.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1520
2003-04-08 10:04:32 +00:00
Nicholas Nethercote
0756a50bc3 Removed support for the 1.0.X series from the regression test suite -- this
was present from before the core/skin split, which is now dead.  Means the
script is slightly simpler, and we can dispense with lots of expected
foo.stderr.hd files.

Also undid accidental change to required Automake version in main Makefile.am
from my last commit, whoops.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1518
2003-04-08 00:47:05 +00:00
Dirk Mueller
df6442ae1d fix this test for me. You can't rely on having exactly 3 nameservers
configured in your system, can you?


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1494
2003-04-03 00:50:21 +00:00