llvm-project/lldb/examples/python
Greg Clayton 0a94b6614a 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!

llvm-svn: 149260
2012-01-30 19:32:25 +00:00
..
cmdtemplate.py Added a 'gdbremote' python module that adds two commands: start_gdb_log and end_gdb_log. 2012-01-26 02:56:24 +00:00
crashlog.py Added options to specify how many instructions before and after the frame 2012-01-21 05:10:20 +00:00
disasm.py Add usage docstring to SBValue.h, and minor update of docstrings for SBValueList.h. 2011-07-15 00:27:47 +00:00
gdbremote.py Added a 'gdbremote' python module that adds two commands: start_gdb_log and end_gdb_log. 2012-01-26 02:56:24 +00:00
sbvalue.py Added a new lldb.SBValue helper module that has two classes: 2012-01-30 19:32:25 +00:00
symbolicate-crash.py Allow the crash log file path to contain an initial tilde component. 2011-10-06 23:36:00 +00:00