Introduce arm64 support in the FreeBSDRemote plugin. The code
is roughly based on Linux and reuses the same POSIX RegisterInfos
(but the buffers need to be a few bytes larger due to stricter struct
member alignment in FreeBSD structures -- luckily, they do not affect
the actual member offsets). It supports reading and writing
general-purpose and FPU registers. SVE and hardware watchpoint support
is missing due to the limitations of FreeBSD ptrace(2) API.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
To add a little background, the FreeBSD Foundation is funding this effort to move all FreeBSD targets to lldb-server; amd64 and arm64 are our primary targets of interest while other supported FreeBSD architectures (32-bit arm, 32- and 64-bit mips, 32- and 64-bit powerpc, 64-bit risc-v) are intended to be handled on a best-effort basis, depending in part on whether FreeBSD folks with an interest in those platforms are available to help test.
Comment Actions
This looks fine to me (and sorry about the delay). There are some defensive checks that I think could be upgraded to asserts (or even deleted), but these are consistent with the other register contexts, so I am not going to make a fuss about it.