diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-11 16:20:15 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-11 16:20:15 +0000 |
commit | 851eacb50770541632651664c44f4ac4c94ed85c (patch) | |
tree | 1916529bdcde4868d7eef784e65e58bfab25b82a /lldb/scripts/Python/interface | |
parent | f6e07b995123637e340280ac19a1841f9bbe9fac (diff) | |
download | bcm5719-llvm-851eacb50770541632651664c44f4ac4c94ed85c.tar.gz bcm5719-llvm-851eacb50770541632651664c44f4ac4c94ed85c.zip |
Added a property to get the dynamic type which uses the most permissive way to get a dynamic type.
llvm-svn: 154502
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBValue.i | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 2b66b500cf7..d529e656099 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -379,7 +379,10 @@ public: GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes); %pythoncode %{ - + def __get_dynamic__ (self): + '''Helper function for the "SBValue.dynamic" property.''' + return self.GetDynamicValue (eDynamicCanRunTarget) + __swig_getmethods__["name"] = GetName if _newclass: name = property(GetName, None, doc='Returns the name of this SBValue as a string') @@ -429,7 +432,10 @@ public: __swig_getmethods__["description"] = GetObjectDescription if _newclass: description = property(GetObjectDescription, None, doc='Returns the language-specific description of this SBValue as a string') - + + __swig_getmethods__["dynamic"] = __get_dynamic__ + if _newclass: description = property(__get_dynamic__, None, doc='Gets the dynamic type for a value') + __swig_getmethods__["location"] = GetLocation if _newclass: location = property(GetLocation, None, doc='Returns the location of this SBValue as a string') |