Register value is not necessarily scalar.

Reviewers: aidan.dodds, mamai

Subscribers: lldb-commits

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

llvm-svn: 262081
This commit is contained in:
Chaoren Lin 2016-02-26 22:12:35 +00:00
parent ba31312f63
commit b6f76b3d47
1 changed files with 262 additions and 261 deletions

View File

@ -1278,11 +1278,12 @@ public:
Error write_error;
Scalar scalar;
reg_value.GetScalarValue(scalar);
if (reg_value.GetScalarValue(scalar)) {
lldbassert(scalar.GetByteSize() == register_data.GetByteSize());
map.WriteScalarToMemory(load_addr, scalar, scalar.GetByteSize(), write_error);
} else {
map.WriteMemory(load_addr, register_data.GetDataStart(), register_data.GetByteSize(), write_error);
}
if (!write_error.Success())
{