Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: x86 ptrace merge complete

This switches over the 64-bit build to use the shared ptrace code,
instead of the old ptrace_64.c and arch/x86/ia32/ptrace32.c code.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Roland McGrath and committed by
Ingo Molnar
cbc9d9d9 099cd6e9

+3 -5
+1 -1
arch/x86/ia32/Makefile
··· 3 3 # 4 4 5 5 obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o \ 6 - ia32_binfmt.o fpu32.o ptrace32.o 6 + ia32_binfmt.o fpu32.o 7 7 8 8 sysv-$(CONFIG_SYSVIPC) := ipc32.o 9 9 obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
+2 -1
arch/x86/kernel/Makefile_64
··· 7 7 EXTRA_AFLAGS := -traditional 8 8 9 9 obj-y := process_64.o signal_64.o entry_64.o traps_64.o irq_64.o \ 10 - ptrace_64.o time_64.o ioport_64.o ldt.o setup_64.o i8259_64.o sys_x86_64.o \ 10 + time_64.o ioport_64.o ldt.o setup_64.o i8259_64.o sys_x86_64.o \ 11 11 x8664_ksyms_64.o i387_64.o syscall_64.o vsyscall_64.o \ 12 12 setup64.o bootflag.o e820_64.o reboot_64.o quirks.o i8237.o \ 13 13 pci-dma_64.o pci-nommu_64.o alternative.o hpet.o tsc_64.o bugs_64.o \ 14 14 i8253.o io_delay.o rtc.o 15 15 16 + obj-y += ptrace.o 16 17 obj-y += step.o 17 18 18 19 obj-$(CONFIG_IA32_EMULATION) += tls.o
-3
include/asm-x86/ptrace.h
··· 164 164 165 165 struct task_struct; 166 166 167 - extern unsigned long ptrace_get_debugreg(struct task_struct *child, int n); 168 - extern int ptrace_set_debugreg(struct task_struct *child, int n, unsigned long); 169 - 170 167 extern unsigned long 171 168 convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs); 172 169