Tom Hughes
69ef21a629
Fix some inconsistent system call trace messages.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4251
2005-07-25 15:28:36 +00:00
Tom Hughes
03bc2deb25
Add support for the inotify system calls based on a patch
...
from John McCutchan <ttb@tentacle.dhs.org >.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4250
2005-07-25 15:21:41 +00:00
Julian Seward
1bafc58697
Get rid of --support-elan3=. This flag wasn't doing anything since
...
the Elan3 user-space driver now works on unmodified Valgrind.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4238
2005-07-24 07:15:44 +00:00
Julian Seward
5caa702a1f
Enable sys_poll.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4235
2005-07-24 06:30:37 +00:00
Julian Seward
ab00074929
Change some int uses to Int (the house types).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4229
2005-07-23 09:22:46 +00:00
Julian Seward
6789f6542e
A commit which is almost all trivial change.
...
- m_main: if --log-file-qualifier applies, do not add ".pid"
at the end of the name
- Fix the logic which detected whether the just-devised name
already existed. This was broken (by me) because it could not
distinguish the reasons for failing to open the logfile.
Doing this required changing the return type of VG_(open)
from Int to SysRes (to make failure reasons visible) and
that's the cause of most of the changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4228
2005-07-23 09:18:34 +00:00
Tom Hughes
a74aa1e74d
Yet more system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4227
2005-07-22 15:04:14 +00:00
Tom Hughes
f0fdce6382
Enable rt_sigpending on amd64. Fixes bug #109429 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4223
2005-07-21 20:23:26 +00:00
Tom Hughes
f67d1dc95e
Document different argument order for clone on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4217
2005-07-20 13:49:55 +00:00
Tom Hughes
5c41eefec8
The timeout argument to rt_sigtimedwait is in the third argument not
...
the fourth, plus linux allows it to be null.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4214
2005-07-20 09:32:35 +00:00
Tom Hughes
5e7b1d48c7
More system call fixups.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4213
2005-07-20 09:24:04 +00:00
Tom Hughes
87e835de1f
Yet more amd64 system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4212
2005-07-20 08:46:50 +00:00
Tom Hughes
6e11d22b74
Fix mistaken comments.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4202
2005-07-19 23:01:56 +00:00
Tom Hughes
dd1e9ed254
Pass clone arguments in the correct order when doing a fork style
...
clone. This should fix bug #109358 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4201
2005-07-19 22:59:47 +00:00
Tom Hughes
01962be11b
Enable sched_yield on amd64. Fixes bug #109362 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4200
2005-07-19 22:48:04 +00:00
Tom Hughes
d1d9783242
Return success when get_thread_area succeeds.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4199
2005-07-19 22:44:33 +00:00
Tom Hughes
a658d8c40f
Support ARCH_GET_FS with arch_prctl on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4197
2005-07-19 22:35:58 +00:00
Nicholas Nethercote
61448c507d
We have a nice little collection of text files describing various high
...
level things. But they're all over the place. This commits moves
them all to the new docs/internals/ directory, and gives them
a consistent naming scheme.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4196
2005-07-19 21:46:19 +00:00
Tom Hughes
0d957fbca0
Enable some more system calls on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4191
2005-07-19 16:05:49 +00:00
Tom Hughes
dc892caf68
Fix compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4190
2005-07-19 15:28:31 +00:00
Tom Hughes
24de900c15
Enable setuid and setgid on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4189
2005-07-19 15:26:33 +00:00
Tom Hughes
bd8021aa26
Fix the mmap2 pre-handler to avoid corrupting the arguments when
...
it fails with ENOMEM due to a lack of memory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4184
2005-07-19 13:04:04 +00:00
Tom Hughes
dea2bc96c6
Enable the rt_sigqueueinfo syscall on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4178
2005-07-19 07:21:06 +00:00
Tom Hughes
9a1ea2d7cc
Fix crash when no environment is given to execve.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4169
2005-07-18 23:23:03 +00:00
Tom Hughes
5914fa6a53
Check members of the stack_t structure passed to sigaltstack
...
individually to avoid problems with padding on 64 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4168
2005-07-18 23:18:10 +00:00
Tom Hughes
ada7c716a1
Check each member of the ifconf structure passed to SIOCGIFCONF
...
individually to avoid problems with padding bytes on 64 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4167
2005-07-18 22:45:55 +00:00
Tom Hughes
2b08b3a3b0
Check each field of the msghdr structure passed to sendmsg/recvmsg
...
individually to avoid complaints due to uninitialised padding bytes
on 64 bit platforms.
Also fixed sendmsg to check things which should be initialised (the
msghdr structure and the iov array) properly instead of doing a write
check for everything.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4166
2005-07-18 22:41:33 +00:00
Nicholas Nethercote
776cd36bb4
add comment
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4163
2005-07-18 14:10:12 +00:00
Tom Hughes
a85d532b0d
Take a copy of the environment given to execve before trying to mangle
...
it as it might be in read only memory. Fixes bug #101881 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4162
2005-07-18 14:02:11 +00:00
Tom Hughes
0fef787853
Handle the BLKGETSIZE64 ioctl. Fixes bug #104797 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4161
2005-07-18 13:26:55 +00:00
Tom Hughes
1426576c53
Preserve %esi across VG_(clone) as the caller may be relying on it
...
not being changed. Fix to bug #106713 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4160
2005-07-18 12:02:45 +00:00
Julian Seward
ce1682b2d8
Track API changes in vex r1272.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4159
2005-07-18 11:41:15 +00:00
Tom Hughes
83dfcfa3f9
Allow a NULL argument to the times system call. Fixes bug #103509 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4158
2005-07-18 11:03:35 +00:00
Julian Seward
cc206745a8
Get rid of endianness assumptions in the PRRAn macro, which is
...
important for doing checks of scalar syscall args.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4143
2005-07-10 00:55:26 +00:00
Julian Seward
f0a3bf7e08
Fix/reinstate a whole bunch of syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4136
2005-07-08 18:26:37 +00:00
Julian Seward
44d914f206
Enable a couple more syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4128
2005-07-08 00:18:25 +00:00
Tom Hughes
9fe595a2d3
Enable some more amd64 syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4111
2005-07-05 23:34:44 +00:00
Tom Hughes
fcf186b9c8
Sort out the mess that is pread64/pwrite64 properly. All three platforms
...
that we currently support use the same handlers in the kernel without any
platform specific wrappers.
The final argument is a 64 bit argument however, which means that it
requires two registers on x86 and ppc32 and only one on amd64. The
reason it works in the kernel is that x86 and ppc32 calling conventions
inside the kernel work out correctly and the values get joined together.
For our purposes we make x86 and ppc32 use the generic veneer with
five arguments and amd64 use a platform specific one with four...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4110
2005-07-05 23:25:17 +00:00
Nicholas Nethercote
fbf8653c8b
Removed the remnants of the attempt at an ARM port, because it had
...
bit-rotted badly and was clogging up the code.
I put the useful remnants in docs/porting-to-ARM in case anyone ever
wants to try porting to ARM again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4092
2005-07-02 23:13:59 +00:00
Nicholas Nethercote
d50a75cd1a
Fixed 'make dist'. In particular, all the arch/platform-specific files
...
get included in the distro now, not just the ones for the arch/platform
that the distro tarball is built on.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4085
2005-07-02 17:36:11 +00:00
Julian Seward
543c26c8cb
Try to make (client) clone() work for ppc32-linux. I don't know if I
...
was successful for real uses of clone, but fork-disguised-as-clone
appears to work now.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4082
2005-07-02 11:27:02 +00:00
Julian Seward
40bed2ce44
A few more syscalls for ppc32-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4081
2005-07-02 10:13:34 +00:00
Cerion Armour-Brown
2fe8821489
Reinstated a couple more syscalls
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4076
2005-07-01 22:06:55 +00:00
Julian Seward
56e6d3f332
Reinstate wrappers for epoll_{create,wait,ctl}.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4074
2005-07-01 08:39:38 +00:00
Nicholas Nethercote
4e8bcf9076
Move the last remaining tests out of corecheck.
...
Also introduced VG_(showing_core_errors)() to make core error display
more consistent.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4073
2005-07-01 04:15:36 +00:00
Nicholas Nethercote
7a4e062807
Avoid compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4064
2005-06-30 04:09:11 +00:00
Nicholas Nethercote
4560b81e33
Avoid magic numbers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4057
2005-06-30 00:16:02 +00:00
Nicholas Nethercote
b9bec5539d
Remove all the completely unused SF_* flags. I suspect some of the
...
remaining ones have no interesting effect, but I left them in.
Also simplify the signature for VG_(get_memory_from_mmap_for_client)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4045
2005-06-28 22:14:53 +00:00
Julian Seward
b0dc7633a7
Change scope from VG_ to ML_ various assembly symbols to do with doing
...
syscalls for the client.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4042
2005-06-28 19:04:51 +00:00
Nicholas Nethercote
88b532de40
Simplify atfork to only provide the functionality we need.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4032
2005-06-26 15:11:37 +00:00