]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit90f9d70a582c02f50b4dd847166cd5b037219891
treeffe6b5246f9e2334b474ca0913776668803d1ea0
parentc237508afa5d47282d3047784864013eebdc68ab
[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