This is an archive of the discontinued LLVM Phabricator instance.

[ValueObject::GetPointeeData] Get addr from value for eValueHostAddress values.
ClosedPublic

Authored by sivachandra on May 4 2015, 4:15 PM.

Details

Summary

After r236447, ValueObject::GetAddressOf returns LLDB_INVALID_ADDRESS
when the value type is eValueHostAddress. For such a case, clients of
GetAddressOf should get the address from the scalar part of the value
instead of using the value returned by GetAddressOf directly.

This change also makes ValueObject::GetAddressOf set the address type to
eAddressTypeHost for values of eValueHostAddress so that clients can
recognize that they need to fetch the address from the scalar part
of the value.

Diff Detail

Event Timeline

sivachandra updated this revision to Diff 24924.May 4 2015, 4:15 PM
sivachandra retitled this revision from to [ValueObject::GetPointeeData] Get addr from value for eValueHostAddress values..
sivachandra updated this object.
sivachandra edited the test plan for this revision. (Show Details)
sivachandra added a reviewer: clayborg.
sivachandra added a subscriber: Unknown Object (MLST).
ovyalov accepted this revision.May 4 2015, 5:43 PM
ovyalov edited edge metadata.

lgtm

This revision is now accepted and ready to land.May 4 2015, 5:43 PM
sivachandra closed this revision.May 4 2015, 5:44 PM
clayborg edited edge metadata.May 5 2015, 10:09 AM

Looks good.