[POWERPC] spufs: always send sigtrap on breakpoint
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2006 18:18:53 +0000 (19:18 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:41:09 +0000 (20:41 +1100)
Currently, we only send a sigtrap if the current task is being ptraced.
This is somewhat inconsistant, and it breaks utrace support in fedora.
Removing the check should do the right thing in all cases.

Cc: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/run.c

index 1be4e33..1acc2ff 100644 (file)
@@ -350,12 +350,10 @@ out2:
               (status >> SPU_STOP_STATUS_SHIFT != 0x2104)))))
                ret = status;
 
-       if (unlikely(current->ptrace & PT_PTRACED)) {
-               if ((status & SPU_STATUS_STOPPED_BY_STOP)
-                   && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) {
-                       force_sig(SIGTRAP, current);
-                       ret = -ERESTARTSYS;
-               }
+       if ((status & SPU_STATUS_STOPPED_BY_STOP)
+           && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) {
+               force_sig(SIGTRAP, current);
+               ret = -ERESTARTSYS;
        }
 
 out: