diff options
| author | Jim Ingham <jingham@apple.com> | 2014-07-02 18:44:43 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2014-07-02 18:44:43 +0000 |
| commit | e029fa57819b45ef736fa272ef575e552acfa6cc (patch) | |
| tree | 9df0f970ca5f57a0f8e2480f49f941abe4d56b20 /lldb/source/API | |
| parent | 9408f5282e56ec5b963abfdafd090c20ad8f8ca9 (diff) | |
| download | bcm5719-llvm-e029fa57819b45ef736fa272ef575e552acfa6cc.tar.gz bcm5719-llvm-e029fa57819b45ef736fa272ef575e552acfa6cc.zip | |
If a breakpoint gets deleted, any SBBreakpoints representing that
breakpoint should return false from IsValid.
llvm-svn: 212206
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/SBBreakpoint.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/API/SBBreakpoint.cpp b/lldb/source/API/SBBreakpoint.cpp index eb379ab12ce..a950ca934c6 100644 --- a/lldb/source/API/SBBreakpoint.cpp +++ b/lldb/source/API/SBBreakpoint.cpp @@ -138,7 +138,12 @@ SBBreakpoint::GetID () const bool SBBreakpoint::IsValid() const { - return (bool) m_opaque_sp; + if (!m_opaque_sp) + return false; + else if (m_opaque_sp->GetTarget().GetBreakpointByID(m_opaque_sp->GetID())) + return true; + else + return false; } void |

