]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] enable singlestep on system call
authorbibo,mao <bibo.mao@intel.com>
Wed, 31 Jan 2007 09:50:31 +0000 (17:50 +0800)
committerTony Luck <tony.luck@intel.com>
Mon, 5 Feb 2007 21:49:29 +0000 (13:49 -0800)
commit4dc74b4539aa32f9b81f9ba3be290f4985e4ec59
treeffe6b5246f9e2334b474ca0913776668803d1ea0
parentc0b13aae79494f4d265d4bacb97313cecbe5681f
[IA64] enable singlestep on system call

As is pointed out in
http://www.gelato.org/community/view_linear.php?id=1_1036&from=authors&value=Ian%20Wienand#1_1039,
if single step on break instruction, the break fault has higher
priority than the single-step trap. When the break fault handler
is entered, it advances the IP by 1 instruction so break instruction
single-stepping is skipped, actually it is next instruction which
is single stepped.

This patch modifies this, it adds TIF_SINGLESTEP bit for thread
flags, and generate a fake sigtrap when single stepping break
instruction. Test case in attachment can verify this. Any comments
is welcome.

Signed-off-by: bibo, mao <bibo.mao@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/ptrace.c
include/asm-ia64/thread_info.h