linux/arch/cris/arch-v32/kernel
Christoph Hellwig 290ba3aef5 cris arch-v32: use generic ptrace_resume code
Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT,
PTRACE_KILL and PTRACE_SINGLESTEP.  This implies defining
arch_has_single_step in <asm/ptrace.h> and implementing the
user_enable_single_step and user_disable_single_step functions, which also
causes the breakpoint information to be cleared on fork, which could be
considered a bug fix.

Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL which
it previously wasn't which is consistent with all architectures using the
modern ptrace code.

The way breakpoints are disabled is entirely inconsistent currently, I
tried to make some sense of it, but I suspect all of the content of
ptrace_disable should be moved into user_disable_single_step, this
defintively needs some revisting as the current patch changes behaviour in
not quite designed ways.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:39 -08:00
..
cache.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
cacheflush.S CRISv32: add cache flush operations 2007-11-14 18:45:47 -08:00
crisksyms.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
debugport.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
entry.S Add generic sys_old_mmap() 2010-03-12 15:52:32 -08:00
fasttimer.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
head.S drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
irq.c cris: Fixup last users of irq_chip->typename 2009-11-19 13:13:41 +01:00
kgdb_asm.S [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
kgdb.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
Makefile CRISv32: Remove obsolete vcs_hook.o from Makefile 2009-04-21 13:10:33 +02:00
pinmux.c CRIS v32: Should index be positive? 2009-11-03 14:11:53 +01:00
process.c Simplify copy_thread() 2009-04-02 19:04:51 -07:00
ptrace.c cris arch-v32: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
setup.c cris: ARRAY_SIZE() cleanup 2007-11-14 18:45:46 -08:00
signal.c trivial: fix singal -> signal typo 2009-01-06 11:28:06 +01:00
smp.c CRIS: convert to asm-generic/hardirq.h 2009-09-01 17:23:32 +02:00
time.c CRIS: convert to asm-generic/hardirq.h 2009-09-01 17:23:32 +02:00
traps.c CRIS v32: Update and improve kernel/traps.c 2008-02-08 11:06:27 +01:00