diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 13:30:52 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:30:52 +0100 |
commit | 962ff3804d31a4d090bbcbd3d06a4b63e3a5b5fd (patch) | |
tree | 46e45a1076777b7454fd026f006f7517229b34b7 /include/asm-x86 | |
parent | e4aed6cc45f06acd35e3dfbbaf632c5d5aa897c0 (diff) |
x86: x86-64 ptrace debugreg cleanup
This cleans up the 64-bit ptrace code to separate the guts of the
debug register access from the implementation of PTRACE_PEEKUSR and
PTRACE_POKEUSR. The new functions ptrace_[gs]et_debugreg are made
global so that the ia32 code can later be changed to call them too.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/ptrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index fe75422f034..d223decd7b0 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h @@ -110,6 +110,9 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where); struct task_struct; +extern unsigned long ptrace_get_debugreg(struct task_struct *child, int n); +extern int ptrace_set_debugreg(struct task_struct *child, int n, unsigned long); + extern unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs); |