diff options
author | Will Deacon <will.deacon@arm.com> | 2010-12-01 18:05:24 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2010-12-06 12:55:57 +0100 |
commit | 3ce70b2e24cd35cc9f2df8cf5205b8ab4e6178e1 (patch) | |
tree | 2f0939d5d8f2ac9d97932905f0b147b5a5e1891e /arch/arm/kernel/ptrace.c | |
parent | ARM: hw_breakpoint: unify single-stepping code for watchpoints and breakpoints (diff) | |
download | linux-3ce70b2e24cd35cc9f2df8cf5205b8ab4e6178e1.tar.xz linux-3ce70b2e24cd35cc9f2df8cf5205b8ab4e6178e1.zip |
ARM: hw_breakpoint: disallow per-cpu breakpoints without overflow handler
Single-stepping a breakpoint requires us to disable it temporarily so that
we don't get stuck in a recursive debug trap. With per-cpu breakpoints this
presents a problem where an interrupt can be taken before the single-step has
completed and a new task is eventually scheduled. This new task will not
hit the breakpoint because it will have been disabled during the previous
handling code.
This patch disallows per-cpu breakpoints on ARM when an overflow handler
is not present. A similar effect can be created by placing breakpoints on
a shell and then running applications there.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions