# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 085f0ad9018a0791c89ac8f489f630eab3f0c04b
# Parent e8fb817c4c1530b9f763b8a726aa00d805173a56
Fix build with some gcc versions.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r e8fb817c4c15 -r 085f0ad9018a tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c Mon Mar 6 14:39:48 2006
+++ b/tools/libxc/xc_ptrace.c Mon Mar 6 17:05:09 2006
@@ -1,5 +1,4 @@
#define XC_PTRACE_PRIVATE
-
#include <sys/ptrace.h>
#include <sys/wait.h>
@@ -8,6 +7,36 @@
#include "xc_private.h"
#include "xg_private.h"
#include "xc_ptrace.h"
+
+#ifdef DEBUG
+const char const * ptrace_names[] = {
+ "PTRACE_TRACEME",
+ "PTRACE_PEEKTEXT",
+ "PTRACE_PEEKDATA",
+ "PTRACE_PEEKUSER",
+ "PTRACE_POKETEXT",
+ "PTRACE_POKEDATA",
+ "PTRACE_POKEUSER",
+ "PTRACE_CONT",
+ "PTRACE_KILL",
+ "PTRACE_SINGLESTEP",
+ "PTRACE_INVALID",
+ "PTRACE_INVALID",
+ "PTRACE_GETREGS",
+ "PTRACE_SETREGS",
+ "PTRACE_GETFPREGS",
+ "PTRACE_SETFPREGS",
+ "PTRACE_ATTACH",
+ "PTRACE_DETACH",
+ "PTRACE_GETFPXREGS",
+ "PTRACE_SETFPXREGS",
+ "PTRACE_INVALID",
+ "PTRACE_INVALID",
+ "PTRACE_INVALID",
+ "PTRACE_INVALID",
+ "PTRACE_SYSCALL",
+};
+#endif
/* XXX application state */
static long nr_pages = 0;
diff -r e8fb817c4c15 -r 085f0ad9018a tools/libxc/xc_ptrace.h
--- a/tools/libxc/xc_ptrace.h Mon Mar 6 14:39:48 2006
+++ b/tools/libxc/xc_ptrace.h Mon Mar 6 17:05:09 2006
@@ -9,8 +9,6 @@
#define BSD_PAGE_MASK (PAGE_SIZE-1)
#define PDRSHIFT 22
#define PSL_T 0x00000100 /* trace enable bit */
-
-extern const char const * ptrace_names[];
struct gdb_regs {
long ebx; /* 0 */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|