diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2007-12-12 15:24:25 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-02-08 12:01:29 -0800 |
commit | aa91a2e90044b88228bdb0620e771f2ea7798804 (patch) | |
tree | 935056068de330e73eaf39ba8284ae33ad6e145e /include/asm-ia64 | |
parent | 3b2ce0b17824c42bc2e46f7dd903b4acf5e9fff9 (diff) | |
download | op-kernel-dev-aa91a2e90044b88228bdb0620e771f2ea7798804.zip op-kernel-dev-aa91a2e90044b88228bdb0620e771f2ea7798804.tar.gz |
[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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ia64/ptrace.h b/include/asm-ia64/ptrace.h index 13435f7..0bdce7d 100644 --- a/include/asm-ia64/ptrace.h +++ b/include/asm-ia64/ptrace.h @@ -310,6 +310,10 @@ struct switch_stack { #define arch_ptrace_stop_needed(code, info) \ (!test_thread_flag(TIF_RESTORE_RSE)) + extern void ptrace_attach_sync_user_rbs (struct task_struct *); + #define arch_ptrace_attach(child) \ + ptrace_attach_sync_user_rbs(child) + #endif /* !__KERNEL__ */ /* pt_all_user_regs is used for PTRACE_GETREGS PTRACE_SETREGS */ |