Commit Graph

126 Commits

Author SHA1 Message Date
Nicholas Nethercote
00a4e0b162 Enable sys_iopl on AMD64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4826
2005-09-30 01:05:53 +00:00
Julian Seward
9d61e685ef Oh Arse. This'll teach me to edit the x86-specific sources on a ppc32
box.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4825
2005-09-30 00:49:01 +00:00
Julian Seward
98e527a62c A corresponding fix to 4823: don't deal with MAP_FIXED case directly
here; instead uniformly pass all requests to VG_(am_get_advisory), so
that layout policy is controlled from one place only.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4824
2005-09-30 00:45:47 +00:00
Julian Seward
1f46368c98 Changes to sys_mmap2 wrapper:
- update comment re offset scaling

- ppc32 offset is in bytes, not pages

- don't deal with MAP_FIXED case directly here; instead uniformly pass
  all requests to VG_(am_get_advisory), so that layout policy is controlled
  from one place only.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4823
2005-09-30 00:37:04 +00:00
Nicholas Nethercote
d0b346939c Future-proof a piece of conditional compilation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4822
2005-09-30 00:06:09 +00:00
Tom Hughes
734ffbfb60 On x86 and ppc32 the offset argument to mmap2 is specified in pages
not bytes. This is a horrible kludge of a fix and it should probably
be fixed properly with a separate sys_mmap for amd64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4821
2005-09-29 23:26:06 +00:00
Julian Seward
e0a5f54cf9 Make ppc32-linux build again following aspacem merge. Doesn't work, though:
programs crash before reaching main.  I don't know why.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4819
2005-09-29 11:09:56 +00:00
Julian Seward
002bc6c7e7 Comment-only changes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4818
2005-09-29 10:24:17 +00:00
Julian Seward
e2f8cc1393 Fix subtle bug in ML_(generic_POST_sys_shmdt) caused by new aspacem.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4814
2005-09-28 20:05:31 +00:00
Julian Seward
b98ac01c9f Get rid of pub_core_main.h, so that m_main is not imported by anyone,
and so is not part of a module cycle.  This requires a moderately
grotty hack of passing a continuation-function pointer in a global
variable.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4806
2005-09-28 10:47:38 +00:00
Julian Seward
6dadd73562 Unbreak build on amd64 following aspacem merge.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4792
2005-09-27 19:57:35 +00:00
Julian Seward
cc8ccbbfb4 This commit merges in changes from branches/ASPACEM (specifically,
changes from r4341 through r4787 inclusive).  That branch is now dead.
Please do not commit anything else to it.

For the most part the merge was not troublesome.  The main areas of
uncertainty are:

- build system: I had to import by hand Makefile.core-AM_CPPFLAGS.am
  and include it in a couple of places.  Building etc seems to still
  work, but I haven't tried building the documentation.

- syscall wrappers: Following analysis by Greg & Nick, a whole lot of
  stuff was moved from -generic to -linux after the branch was created.
  I think that is satisfactorily glued back together now.

- Regtests: although this appears to work, no .out files appear, which
  is strange, and makes it hard to diagnose regtest failures.  In
  particular memcheck/tests/x86/scalar.stderr.exp remains in a 
  conflicted state.

- amd64 is broken (slightly), and ppc32 will be unbuildable.  I'll
  attend to the former shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4789
2005-09-27 19:20:21 +00:00
Nicholas Nethercote
a00ea1b94b fix for #113230
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4751
2005-09-24 19:42:41 +00:00
Julian Seward
010862f024 Unbreak ppc32 build.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4608
2005-09-06 08:43:15 +00:00
Nicholas Nethercote
ebb0bb7a05 Unbreak amd64 and ppc32 some more.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4607
2005-09-01 16:27:28 +00:00
Nicholas Nethercote
38e6ac5ae8 Fix AMD64 breakage and possibly the PPC32 breakage, too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4606
2005-09-01 03:35:40 +00:00
Nicholas Nethercote
1394091f86 Moved sys_mmap2 wrapper from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4595
2005-08-31 03:00:40 +00:00
Nicholas Nethercote
c198b967b3 Moved some more syscall wrappers from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4594
2005-08-31 02:44:31 +00:00
Tom Hughes
4c19c1fef0 Quote some more CC expansions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4592
2005-08-30 21:07:23 +00:00
Nicholas Nethercote
b951ee0662 unbreak ppc32, I hope
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4584
2005-08-30 03:02:00 +00:00
Nicholas Nethercote
b706da9aa9 Group Linux-specific syscalls a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4581
2005-08-30 02:45:44 +00:00
Nicholas Nethercote
b79e7281d4 Moved sched_* from "generic" to "linux"; Darwin doesn't have them.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4576
2005-08-30 02:17:23 +00:00
Nicholas Nethercote
40eb28bec1 Move *xattr from "generic" to "linux". Darwin has them, but with an extra
parameter.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4575
2005-08-30 01:53:54 +00:00
Julian Seward
42b4516a9d Pass $(CC) to the vex Makefile.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4559
2005-08-29 12:11:06 +00:00
Tom Hughes
cf8c1b047f Handle the SCTP_GET_LOCAL_ADDRS and SCTP_GET_PEER_ADDRS getsockopt
calls correctly. Fix to bug #111231.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4549
2005-08-28 10:16:29 +00:00
Nicholas Nethercote
63df7df1c8 Give file a better name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4546
2005-08-28 04:48:12 +00:00
Nicholas Nethercote
ccad5e3600 Change slightly the way integers are printed by printf() and friends.
Previously, %d printed a 32-bit int.  %ld and %lld printed 64-bit ints.
So if you wanted to print a word-sized int (eg. a SizeT variable), you
had to cast it to a Long and then print with %lld in order to work on
both 32-bit and 64-bit platforms.

I changed things so that %d prints a 32-bit int, %ld prints a word-sized
int, and %lld prints a 64-bit int.  There are two advantages to this:
- it now matches the way the normal glibc printf() works;
- you can print word-sized ints without casting.

I also made the corresponding change for %u/lu/llu and %x/lx/llx, and I
changed a couple of VG_(printf)() invocations accordingly.





git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4527
2005-08-26 19:42:27 +00:00
Nicholas Nethercote
45fc4050f8 Move *chown16 syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4523
2005-08-26 04:36:10 +00:00
Nicholas Nethercote
1d0665b897 whoops
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4522
2005-08-26 04:30:34 +00:00
Nicholas Nethercote
1fa6f9bf7a Move get*16 and set*16 syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4521
2005-08-26 04:27:54 +00:00
Nicholas Nethercote
7fd1f02169 Move cap{get,set} syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4520
2005-08-26 04:03:04 +00:00
Nicholas Nethercote
832989d4af Move timer_* syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4519
2005-08-26 03:54:30 +00:00
Nicholas Nethercote
c42361bf17 Move clock_* syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4518
2005-08-26 03:49:43 +00:00
Nicholas Nethercote
c710281899 Move mq_* syscalls from "generic" to "linux".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4517
2005-08-26 03:43:28 +00:00
Nicholas Nethercote
ed0bcea859 Rename vg_preload_core.so to vgpreload_core.so to be consistent with
tool preload modules, which are called vgpreload_<tool>.so.  Also
fixed a couple of comments relating to this.

(This need not be merged into 3_0_X.)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4514
2005-08-25 22:53:57 +00:00
Nicholas Nethercote
e266e53970 Minor fixes for problems pointed out by Greg Parker:
* The wrapper for fcntl(F_SETOWN) and fcntl(F_SETSIG) ignores ARG3,
  but should not.

* Linux PRE(sys_umount) doesn't print ARG2.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4487
2005-08-24 13:55:59 +00:00
Julian Seward
4768087f6f Even more ppc32 syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4474
2005-08-21 00:49:41 +00:00
Julian Seward
b42cf14c30 Enable a few more syscalls on ppc32-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4463
2005-08-19 10:07:29 +00:00
Julian Seward
c3de347191 - Fix bug causing thread slots not to get reused
- yet more syscalls on ppc32


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4460
2005-08-19 00:22:44 +00:00
Julian Seward
f964ed405c Enable a couple more syscalls on ppc32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4449
2005-08-18 23:44:13 +00:00
Tom Hughes
2f83dba402 Don't assert if execve fails. Fixes bug #110875.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4435
2005-08-16 10:19:58 +00:00
Nicholas Nethercote
c1719a4c98 Clarify comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4406
2005-08-14 17:36:07 +00:00
Tom Hughes
606bd75025 Fix system call name in error messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4346
2005-08-08 16:50:16 +00:00
Tom Hughes
ebe67e6134 Check the fields of the new structure passed to sigaction individually
and only check sa_restorer if the SA_RESTORER flag is set.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4338
2005-08-07 15:16:59 +00:00
Tom Hughes
d7f4ee0a3c Enable the inotify system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4336
2005-08-06 18:07:17 +00:00
Tom Hughes
5636f53a8c If the pre-handler for the execve system call fails to state the file
being executed then propagate the error from the stat instead of just
return ENOACCES all the time. Fixes bug #110208.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4330
2005-08-05 07:46:32 +00:00
Tom Hughes
3f28625849 Implement the waitid system call. Fixes bug #110202.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4329
2005-08-05 07:32:04 +00:00
Tom Hughes
888f6e02cf Allow a NULL second argument to clock_getres. Fixes bug #110203.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4328
2005-08-05 07:22:00 +00:00
Julian Seward
ec55a5e7bb Fix up do_syscall_clone_ppc32_linux. Seems to improve thread exiting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4327
2005-08-05 02:15:18 +00:00
Julian Seward
ce962acecb ppc32-linux: implement a bunch more syscalls, and also fix up clone
handling enough so that threads can successfuly be started.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4325
2005-08-05 00:10:11 +00:00