Typo in looking up the stored address breakpoints, could cause us to look too far for breakpoints.

llvm-svn: 124305
This commit is contained in:
Jim Ingham
2011-01-26 19:10:34 +00:00
parent 9b23df5903
commit 4bf570d618

View File

@@ -247,7 +247,8 @@ ThreadPlanRunToAddress::AtOurAddress ()
{
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)
{