Skip to contentSkip to conversation

ptrace support is Linux-specific.

PATCH New John Levon 1 participant 1 message Oct 17, 2006

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 ptrace support is Linux-specific.

# HG changeset patch
# User [email protected]
# Date 1161090564 25200
# Node ID 03d4223c846b14fc415cfd05d970c7b4d688fddb # Parent 8d5dacb6f2c197dcc2e1b44d8d884baaf0dc2bcb ptrace support is Linux-specific.

tools/libxc/Makefile +2 -2
@@ -15,8 +15,8 @@ CTRL_SRCS-y       += xc_sedf.c
 CTRL_SRCS-y       += xc_sedf.c
 CTRL_SRCS-y       += xc_csched.c
 CTRL_SRCS-y       += xc_tbuf.c
-CTRL_SRCS-$(CONFIG_X86) += xc_ptrace.c xc_ptrace_core.c xc_pagetab.c
-CTRL_SRCS-$(CONFIG_Linux) += xc_linux.c
+CTRL_SRCS-$(CONFIG_X86) += xc_pagetab.c
+CTRL_SRCS-$(CONFIG_Linux) += xc_linux.c xc_ptrace.c xc_ptrace_core.c
 
 GUEST_SRCS-y :=
 GUEST_SRCS-y += xc_load_bin.c
tools/libxc/xc_ptrace.h +8 -0
@@ -175,6 +175,14 @@ long xc_ptrace(
     long addr,
     long data);
 
+long xc_ptrace_core(
+    int xc_handle,
+    enum __ptrace_request request,
+    uint32_t domid,
+    long addr,
+    long data,
+    vcpu_guest_context_t *ctxt);
+
 int xc_waitdomain(
     int xc_handle,
     int domain,
tools/libxc/xenctrl.h +0 -8
@@ -16,7 +16,6 @@
 
 #include <stddef.h>
 #include <stdint.h>
-#include <sys/ptrace.h>
 #include <xen/xen.h>
 #include <xen/domctl.h>
 #include <xen/sysctl.h>
@@ -116,13 +115,6 @@ typedef struct xc_core_header {
 
 #define XC_CORE_MAGIC 0xF00FEBED
 
-long xc_ptrace_core(
-    int xc_handle,
-    enum __ptrace_request request,
-    uint32_t domid,
-    long addr,
-    long data,
-    vcpu_guest_context_t *ctxt);
 void * map_domain_va_core(
     unsigned long domfd,
     int cpu,