Page MenuHomeFreeBSD

Add support for setting hardware breakpoints from ptrace on arm64
ClosedPublic

Authored by andrew on Wed, Oct 30, 3:33 PM.

Details

Summary

Implement get/fill_dbregs on arm64. This is used by ptrace with the
PT_GETDBREGS and PT_SETDBREGS requests. It allows userspace to set
hardware breakpoints.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

andrew created this revision.Wed, Oct 30, 3:33 PM
jhb accepted this revision.Fri, Nov 1, 5:57 PM

Looks ok to me.

sys/arm64/arm64/machdep.c
297 ↗(On Diff #63799)

s/breakpointe/breakpoints/

This revision is now accepted and ready to land.Fri, Nov 1, 5:57 PM