forked from OSchip/llvm-project
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:
parent
ba31312f63
commit
b6f76b3d47
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue