This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [DynamicRegisterInfo] Support value_regs with offset
ClosedPublic

Authored by mgorny on Oct 9 2021, 6:53 AM.

Details

Summary

Support specifying an offset for value_regs[0], and add the offset
to the computed derived register offset. This makes it possible to
e.g. create the "ah" register on x86.

Diff Detail

Event Timeline

mgorny created this revision.Oct 9 2021, 6:53 AM
mgorny requested review of this revision.Oct 9 2021, 6:53 AM
labath accepted this revision.Oct 11 2021, 4:53 AM
labath added inline comments.
lldb/unittests/Target/DynamicRegisterInfoTest.cpp
209–223

I don't know when this slipped through, but I think that the distinction between these two assert blocks is too subtle -- they're testing completely different things, so I think they deserve different names.

This revision is now accepted and ready to land.Oct 11 2021, 4:53 AM
This revision was landed with ongoing or failed builds.Oct 15 2021, 3:55 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2021, 3:55 AM