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 | |
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')
-rw-r--r-- | lldb/include/lldb/API/SBValue.h | 6 | ||||
-rw-r--r-- | lldb/scripts/interface/SBValue.i | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h index 232546a0c31..a7e015064f9 100644 --- a/lldb/include/lldb/API/SBValue.h +++ b/lldb/include/lldb/API/SBValue.h @@ -204,7 +204,11 @@ public: /// pointer to a 'Point' type, then the child at index zero will be /// 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 SBValue::Dereference. + /// /// 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 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 |