diff options
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h')
-rw-r--r-- | contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h b/contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h index 3874a60e06f0..2d62fa37a24c 100644 --- a/contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h +++ b/contrib/llvm-project/lldb/include/lldb/Expression/UserExpression.h @@ -280,6 +280,23 @@ protected: static lldb::addr_t GetObjectPointer(lldb::StackFrameSP frame_sp, ConstString &object_name, Status &err); + /// Return ValueObject for a given variable name in the current stack frame + /// + /// \param[in] frame Current stack frame. When passed a 'nullptr', this + /// function returns an empty ValueObjectSP. + /// + /// \param[in] object_name Name of the variable in the current stack frame + /// for which we want the ValueObjectSP. + /// + /// \param[out] err Status object which will get set on error. + /// + /// \returns On success returns a ValueObjectSP corresponding to the variable + /// with 'object_name' in the current 'frame'. Otherwise, returns + /// 'nullptr' (and sets the error status parameter 'err'). + static lldb::ValueObjectSP + GetObjectPointerValueObject(lldb::StackFrameSP frame, + ConstString const &object_name, Status &err); + /// Populate m_in_cplusplus_method and m_in_objectivec_method based on the /// environment. |