]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: ptrace fixes
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 19 May 2009 13:38:01 +0000 (15:38 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 4 Dec 2009 20:22:35 +0000 (21:22 +0100)
commite95ec963e7127deb825ad9de18b9d6f5a394bb09
tree6a872faedca9f07af26b7ba90551258a10a3bd94
parent2af60555c08c12132eb3bd8fd98a45172ed452ed
m68k: ptrace fixes

This fixes the following issues in ptrace:

- when single stepping into the signal handler stop at the first insn of
  the handler
- handle non-zero stkadj when accessing pc and sr in ptregs
- correctly handle PT_SR in PTRACE_POKEUSR
- report -EIO when trying to read unknown offset in PTRACE_PEEKUSR

Additionally, the handling of the special case that PT_SR accesses a 16
bit word instead of a 32 bit word has been moved into get_reg/put_reg.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/entry.S
arch/m68k/kernel/ptrace.c