Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID.

Patch from Vyacheslav Karpukhin.

llvm-svn: 206040
This commit is contained in:
Greg Clayton
2014-04-11 17:27:02 +00:00
parent d893142595
commit 8334e14efc

View File

@@ -229,7 +229,7 @@ SBThread::GetStopReasonDataAtIndex (uint32_t idx)
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();