Blackfin: fix single stepping over system calls
authorMike Frysinger <vapier@gentoo.org>
Wed, 17 Feb 2010 10:44:22 +0000 (10:44 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:51 +0000 (00:30 -0500)
commit600482c13d3d3612d71f39d8aaec47f63aafa801
tree87b347917f743a493de71d9655f7f336f4e92c73
parente8f263dfd32a784a816fe68956e564f8ede4a9fc
Blackfin: fix single stepping over system calls

On Blackfin systems, the hardware single step exception triggers before
the system call exception, so we need to save this info to process it
later on.  Otherwise, single stepping in userspace misses a few insns
right after the system call.

This is based a bit on the SuperH code added in commit 4b505db9c4c72dbd.

Reported-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/thread_info.h
arch/blackfin/kernel/ptrace.c
arch/blackfin/kernel/signal.c
arch/blackfin/mach-common/entry.S