[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix a typo in xc_ptrace() and fix single-stepping when attached
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID e96f98f9c289ca23b0b3ff7e5d897290ef2b142f # Parent 91c77df11b43894a2940b03029be46f6a1c85319 Fix a typo in xc_ptrace() and fix single-stepping when attached to a live guest. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- tools/libxc/xc_ptrace.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff -r 91c77df11b43 -r e96f98f9c289 tools/libxc/xc_ptrace.c --- a/tools/libxc/xc_ptrace.c Wed May 10 17:30:42 2006 +0100 +++ b/tools/libxc/xc_ptrace.c Thu May 11 11:33:07 2006 +0100 @@ -518,7 +518,7 @@ xc_ptrace( case PTRACE_SETREGS: if (current_isfile) - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ SET_XC_REGS(((struct gdb_regs *)data), ctxt[cpu].user_regs); if ((retval = xc_vcpu_setcontext(xc_handle, current_domid, cpu, &ctxt[cpu]))) @@ -526,8 +526,8 @@ xc_ptrace( break; case PTRACE_SINGLESTEP: - if (!current_isfile) - goto out_unspported; /* XXX not yet supported */ + if (current_isfile) + goto out_unsupported; /* XXX not yet supported */ /* XXX we can still have problems if the user switches threads * during single-stepping - but that just seems retarded */ @@ -540,7 +540,7 @@ xc_ptrace( case PTRACE_CONT: case PTRACE_DETACH: if (current_isfile) - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ if ( request != PTRACE_SINGLESTEP ) { FOREACH_CPU(cpumap, index) { @@ -603,7 +603,7 @@ xc_ptrace( case PTRACE_POKEUSER: case PTRACE_SYSCALL: case PTRACE_KILL: - goto out_unspported; /* XXX not yet supported */ + goto out_unsupported; /* XXX not yet supported */ case PTRACE_TRACEME: printf("PTRACE_TRACEME is an invalid request under Xen\n"); @@ -618,7 +618,7 @@ xc_ptrace( errno = EINVAL; return retval; - out_unspported: + out_unsupported: #ifdef DEBUG printf("unsupported xc_ptrace request %s\n", ptrace_names[request]); #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |