mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 01:56:42 +07:00
[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>
This commit is contained in:
parent
bd2e5f829e
commit
c2b2226c7e
@ -350,12 +350,10 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx,
|
||||
(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:
|
||||
|
Loading…
Reference in New Issue
Block a user