This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Process/FreeBSDRemote] Optimize regset pointer logic
ClosedPublic

Authored by mgorny on Nov 13 2020, 3:51 AM.

Details

Summary

Create a helper GetOffsetRegSetData() method to get pointer
to the regset data accounting for the necessary offset. Establish
the offsets in the constructor and store them in the structure. This
avoids having to add new Get*Offset() methods and combines some common
code.

Diff Detail