]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
Fix a typo in xc_ptrace() and fix single-stepping when attached
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 May 2006 10:34:34 +0000 (11:34 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 May 2006 10:34:34 +0000 (11:34 +0100)
to a live guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9973:e96f98f9c289ca23b0b3ff7e5d897290ef2b142f
xen-unstable date:        Thu May 11 11:33:07 2006 +0100

tools/libxc/xc_ptrace.c

index 30fe1db22e045e6e4dfeb271aa79199c239888c8..d13c86ce495c059552eee72d0f375e8849e09f4d 100644 (file)
@@ -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