Nicholas Nethercote
84f99902f0
Reinstate -h option, which disappeared at some point.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2420
2004-06-16 11:56:29 +00:00
Nicholas Nethercote
63c632f5f3
Removed documentation references to the 'ioctl-VTIME' and 'truncate-writes'
...
weird hacks, which no longer exist thanks to the proxy lwp stuff.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2419
2004-06-16 11:51:08 +00:00
Nicholas Nethercote
9ce21c9e69
Fixed up various command line option scenarios:
...
- If no tool is specified, V now gives a short message and a list of
available tools. This was meant to happen previously, but a bug prevented
it from working properly; it gave the usage message instead.
- If a bad option is given, V now gives a short message rather than the full
--help. This make V consistent with all other programs I looked at.
- Now returning 0 when you do 'valgrind --help' and 'valgrind --version'
as other programs do.
- Removed VG_(startup_logging)() and VG_(shutdown_logging)() as they were
empty and have been for a long time (always?).
- Added various tests for these scenarios. Had to change the regtest
script slightly to allow for malformed command lines.
This addresses bug (wishlist) #82999 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2418
2004-06-15 10:54:40 +00:00
Tom Hughes
05f8bea376
Don't bother trying to test semtimedop if it isn't available.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2416
2004-06-14 17:27:41 +00:00
Tom Hughes
d5fcc39f7d
Include config.h so that the test for semtimedop works.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2415
2004-06-14 13:15:40 +00:00
Tom Hughes
d9d4e91c04
Fixed the sem test to work on systems with semtimedop.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2414
2004-06-14 12:33:43 +00:00
Tom Hughes
05369f9e57
Add support for the semtimedop system call.
...
Based on patch from Peter Knaggs <sedragdnuon@yahoo.com>.
CCMAIL: 79714-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2410
2004-06-13 14:23:00 +00:00
Tom Hughes
91e78b3482
Added more floating point instruction tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2347
2004-03-31 22:47:52 +00:00
Tom Hughes
3330a9f65b
Added more floating point instruction tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2343
2004-03-28 10:33:51 +00:00
Tom Hughes
20a1255b42
Fix typo that broke tests which compared the contents of eflags.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2342
2004-03-28 08:43:35 +00:00
Tom Hughes
e556867885
Ignore generated files from insn_fpu test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2341
2004-03-28 00:31:30 +00:00
Tom Hughes
2f1fb3e5f9
Added tests for floating point multiple and divide instructions.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2340
2004-03-28 00:30:57 +00:00
Tom Hughes
cd101bf7b2
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
2004-03-27 18:02:37 +00:00
Tom Hughes
6b76249c5c
Added some extra .cvsignore entries.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2337
2004-03-23 19:52:03 +00:00
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
Nicholas Nethercote
07b8e3438b
Updated copyright dates for 2004. Also added a couple of missing headers and
...
footers to some new files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2177
2004-01-04 16:43:23 +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