diff options
| author | Jim Ingham <jingham@apple.com> | 2015-12-04 22:51:19 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2015-12-04 22:51:19 +0000 |
| commit | 6dd8aa2ed26bef9db6b07464117035a1d87bf417 (patch) | |
| tree | c73603976053b72317aa452aa60e0cd360cd8ef5 /lldb/scripts/interface | |
| parent | c8bdae10746987ab395878116b736ff2a881374e (diff) | |
| download | bcm5719-llvm-6dd8aa2ed26bef9db6b07464117035a1d87bf417.tar.gz bcm5719-llvm-6dd8aa2ed26bef9db6b07464117035a1d87bf417.zip | |
Make it clear how you would get the pointee out of an SBValue with
GetType().IsPointerType() returns true.
llvm-svn: 254790
Diffstat (limited to 'lldb/scripts/interface')
| -rw-r--r-- | lldb/scripts/interface/SBValue.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBValue.i b/lldb/scripts/interface/SBValue.i index ff201d402ee..5049fd05794 100644 --- a/lldb/scripts/interface/SBValue.i +++ b/lldb/scripts/interface/SBValue.i @@ -210,6 +210,11 @@ public: /// the 'x' member, and the child at index 1 will be the 'y' member /// (the child at index zero won't be a 'Point' instance). /// + /// If you actually need an SBValue that represents the type pointed + /// to by a SBValue for which GetType().IsPointeeType() returns true, + /// regardless of the pointee type, you can do that with the SBValue.Dereference + /// method (or the equivalent deref property). + /// /// Arrays have a preset number of children that can be accessed by /// index and will returns invalid child values for indexes that are /// out of bounds unless the \a synthetic_allowed is \b true. In this |

