From 5d88a068eed8625b9668db9f6b254ae5d2a0e187 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 16 Oct 2012 00:09:33 +0000 Subject: Patch from Matt Kopec to fix the problem that if two breakpoints were set on consecutive addresses, the continue from the first breakpoint would skip the second. llvm-svn: 166000 --- lldb/source/Plugins/Process/Utility/ThreadMemory.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/Process/Utility/ThreadMemory.cpp') diff --git a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp index 9e4c6d60733..cd3bd8c3105 100644 --- a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp +++ b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp @@ -107,6 +107,9 @@ ThreadMemory::GetPrivateStopReason () if (m_thread_stop_reason_stop_id != process_stop_id || (m_actual_stop_info_sp && !m_actual_stop_info_sp->IsValid())) { + if (IsStillAtLastBreakpointHit()) + return m_actual_stop_info_sp; + // If GetGDBProcess().SetThreadStopInfo() doesn't find a stop reason // for this thread, then m_actual_stop_info_sp will not ever contain // a valid stop reason and the "m_actual_stop_info_sp->IsValid() == false" -- cgit v1.2.3