From: Benjamin Herrenschmidt Date: Mon, 4 Jun 2007 05:15:46 +0000 (+1000) Subject: [POWERPC] Allow ptrace write to pt_regs trap and orig_r3 X-Git-Tag: v2.6.23-rc1~767^2^2~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=912000e73ee8fcb97831b123c9c3a7274b71cab7;p=pandora-kernel.git [POWERPC] Allow ptrace write to pt_regs trap and orig_r3 This patch allows a ptracer to write to the "trap" and "orig_r3" words of the pt_regs. This, along with a subsequent patch to the signal restart code, should enable gdb to properly handle syscall restarting after executing a separate function (at least when there's no restart block). This patch also removes ptrace32.c code toying directly with the registers and makes it use the ptrace_get/put_reg() accessors for everything so that the logic for checking what is permitted is in only one place. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed