ia64/xen-unstable

changeset 10041:e96f98f9c289

Fix a typo in xc_ptrace() and fix single-stepping when attached
to a live guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 11 11:33:07 2006 +0100 (2006-05-11)
parents 91c77df11b43
children f6ebf236faee
files tools/libxc/xc_ptrace.c
line diff
     1.1 --- a/tools/libxc/xc_ptrace.c	Wed May 10 17:30:42 2006 +0100
     1.2 +++ b/tools/libxc/xc_ptrace.c	Thu May 11 11:33:07 2006 +0100
     1.3 @@ -518,7 +518,7 @@ xc_ptrace(
     1.4  
     1.5      case PTRACE_SETREGS:
     1.6          if (current_isfile)
     1.7 -                goto out_unspported; /* XXX not yet supported */
     1.8 +                goto out_unsupported; /* XXX not yet supported */
     1.9          SET_XC_REGS(((struct gdb_regs *)data), ctxt[cpu].user_regs);
    1.10          if ((retval = xc_vcpu_setcontext(xc_handle, current_domid, cpu,
    1.11                                  &ctxt[cpu])))
    1.12 @@ -526,8 +526,8 @@ xc_ptrace(
    1.13          break;
    1.14  
    1.15      case PTRACE_SINGLESTEP:
    1.16 -        if (!current_isfile)
    1.17 -              goto out_unspported; /* XXX not yet supported */
    1.18 +        if (current_isfile)
    1.19 +              goto out_unsupported; /* XXX not yet supported */
    1.20          /*  XXX we can still have problems if the user switches threads
    1.21           *  during single-stepping - but that just seems retarded
    1.22           */
    1.23 @@ -540,7 +540,7 @@ xc_ptrace(
    1.24      case PTRACE_CONT:
    1.25      case PTRACE_DETACH:
    1.26          if (current_isfile)
    1.27 -            goto out_unspported; /* XXX not yet supported */
    1.28 +            goto out_unsupported; /* XXX not yet supported */
    1.29          if ( request != PTRACE_SINGLESTEP )
    1.30          {
    1.31              FOREACH_CPU(cpumap, index) {
    1.32 @@ -603,7 +603,7 @@ xc_ptrace(
    1.33      case PTRACE_POKEUSER:
    1.34      case PTRACE_SYSCALL:
    1.35      case PTRACE_KILL:
    1.36 -        goto out_unspported; /* XXX not yet supported */
    1.37 +        goto out_unsupported; /* XXX not yet supported */
    1.38  
    1.39      case PTRACE_TRACEME:
    1.40          printf("PTRACE_TRACEME is an invalid request under Xen\n");
    1.41 @@ -618,7 +618,7 @@ xc_ptrace(
    1.42      errno = EINVAL;
    1.43      return retval;
    1.44  
    1.45 - out_unspported:
    1.46 + out_unsupported:
    1.47  #ifdef DEBUG
    1.48      printf("unsupported xc_ptrace request %s\n", ptrace_names[request]);
    1.49  #endif