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 4b505db9c4.

Reported-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Цей коміт міститься в:
Mike Frysinger
2010-02-17 10:44:22 +00:00
джерело e8f263dfd3
коміт 600482c13d
4 змінених файлів з 15 додано та 3 видалено

Переглянути файл

@@ -642,6 +642,8 @@ ENTRY(_system_call)
r7 = [p2+TI_FLAGS];
CC = BITTST(r7,TIF_SYSCALL_TRACE);
if CC JUMP _sys_trace;
CC = BITTST(r7,TIF_SINGLESTEP);
if CC JUMP _sys_trace;
/* Execute the appropriate system call */