Added a SetData() method to ValueObject. This
authorSean Callanan <scallanan@apple.com>
Sat, 13 Apr 2013 01:21:23 +0000 (01:21 +0000)
committerSean Callanan <scallanan@apple.com>
Sat, 13 Apr 2013 01:21:23 +0000 (01:21 +0000)
commit389823e99594aa3a06f5b6218d07252f7ce0d567
treecd128f9228a9755b37b08401f9ec2d82df9ec80a
parent53a65587714c6cb65f428cd283f2bb77aee6d784
Added a SetData() method to ValueObject.  This
lets a ValueObject's contents be set from raw
data.  This has certain limitations (notably,
registers can only be set to data that is as
large as the register) but will be useful for
the new Materializer.

I also exposed this interface through SBValue.
I have added a testcase that exercises various
special cases of SBValue::SetData().

llvm-svn: 179437
13 files changed:
lldb/include/lldb/API/SBValue.h
lldb/include/lldb/Core/Scalar.h
lldb/include/lldb/Core/ValueObject.h
lldb/include/lldb/Core/ValueObjectDynamicValue.h
lldb/include/lldb/Core/ValueObjectRegister.h
lldb/source/API/SBValue.cpp
lldb/source/Core/Scalar.cpp
lldb/source/Core/ValueObject.cpp
lldb/source/Core/ValueObjectDynamicValue.cpp
lldb/source/Core/ValueObjectRegister.cpp
lldb/test/functionalities/set-data/Makefile [new file with mode: 0644]
lldb/test/functionalities/set-data/TestSetData.py [new file with mode: 0644]
lldb/test/functionalities/set-data/main.m [new file with mode: 0644]