This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix offset intersection bug between MPX and AVX registers
ClosedPublic

Authored by guiandrade on Oct 11 2019, 9:21 AM.

Details

Summary

This change increases the offset of MPX registers (by 128) so they
do not overlap with the offset associated with AVX registers. That was
causing MPX data in GDBRemoteRegisterContext::m_reg_data to get overwritten.

Diff Detail

Event Timeline

guiandrade created this revision.Oct 11 2019, 9:21 AM
labath accepted this revision.Oct 14 2019, 12:35 AM

Thanks for doing this, and especially thank you for writing the test.

For posterity: more discussion on this patch and the problem it solves can be found in https://reviews.llvm.org/D62931.

This revision is now accepted and ready to land.Oct 14 2019, 12:35 AM
This revision was automatically updated to reflect the committed changes.