[Lldb-commits] [lldb] r124305 - /lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp

Jim Ingham jingham at apple.com
Wed Jan 26 11:10:34 PST 2011


Author: jingham
Date: Wed Jan 26 13:10:34 2011
New Revision: 124305

URL: http://llvm.org/viewvc/llvm-project?rev=124305&view=rev
Log:
Typo in looking up the stored address breakpoints, could cause us to look too far for breakpoints.

Modified:
    lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp

Modified: lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp?rev=124305&r1=124304&r2=124305&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanRunToAddress.cpp Wed Jan 26 13:10:34 2011
@@ -247,7 +247,8 @@
 {
     lldb::addr_t current_address = m_thread.GetRegisterContext()->GetPC();
     bool found_it = false;
-    for (size_t i = 0; i < m_addresses[i]; i++)
+    size_t num_addresses = m_addresses.size();
+    for (size_t i = 0; i < num_addresses; i++)
     {
         if (m_addresses[i] == current_address)
         {





More information about the lldb-commits mailing list