This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / um / kernel / tt / process_kern.c
index b6a6153..d547435 100644 (file)
@@ -82,7 +82,7 @@ void *switch_to_tt(void *prev, void *next, void *last)
        prev_sched = current->thread.prev_sched;
        if((prev_sched->exit_state == EXIT_ZOMBIE) ||
           (prev_sched->exit_state == EXIT_DEAD))
-               os_kill_ptraced_process(prev_sched->thread.mode.tt.extern_pid, 1);
+               os_kill_process(prev_sched->thread.mode.tt.extern_pid, 1);
 
        /* This works around a nasty race with 'jail'.  If we are switching
         * between two threads of a threaded app and the incoming process 
@@ -305,6 +305,7 @@ int copy_thread_tt(int nr, unsigned long clone_flags, unsigned long sp,
 
        change_sig(SIGUSR1, 0);
        err = 0;
+ out:
        return(err);
 }
 
@@ -523,6 +524,22 @@ void set_init_pid(int pid)
                      -err);
 }
 
+int singlestepping_tt(void *t)
+{
+       struct task_struct *task = t;
+
+       if(task->thread.mode.tt.singlestep_syscall)
+               return(0);
+       return(task->ptrace & PT_DTRACE);
+}
+
+void clear_singlestep(void *t)
+{
+       struct task_struct *task = t;
+
+       task->ptrace &= ~PT_DTRACE;
+}
+
 int start_uml_tt(void)
 {
        void *sp;