summaryrefslogtreecommitdiffstats
path: root/arch/avr32/kernel/Makefile
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-11-27 13:02:40 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2008-01-25 08:31:39 +0100
commit6ea6dd93c9454cc9521134f907bc970d09f460e4 (patch)
tree05f8d9f293d7127e19774d5fa10ebf685a6fa76d /arch/avr32/kernel/Makefile
parent7f0f616bb093823b70855685cf085d39a8784818 (diff)
downloadlinux-6ea6dd93c9454cc9521134f907bc970d09f460e4.tar.gz
linux-6ea6dd93c9454cc9521134f907bc970d09f460e4.tar.xz
ptrace: Call arch_ptrace_attach() when request=PTRACE_TRACEME
arch_ptrace_attach() is a hook that allows the architecture to do book-keeping after a ptrace attach. This patch adds a call to this hook when handling a PTRACE_TRACEME request as well. Currently only one architecture, m32r, implements this hook. When called, it initializes a number of debug trap slots in the ptraced task's thread struct, and it looks to me like this is the right thing to do after a PTRACE_TRACEME request as well, not only after PTRACE_ATTACH. Please correct me if I'm wrong. I want to use this hook on AVR32 to turn the debugging hardware on when a process is actually being debugged and keep it off otherwise. To be able to do this, I need to intercept PTRACE_TRACEME and PTRACE_ATTACH, as well as PTRACE_DETACH and thread exit. The latter two can be handled by existing hooks. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/kernel/Makefile')
0 files changed, 0 insertions, 0 deletions