Nicholas Nethercote
a32b040099
Update .cvsignore for recently added regression tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2642
2004-09-01 23:34:37 +00:00
Tom Hughes
3314d48b5c
Add support for a --time-stamp option that causes each message output
...
by valgrind to include a time stamp. This fixes bug #70587 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2594
2004-08-21 11:10:44 +00:00
Tom Hughes
546afbe696
Add support for the POSIX message queue system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2585
2004-08-14 18:52:27 +00:00
Tom Hughes
1afbb3fc45
Modified the fcntl system call so that only those reason codes which
...
can block (ie F_SETLKW) are treated as blocking.
This resolves the F_SETOWN problem described in bug #85969 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2535
2004-07-29 21:20:11 +00:00
Tom Hughes
8582802cb3
Add instruction tests for the LFENCE/MFENCE/SFENCE instructions.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2523
2004-07-25 15:18:21 +00:00
Tom Hughes
3a75fc74df
Fix checking of execve() when argv is a null pointer.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2520
2004-07-21 16:23:38 +00:00
Nicholas Nethercote
755111b88d
Slightly change, with J's approval, startup copyright messages to better
...
reflect reality.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2489
2004-07-16 17:44:00 +00:00
Nicholas Nethercote
e88865054f
Minor Makefile.am fix (doesn't actually change behaviour, because automake's
...
default rules meant 'execve' was being built anyway... but the fix at least
avoids confusion).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2464
2004-07-10 16:11:00 +00:00
Tom Hughes
857d0841bb
Fixed typo in makefile.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2448
2004-06-28 21:37:58 +00:00
Tom Hughes
f9a0e004f5
Implement an emulated soft limit for file descriptors in addition to
...
the current reserved area, which effectively acts as a hard limit. The
setrlimit system call now simply updates the emulated limits as best
as possible - the hard limit is not allowed to move at all and just
returns EPERM if you try and change it.
This should stop reductions in the soft limit causing assertions when
valgrind tries to allocate descriptors from the reserved area.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2440
2004-06-26 11:27:52 +00:00
Nicholas Nethercote
58ae9c9722
Update .cvsignore files
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2434
2004-06-22 14:01:40 +00:00
Nicholas Nethercote
2b499cb838
Streamlined --help message a bit.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2430
2004-06-21 13:27:11 +00:00
Nicholas Nethercote
2fab200ad0
Renamed the following options:
...
--logfile-fd --> --log-fd
--logfile --> --log-file
--logsocket --> --log-socket
to be consistent with each other and other options (esp. --input-fd). Also
renamed some related variables. The old names still work, for backwards
compatibility, but they're not documented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2429
2004-06-21 12:42:35 +00:00
Tom Hughes
827e3bebb6
Don't try and validate the contents of the environment passed to
...
the execve system call if the envp pointer is null as it causes
valgrind to die with a segmentation fault.
CCMAIL: 83573-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2427
2004-06-19 13:02:34 +00:00
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