|
From: <sv...@va...> - 2005-05-13 22:18:49
|
Author: njn
Date: 2005-05-13 23:18:47 +0100 (Fri, 13 May 2005)
New Revision: 3699
Modified:
trunk/coregrind/core.h
trunk/coregrind/m_aspacemgr/aspacemgr.c
trunk/coregrind/m_syscalls/priv_syscalls.h
trunk/coregrind/vg_mylibc.c
trunk/coregrind/vg_scheduler.c
trunk/coregrind/x86/state.c
Log:
Import vki_unistd.h on a need-to-know basis, rather than
universally through core.h.
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-05-13 22:09:26 UTC (rev 3698)
+++ trunk/coregrind/core.h 2005-05-13 22:18:47 UTC (rev 3699)
@@ -82,9 +82,6 @@
external tools.
*/
=20
-/* For system call numbers __NR_... */
-#include "vki_unistd.h"
-
#include "core_asm.h" // asm stuff
#include "tool.h" // tool stuff
#include "core_arch.h" // arch-specific stuff, eg. x86/core_arch.h
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-05-13 22:09:26 UTC (rev =
3698)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-05-13 22:18:47 UTC (rev =
3699)
@@ -34,6 +34,7 @@
#include "pub_core_aspacemgr.h"
#include "pub_core_syscalls.h"
#include "pub_core_tooliface.h"
+#include "vki_unistd.h"
=20
=20
/* Define to debug the memory-leak-detector. */
Modified: trunk/coregrind/m_syscalls/priv_syscalls.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscalls/priv_syscalls.h 2005-05-13 22:09:26 UTC (r=
ev 3698)
+++ trunk/coregrind/m_syscalls/priv_syscalls.h 2005-05-13 22:18:47 UTC (r=
ev 3699)
@@ -42,6 +42,8 @@
# error Unknown platform
#endif
=20
+#include "vki_unistd.h"
+
// Offsets for the shadow state
#define O_SYSCALL_NUM (offsetof(VexGuestArchState, VGP_SYSCALL_NUM))
#define O_SYSCALL_ARG1 (offsetof(VexGuestArchState, VGP_SYSCALL_ARG1))
Modified: trunk/coregrind/vg_mylibc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_mylibc.c 2005-05-13 22:09:26 UTC (rev 3698)
+++ trunk/coregrind/vg_mylibc.c 2005-05-13 22:18:47 UTC (rev 3699)
@@ -36,6 +36,7 @@
#include "pub_core_stacktrace.h"
#include "pub_core_syscalls.h"
#include "pub_core_tooliface.h"
+#include "vki_unistd.h"
=20
=20
/* ---------------------------------------------------------------------
Modified: trunk/coregrind/vg_scheduler.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_scheduler.c 2005-05-13 22:09:26 UTC (rev 3698)
+++ trunk/coregrind/vg_scheduler.c 2005-05-13 22:18:47 UTC (rev 3699)
@@ -66,6 +66,7 @@
#include "pub_core_stacktrace.h"
#include "pub_core_syscalls.h"
#include "pub_core_tooliface.h"
+#include "vki_unistd.h"
=20
/* ---------------------------------------------------------------------
Types and globals for the scheduler.
Modified: trunk/coregrind/x86/state.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/x86/state.c 2005-05-13 22:09:26 UTC (rev 3698)
+++ trunk/coregrind/x86/state.c 2005-05-13 22:18:47 UTC (rev 3699)
@@ -31,6 +31,7 @@
#include "core.h"
#include "pub_core_tooliface.h"
#include "x86_private.h"
+#include "vki_unistd.h"
#include <sys/ptrace.h>
=20
#include "libvex_guest_x86.h"
|