|
From: <sv...@va...> - 2005-04-25 16:21:21
|
Author: sewardj
Date: 2005-04-25 17:21:17 +0100 (Mon, 25 Apr 2005)
New Revision: 3567
Modified:
trunk/coregrind/amd64-linux/syscalls.c
trunk/coregrind/m_debuglog.c
trunk/coregrind/m_sigframe/sigframe-amd64-linux.c
Log:
amd64 build fixes.
Modified: trunk/coregrind/amd64-linux/syscalls.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/amd64-linux/syscalls.c 2005-04-25 15:49:10 UTC (rev 3=
566)
+++ trunk/coregrind/amd64-linux/syscalls.c 2005-04-25 16:21:17 UTC (rev 3=
567)
@@ -31,6 +31,7 @@
#include "core.h"
#include "ume.h" /* for jmp_with_stack */
#include "pub_core_sigframe.h"
+#include "pub_core_aspacemgr.h"
=20
=20
/* COPIED FROM /usr/include/asm-i386/prctl.h (amd64-linux) */
Modified: trunk/coregrind/m_debuglog.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_debuglog.c 2005-04-25 15:49:10 UTC (rev 3566)
+++ trunk/coregrind/m_debuglog.c 2005-04-25 16:21:17 UTC (rev 3567)
@@ -55,7 +55,9 @@
=20
/* ----- x86-linux specifics ----- */
=20
-#if VG_PLATFORM =3D=3D x86-linux
+/* Arse! Really I want to test VG_PLATFORM, but this does not
+ seem to be possible. */
+#if defined(__i386__) && defined(__linux__)
=20
static UInt local_sys_write_stderr ( HChar* buf, Int n )
{
@@ -80,7 +82,18 @@
return __res;
}
=20
+#elif defined(__x86_64__) && defined(__linux__)
=20
+static UInt local_sys_write_stderr ( HChar* buf, Int n )
+{
+ return 0;
+}
+
+static UInt local_sys_getpid ( void )
+{
+ return 0;
+}
+
#else
#error Unknown VG_PLATFORM
#endif
Modified: trunk/coregrind/m_sigframe/sigframe-amd64-linux.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_sigframe/sigframe-amd64-linux.c 2005-04-25 15:49:10=
UTC (rev 3566)
+++ trunk/coregrind/m_sigframe/sigframe-amd64-linux.c 2005-04-25 16:21:17=
UTC (rev 3567)
@@ -31,6 +31,7 @@
=20
#include "core.h"
#include "pub_core_sigframe.h"
+#include "pub_core_aspacemgr.h"
=20
#include "libvex_guest_amd64.h"
=20
|