History log of /external/lldb/examples/python/sbvalue.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
573d85c4dbfcf7d4c518a47f3354371715e853bf 30-Jan-2012 Greg Clayton <gclayton@apple.com> Added a new lldb.SBValue helper module that has two classes:

sbvalue.value (<SBValue>)
sbvalue.variable (<SBValue>)

Initialize both with a lldb.SBValue

sbvalue.value() make all sorts of convenience properties. Type "help(sbvalue.value)"
in the embedded python interpreter to see what is available.

sbvalue.variable() wraps a lldb.SBValue and allows you to play with your variable just
as you would expect:

pt = sbvalue.variable (lldb.frame.FindVariable("pt"))

print pt.x
print py.y

argv = sbvalue.variable (lldb.frame.FindVariable("argv"))
print argv[0]

Member access and array acccess is all taken care of!



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@149260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/sbvalue.py