mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
ptrace: remove PT_DTRACE from m68k, m68knommu
m68k sets PT_DTRACE in trap_c() but never uses it. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Ungerer <gerg@snapgear.com> Cc: Roman Zippel <zippel@linux-m68k.org> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bba7fc0a21
commit
9d35f8464d
@ -1057,7 +1057,6 @@ asmlinkage void trap_c(struct frame *fp)
|
||||
if (fp->ptregs.sr & PS_S) {
|
||||
if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
|
||||
/* traced a trapping instruction */
|
||||
current->ptrace |= PT_DTRACE;
|
||||
} else
|
||||
bad_super_trap(fp);
|
||||
return;
|
||||
|
@ -73,7 +73,6 @@ int main(void)
|
||||
DEFINE(TRAP_TRACE, TRAP_TRACE);
|
||||
|
||||
DEFINE(PT_PTRACED, PT_PTRACED);
|
||||
DEFINE(PT_DTRACE, PT_DTRACE);
|
||||
|
||||
DEFINE(THREAD_SIZE, THREAD_SIZE);
|
||||
|
||||
|
@ -200,7 +200,6 @@ asmlinkage void trap_c(struct frame *fp)
|
||||
if (fp->ptregs.sr & PS_S) {
|
||||
if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
|
||||
/* traced a trapping instruction */
|
||||
current->ptrace |= PT_DTRACE;
|
||||
} else
|
||||
bad_super_trap(fp);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user