diff options
Diffstat (limited to 'lldb/source/API/SBFrame.cpp')
-rw-r--r-- | lldb/source/API/SBFrame.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index 8931e70581c..9f4709fac9e 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -718,15 +718,23 @@ SBFrame::FindValue (const char *name, ValueType value_type, lldb::DynamicValueTy } bool +SBFrame::IsEqual (const SBFrame &that) const +{ + lldb::StackFrameSP this_sp = GetFrameSP(); + lldb::StackFrameSP that_sp = that.GetFrameSP(); + return (this_sp && that_sp && this_sp->GetStackID() == that_sp->GetStackID()); +} + +bool SBFrame::operator == (const SBFrame &rhs) const { - return GetFrameSP().get() == rhs.GetFrameSP().get(); + return IsEqual(rhs); } bool SBFrame::operator != (const SBFrame &rhs) const { - return GetFrameSP().get() != rhs.GetFrameSP().get(); + return !IsEqual(rhs); } SBThread |