Page MenuHomeFreeBSD

Add helper to catch single step debug event and distinguish it from bkpt
ClosedPublic

Authored by zbb on Oct 30 2015, 4:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Aug 3 2023, 5:18 PM
Unknown Object (File)
Aug 3 2023, 5:16 PM
Unknown Object (File)
Aug 3 2023, 5:16 PM
Unknown Object (File)
Aug 3 2023, 5:01 PM
Unknown Object (File)
Jun 16 2023, 9:25 AM
Unknown Object (File)
Jun 13 2023, 4:45 PM
Unknown Object (File)
Jun 11 2023, 1:43 PM
Unknown Object (File)
Jun 3 2023, 5:20 PM
Subscribers

Details

Summary

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().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zbb retitled this revision from to Add helper to catch single step debug event and distinguish it from bkpt.
zbb updated this object.
zbb edited the test plan for this revision. (Show Details)
zbb added reviewers: pfg, imp, ian.
zbb set the repository for this revision to rS FreeBSD src repository - subversion.

Any comments to this one :-) ?

pfg added a subscriber: zbb.

My FreeBSD box is unavailable at this time, which makes it difficult
to comment on phabricator :(.

The patch looks good to me though.

Pedro.

Il giorno 05/nov/2015, alle ore 09:50, zbb (Zbigniew Bodek) <phabric-noreply@FreeBSD.org> ha scritto:

zbb added a comment.

Ping?

REPOSITORY
rS FreeBSD src repository

REVISION DETAIL
https://reviews.freebsd.org/D4036

EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/

To: zbb, pfg, imp, ian, andrew, wma_semihalf.com

imp edited edge metadata.
This revision is now accepted and ready to land.Nov 5 2015, 3:12 PM
This revision was automatically updated to reflect the committed changes.