38 Commits

Author SHA1 Message Date
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
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
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
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
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
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
b2f3925a5f Handle the fadvise64 system calls correctly on 32 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4285
2005-07-27 22:57:18 +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
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
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
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
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
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
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
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
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
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
Cerion Armour-Brown
c259dd1e6d VG_() -> ML() for ppc32, amd64
(plus a few scattered ones in comments etc)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4003
2005-06-23 07:52:54 +00:00
Nicholas Nethercote
d463dd2292 Removed the VGA_/VGO_/VGP_ prefixes for arch/OS/platform-specific
things.  These made sense when the arch/OS/platform-specific code was in
one module, but as that code got mixed in with generic code the boundary
between generic and non-generic blurred, and the distinction made less
sense.  So let's get rid of them.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4002
2005-06-23 03:27:57 +00:00
Nicholas Nethercote
fc38860306 Don't #include pub_core_debuginfo.h in pub_core_aspacemgr.h. So have
to #include it explicitly in lots of other places, but at least the 
dependency is clear now.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3974
2005-06-21 00:28:11 +00:00
Cerion Armour-Brown
d5f7c8aed3 Finally, valgrind on ppc32.
Plenty still to do, but simple programs like ls seem to run ok

Thanks, Paul, for having your ppc port of valgrind 2.4 to work from!




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3969
2005-06-20 15:51:07 +00:00
Nicholas Nethercote
f174930b23 Final commit for the initial modularisation pass:
- Broke part of m_scheduler off into a new module m_threadstate.  It
  contains ThreadState, VG_(threads)[] and some basic operations on the
  thread table.  All simple stuff, the complex stuff stays in m_scheduler.
  This avoids lots of circular dependencies between m_scheduler and other
  modules.

- Managed to finally remove core.h and tool.h, double hurrah!

- Introduced pub_tool_basics.h and pub_core_basics.h, one of which is
  include by every single C file.

- Lots of little cleanups and changes related to the above.

- I even did a small amount of documentation updating.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3944
2005-06-19 01:24:32 +00:00
Robert Walsh
d9cbc3ffec Fix x86_64 build.
Also fix vgtest_ume (although it fails on x86_64.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3943
2005-06-18 18:58:14 +00:00
Nicholas Nethercote
6404b199cb Moved call_on_new_stack_0_1 and jump_and_switch_stacks to better places.
This enabled the removal of $ARCH/jmp_with_stack.c, hurrah!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3938
2005-06-18 15:54:25 +00:00
Nicholas Nethercote
b54b42c310 Rename m_syscalls/ as m_syswrap/ to complete the module renaming.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3924
2005-06-17 22:27:21 +00:00