Typo in looking up the stored address breakpoints, could cause us to look too far for breakpoints.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124305 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/ThreadPlanRunToAddress.cpp b/source/Target/ThreadPlanRunToAddress.cpp
index 2dc9daa..2394545 100644
--- a/source/Target/ThreadPlanRunToAddress.cpp
+++ b/source/Target/ThreadPlanRunToAddress.cpp
@@ -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)
{