Fix build with some gcc versions.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-03-06 18:05:09 +01:00
1 parent 12456de899
commit d3174e2e2e
2 files changed
+30 -3

No files matched your search

+30 -1
View File
@@ -1,6 +1,5 @@
#define XC_PTRACE_PRIVATE
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <time.h>
@@ -9,6 +8,36 @@
#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;
static unsigned long *page_array = NULL;
-2
View File
@@ -10,8 +10,6 @@
#define PDRSHIFT 22
#define PSL_T 0x00000100 /* trace enable bit */
extern const char const * ptrace_names[];
struct gdb_regs {
long ebx; /* 0 */
long ecx; /* 4 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.