Commit c2b2226c authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul Mackerras

[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: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
parent bd2e5f82
...@@ -350,13 +350,11 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx, ...@@ -350,13 +350,11 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx,
(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) if ((status & SPU_STATUS_STOPPED_BY_STOP)
&& (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) { && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) {
force_sig(SIGTRAP, current); force_sig(SIGTRAP, current);
ret = -ERESTARTSYS; ret = -ERESTARTSYS;
} }
}
out: out:
*event = ctx->event_return; *event = ctx->event_return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment