aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2007-12-12 09:24:25 -0500
committerTony Luck <tony.luck@intel.com>2008-02-08 15:01:29 -0500
commitaa91a2e90044b88228bdb0620e771f2ea7798804 (patch)
tree935056068de330e73eaf39ba8284ae33ad6e145e /include/asm-ia64
parent3b2ce0b17824c42bc2e46f7dd903b4acf5e9fff9 (diff)
[IA64] Synchronize RBS on PTRACE_ATTACH
When attaching to a stopped process, the RSE must be explicitly synced to user-space, so the debugger can read the correct values. Signed-off-by: Petr Tesarik <ptesarik@suse.cz> CC: Roland McGrath <roland@redhat.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64')
-rw-r--r--include/asm-ia64/ptrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ia64/ptrace.h b/include/asm-ia64/ptrace.h
index 13435f778b0c..0bdce7dde1b0 100644
--- a/include/asm-ia64/ptrace.h
+++ b/include/asm-ia64/ptrace.h
@@ -310,6 +310,10 @@ struct switch_stack {
310 #define arch_ptrace_stop_needed(code, info) \ 310 #define arch_ptrace_stop_needed(code, info) \
311 (!test_thread_flag(TIF_RESTORE_RSE)) 311 (!test_thread_flag(TIF_RESTORE_RSE))
312 312
313 extern void ptrace_attach_sync_user_rbs (struct task_struct *);
314 #define arch_ptrace_attach(child) \
315 ptrace_attach_sync_user_rbs(child)
316
313#endif /* !__KERNEL__ */ 317#endif /* !__KERNEL__ */
314 318
315/* pt_all_user_regs is used for PTRACE_GETREGS PTRACE_SETREGS */ 319/* pt_all_user_regs is used for PTRACE_GETREGS PTRACE_SETREGS */