direct-io.hg

changeset 5216:3f244c5d2fe2

bitkeeper revision 1.1603 (429c25daAxv8CzKG49dW0khs2wyBew)

xc_ptrace_core.c, xc_ptrace.c:
SLES9 has a problem with it's <asm/elf.h> and other headers associated
with it. Since we are only using one thing from this (that we really
don't need) we can just stop including it.
http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=34
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 08:52:42 2005 +0000 (2005-05-31)
parents 69acd57e1bd8
children 412ada0d1ed6
files tools/libxc/xc_ptrace.c tools/libxc/xc_ptrace_core.c
line diff
     1.1 --- a/tools/libxc/xc_ptrace.c	Tue May 31 08:27:49 2005 +0000
     1.2 +++ b/tools/libxc/xc_ptrace.c	Tue May 31 08:52:42 2005 +0000
     1.3 @@ -1,7 +1,6 @@
     1.4  #include <sys/ptrace.h>
     1.5  #include <sys/wait.h>
     1.6  #include "xc_private.h"
     1.7 -#include <asm/elf.h>
     1.8  #include <time.h>
     1.9  
    1.10  
    1.11 @@ -301,7 +300,7 @@ xc_ptrace(enum __ptrace_request request,
    1.12  
    1.13  	if (request == PTRACE_GETREGS) {
    1.14  		SET_PT_REGS(pt, ctxt[cpu].user_regs); 
    1.15 -		memcpy(data, &pt, sizeof(elf_gregset_t));
    1.16 +		memcpy(data, &pt, sizeof(struct gdb_regs));
    1.17  	} else if (request == PTRACE_GETFPREGS)
    1.18  	    memcpy(data, &ctxt[cpu].fpu_ctxt, sizeof(ctxt[cpu].fpu_ctxt));
    1.19  	else /*if (request == PTRACE_GETFPXREGS)*/
     2.1 --- a/tools/libxc/xc_ptrace_core.c	Tue May 31 08:27:49 2005 +0000
     2.2 +++ b/tools/libxc/xc_ptrace_core.c	Tue May 31 08:52:42 2005 +0000
     2.3 @@ -1,7 +1,6 @@
     2.4  #include <sys/ptrace.h>
     2.5  #include <sys/wait.h>
     2.6  #include "xc_private.h"
     2.7 -#include <asm/elf.h>
     2.8  #include <time.h>
     2.9  
    2.10  
    2.11 @@ -258,7 +257,7 @@ xc_ptrace_core(enum __ptrace_request req
    2.12      case PTRACE_GETFPXREGS:
    2.13  	if (request == PTRACE_GETREGS) {
    2.14  		SET_PT_REGS(pt, ctxt[cpu].user_regs); 
    2.15 -		memcpy(data, &pt, sizeof(elf_gregset_t));
    2.16 +		memcpy(data, &pt, sizeof(struct gdb_regs));
    2.17  	} else if (request == PTRACE_GETFPREGS)
    2.18  	    memcpy(data, &ctxt[cpu].fpu_ctxt, sizeof(ctxt[cpu].fpu_ctxt));
    2.19  	else /*if (request == PTRACE_GETFPXREGS)*/