]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add helper to catch single step debug event and distinguish it from bkpt
authorzbb <zbb@FreeBSD.org>
Fri, 27 Nov 2015 19:03:59 +0000 (19:03 +0000)
committerzbb <zbb@FreeBSD.org>
Fri, 27 Nov 2015 19:03:59 +0000 (19:03 +0000)
commit486953399a5b9ac2d5d2e6af4189733f3a7f04cb
tree891713b60c46fa1427c7d0e19f619f334253671e
parentab35544b83d7494b58b4327d7a9e6d66da7ab579
Add helper to catch single step debug event and distinguish it from bkpt

Some architectures (including ARMv6/v7) do not have separate single step
events and cannot see difference between breakpoint and single step.
Add db_pc_is_singlestep() to avoid skipping instruction we stepped on
to trigger debug event.
This commit does not change the existing functionality but adds possibility
to implement custom db_pc_is_singlestep().

Reviewed by:   imp
Submitted by:  Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4036
sys/ddb/db_run.c