浏览代码

[POWERPC] spufs: always send sigtrap on breakpoint

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>
Arnd Bergmann 19 年之前
父节点
当前提交
c2b2226c7e
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4 6
      arch/powerpc/platforms/cell/spufs/run.c

+ 4 - 6
arch/powerpc/platforms/cell/spufs/run.c

@@ -350,12 +350,10 @@ out2:
 	       (status >> SPU_STOP_STATUS_SHIFT != 0x2104)))))
 	       (status >> SPU_STOP_STATUS_SHIFT != 0x2104)))))
 		ret = status;
 		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:
 out: