[ValueObject::GetPointeeData] Get addr from value for eValueHostAddress values.
authorSiva Chandra <sivachandra@google.com>
Tue, 5 May 2015 00:41:35 +0000 (00:41 +0000)
committerSiva Chandra <sivachandra@google.com>
Tue, 5 May 2015 00:41:35 +0000 (00:41 +0000)
commite32f2b57ffc1e1babacca392c560ba2723b2da0b
treef83625dd9c50b3984d8b3fa9fcfa2ef99af73efe
parentac31a1f141c0daf31419c6d3c2502abda79d3d77
[ValueObject::GetPointeeData] Get addr from value for eValueHostAddress values.

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.

Test Plan: ninja check-lldb on linux

Reviewers: clayborg, ovyalov

Reviewed By: ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9490

llvm-svn: 236473
lldb/source/Core/ValueObject.cpp