• W
    ARM: hw_breakpoint: disallow per-cpu breakpoints without overflow handler · 3ce70b2e
    Will Deacon 提交于
    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: NWill Deacon <will.deacon@arm.com>
    3ce70b2e
hw_breakpoint.c 22.6 KB