diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-01 01:46:19 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-01 01:46:19 +0000 |
commit | 05e8d1944678f1dc07667e60be5975c127db1ced (patch) | |
tree | b9bb1beda66cd2b8280764a112ccbb4539de724f /lldb/source/Target/ObjCLanguageRuntime.cpp | |
parent | 7bb0067c06ef896092448f14de390b7b485c5c3d (diff) | |
download | bcm5719-llvm-05e8d1944678f1dc07667e60be5975c127db1ced.tar.gz bcm5719-llvm-05e8d1944678f1dc07667e60be5975c127db1ced.zip |
Added a new class to the lldb python module:
lldb.value()
It it designed to be given a lldb.SBValue object and it allows natural
use of a variable value:
pt = lldb.value(lldb.frame.FindVariable("pt"))
print pt
print pt.x
print pt.y
pt = lldb.frame.FindVariable("rectangle_array")
print rectangle_array[12]
print rectangle_array[5].origin.x
Note that array access works just fine and works on arrays or pointers:
pt = lldb.frame.FindVariable("point_ptr")
print point_ptr[5].y
Also note that pointer child accesses are done using a "." instead of "->":
print point_ptr.x
llvm-svn: 149464
Diffstat (limited to 'lldb/source/Target/ObjCLanguageRuntime.cpp')
-rw-r--r-- | lldb/source/Target/ObjCLanguageRuntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/ObjCLanguageRuntime.cpp b/lldb/source/Target/ObjCLanguageRuntime.cpp index bc9bee79768..00d3aa4f47f 100644 --- a/lldb/source/Target/ObjCLanguageRuntime.cpp +++ b/lldb/source/Target/ObjCLanguageRuntime.cpp @@ -1,4 +1,4 @@ -//===-- CPPLanguageRuntime.cpp -------------------------------------------------*- C++ -*-===// +//===-- ObjCLanguageRuntime.cpp ---------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // |