Skip to content

Commit

Permalink
m32r: fix breakage from "m32r: use generic ptrace_resume code"
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 24, 2010
1 parent bb9c861 commit acdc0d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/m32r/kernel/ptrace.c
Original file line number Diff line number Diff line change
@@ -592,16 +592,17 @@ void user_enable_single_step(struct task_struct *child)

if (access_process_vm(child, pc&~3, &insn, sizeof(insn), 0)
!= sizeof(insn))
break;
return -EIO;

compute_next_pc(insn, pc, &next_pc, child);
if (next_pc & 0x80000000)
break;
return -EIO;

if (embed_debug_trap(child, next_pc))
break;
return -EIO;

invalidate_cache();
return 0;
}

void user_disable_single_step(struct task_struct *child)

0 comments on commit acdc0d5

Please sign in to comment.