]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
powerpc: Call tracehook_signal_handler() when setting up signal frames
authorRoland McGrath <roland@redhat.com>
Sun, 27 Jul 2008 06:49:50 +0000 (16:49 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2008 06:30:49 +0000 (16:30 +1000)
commit6558ba2b5cc3a2f22039db30616fcd07c1b28ac8
treeca54768376c6b32a308cc728a72ebcb978e3f179
parente2075f79a99b45a6cc10de021c93f07212098a84
powerpc: Call tracehook_signal_handler() when setting up signal frames

This makes the powerpc signal handling code call tracehook_signal_handler()
after a handler is set up.  This means that using PTRACE_SINGLESTEP to
enter a signal handler will report to ptrace on the first instruction of
the handler, instead of the second.  This is consistent with what x86 and
other machines do, and what users and debuggers want.

BenH: Fixed up the test for the trap value.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/signal.c