Haavard Skinnemoen
6ea6dd93c9
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 >
2008-01-25 08:31:39 +01:00
..
2007-12-18 18:05:58 +01:00
2008-01-11 12:26:47 -05:00
2007-12-18 18:05:58 +01:00
2006-01-03 11:35:26 +01:00
2008-01-07 14:55:37 -08:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2007-10-22 19:40:02 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:36 -07:00
2007-11-14 18:45:37 -08:00
2007-10-18 15:12:41 -07:00
2007-05-09 12:30:49 -07:00
2007-10-19 11:53:44 -07:00
2007-10-19 11:53:44 -07:00
2007-10-18 14:37:28 -07:00
2007-10-18 14:37:24 -07:00
2007-10-18 14:37:26 -07:00
2007-11-29 09:24:55 -08:00
2006-05-15 11:20:55 -07:00
2007-12-05 09:21:18 -08:00
2007-11-09 16:13:08 -08:00
2008-01-08 16:21:39 -08:00
2008-01-21 19:39:41 -08:00
2007-10-18 14:37:26 -07:00
2007-11-29 09:24:54 -08:00
2006-12-07 08:39:36 -08:00
2007-12-06 09:41:12 -08:00
2007-10-17 08:42:55 -07:00
2008-01-08 16:10:36 -08:00
2007-07-16 09:05:50 -07:00
2008-01-17 15:38:59 -08:00
2007-10-16 09:43:10 -07:00
2007-10-17 08:42:54 -07:00
2007-07-31 15:39:42 -07:00
2006-12-04 02:00:22 -05:00
2006-12-07 08:39:43 -08:00
2007-10-11 22:11:11 +02:00
2008-01-24 08:01:09 -08:00
2007-11-14 18:45:40 -08:00
2007-11-14 18:45:40 -08:00
2008-01-14 08:52:22 -08:00
2007-02-14 08:09:54 -08:00
2006-07-03 15:27:01 -07:00
2007-10-11 22:11:12 +02:00
2006-07-03 15:27:04 -07:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:37 -07:00
2007-10-19 11:53:39 -07:00
2007-12-20 15:01:17 +01:00
2007-12-22 23:09:05 -08:00
2007-11-14 18:45:43 -08:00
2007-10-19 11:53:40 -07:00
2007-10-19 11:53:40 -07:00
2007-12-29 01:19:49 -08:00
2007-10-24 18:23:50 +02:00
2008-01-25 08:31:39 +01:00
2008-01-22 09:17:48 -08:00
2007-10-17 08:42:53 -07:00
2007-10-18 14:37:24 -07:00
2007-11-14 18:45:39 -08:00
2007-07-16 09:05:49 -07:00
2007-10-19 11:53:43 -07:00
2006-07-03 15:27:01 -07:00
2007-07-17 10:23:02 -07:00
2007-10-19 11:53:43 -07:00
2006-07-03 15:27:01 -07:00
2007-12-18 15:21:13 +01:00
2007-12-30 17:24:35 +01:00
2007-12-18 15:21:13 +01:00
2007-10-24 18:23:51 +02:00
2007-12-20 15:01:17 +01:00
2007-11-28 15:52:56 +01:00
2008-01-22 11:24:58 +01:00
2007-07-16 09:05:50 -07:00
2007-11-12 16:05:23 -08:00
2007-10-10 16:49:18 -07:00
2007-10-19 11:53:43 -07:00
2007-07-19 10:04:49 -07:00
2006-10-04 07:55:30 -07:00
2006-07-03 15:27:02 -07:00
2007-07-16 09:05:41 -07:00
2007-10-30 21:29:56 -07:00
2007-11-17 16:27:00 +01:00
2007-12-17 19:28:17 -08:00
2007-12-18 15:21:13 +01:00
2007-11-14 18:45:44 -08:00
2007-10-18 14:37:24 -07:00
2008-01-21 19:39:41 -08:00
2007-10-18 14:37:28 -07:00
2007-05-08 11:15:07 -07:00
2007-09-19 11:24:18 -07:00
2007-11-26 21:21:49 +01:00
2007-11-29 09:24:53 -08:00
2007-09-19 11:24:17 -07:00
2007-05-09 08:57:56 +02:00
2008-01-16 09:51:58 +01:00