]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Fix ptrace hw_breakpoint handling
authorDavid Engraf <david.engraf@sysgo.com>
Wed, 23 Mar 2011 11:35:42 +0000 (11:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:24 +0000 (12:00 -0700)
commit0030f64fbb5c6a6eb943a2ec1fdc43e17b0b124c
treecde32c200547224d65ea17b71999c1f7265471b8
parentef2109c5172a277790f38fccc43d32aaaa7f405d
sh: Fix ptrace hw_breakpoint handling

commit fb7f045ace0624f1e59a7db8497e460bd54b1cbc upstream.

Since commit 34d0b5af50a063cded842716633501b38ff815fb it is no longer
possible to debug an application using singlestep. The old commit
converted singlestep handling via ptrace to hw_breakpoints. The
hw_breakpoint is disabled when an event is triggered and not re-enabled
again. This patch re-enables the existing hw_breakpoint before the
existing breakpoint is reused.

Signed-off-by: David Engraf <david.engraf@sysgo.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sh/kernel/ptrace_32.c