This is an archive of the discontinued LLVM Phabricator instance.

Fix TestStopReplyContainsThreadPcs on 32-bit x86 (pr36013)
ClosedPublic

Authored by labath on Feb 16 2018, 2:07 AM.

Details

Summary

The issue was that we were parsing the registers into 64-bit integers
and the calling swapByteOrder without regard for the actual size of the
register. This switches the test to use the RegisterValue class which
tracks the register size, and knows how to initialize itself from a
piece of memory (so we don't need to swap byte order ourselves).

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Feb 16 2018, 2:07 AM
davide accepted this revision.Feb 16 2018, 7:52 AM

lgtm

This revision is now accepted and ready to land.Feb 16 2018, 7:52 AM
This revision was automatically updated to reflect the committed changes.