[Lldb-commits] [lldb] r206040 - Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID.

Greg Clayton gclayton at apple.com
Fri Apr 11 10:27:02 PDT 2014


Author: gclayton
Date: Fri Apr 11 12:27:02 2014
New Revision: 206040

URL: http://llvm.org/viewvc/llvm-project?rev=206040&view=rev
Log:
Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID.

Patch from Vyacheslav Karpukhin.

Modified:
    lldb/trunk/source/API/SBThread.cpp

Modified: lldb/trunk/source/API/SBThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBThread.cpp?rev=206040&r1=206039&r2=206040&view=diff
==============================================================================
--- lldb/trunk/source/API/SBThread.cpp (original)
+++ lldb/trunk/source/API/SBThread.cpp Fri Apr 11 12:27:02 2014
@@ -229,7 +229,7 @@ SBThread::GetStopReasonDataAtIndex (uint
                             BreakpointLocationSP bp_loc_sp (bp_site_sp->GetOwnerAtIndex (bp_index));
                             if (bp_loc_sp)
                             {
-                                if (bp_index & 1)
+                                if (idx & 1)
                                 {
                                     // Odd idx, return the breakpoint location ID
                                     return bp_loc_sp->GetID();





More information about the lldb-commits mailing list