[Lldb-commits] [lldb] r116908 - in /lldb/trunk/source/Breakpoint: Breakpoint.cpp BreakpointLocationList.cpp

Jim Ingham jingham at apple.com
Tue Oct 19 20:36:33 PDT 2010


Author: jingham
Date: Tue Oct 19 22:36:33 2010
New Revision: 116908

URL: http://llvm.org/viewvc/llvm-project?rev=116908&view=rev
Log:
Don't re-insert disabled breakpoint locations.

Modified:
    lldb/trunk/source/Breakpoint/Breakpoint.cpp
    lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp

Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Breakpoint.cpp?rev=116908&r1=116907&r2=116908&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/Breakpoint.cpp (original)
+++ lldb/trunk/source/Breakpoint/Breakpoint.cpp Tue Oct 19 22:36:33 2010
@@ -290,6 +290,8 @@
             for (size_t j = 0; j < m_locations.GetSize(); j++)
             {
                 BreakpointLocationSP break_loc = m_locations.GetByIndex(j);
+                if (!break_loc->IsEnabled())
+                    continue;
                 const Section *section = break_loc->GetAddress().GetSection();
                 if (section == NULL || section->GetModule() == module)
                 {

Modified: lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp?rev=116908&r1=116907&r2=116908&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointLocationList.cpp Tue Oct 19 22:36:33 2010
@@ -260,7 +260,10 @@
     collection::iterator pos, end = m_locations.end();
 
     for (pos = m_locations.begin(); pos != end; ++pos)
-        (*pos)->ResolveBreakpointSite();
+    {
+        if ((*pos)->IsEnabled())
+            (*pos)->ResolveBreakpointSite();
+    }
 }
 
 uint32_t





More information about the lldb-commits mailing list