diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-04 02:27:34 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-04 02:27:34 +0000 |
commit | 81e871ed761101fb065a097b5b9351e179964d1a (patch) | |
tree | 8c23b46dff2d3d1953620bcebd77d445a2793358 /lldb/source/Core/ValueObjectDynamicValue.cpp | |
parent | d0ba3793aab037c831a0cefeafda8398591f5497 (diff) | |
download | bcm5719-llvm-81e871ed761101fb065a097b5b9351e179964d1a.tar.gz bcm5719-llvm-81e871ed761101fb065a097b5b9351e179964d1a.zip |
Convert all python objects in our API to use overload the __str__ method
instead of the __repr__. __repr__ is a function that should return an
expression that can be used to recreate an python object and we were using
it to just return a human readable string.
Fixed a crasher when using the new implementation of SBValue::Cast(SBType).
Thread hardened lldb::SBValue and lldb::SBWatchpoint and did other general
improvements to the API.
Fixed a crasher in lldb::SBValue::GetChildMemberWithName() where we didn't
correctly handle not having a target.
llvm-svn: 149743
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index b55d927b760..5ea7993411b 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -34,6 +34,14 @@ using namespace lldb_private; +lldb::ValueObjectSP +ValueObjectCast::Create (ValueObject &parent, + const ConstString &name, + const ClangASTType &cast_type) +{ + ValueObjectCast *cast_valobj_ptr = new ValueObjectCast (parent, name, cast_type); + return cast_valobj_ptr->GetSP(); +} ValueObjectCast::ValueObjectCast ( |