Fixed code rot pointed out by Jim.

SBThread::GetStopReasonDataCount/GetStopReasonDataAtIndex() need to handle eStopReasonWatchpoint.

llvm-svn: 146812
This commit is contained in:
Johnny Chen
2011-12-17 02:07:52 +00:00
parent 4de1090322
commit 290fa41bf6
3 changed files with 4 additions and 6 deletions

View File

@@ -141,8 +141,7 @@ SBThread::GetStopReasonDataCount ()
break;
case eStopReasonWatchpoint:
assert (!"implement watchpoint support in SBThread::GetStopReasonDataCount ()");
return 0; // We don't have watchpoint support yet...
return 1;
case eStopReasonSignal:
return 1;
@@ -201,8 +200,7 @@ SBThread::GetStopReasonDataAtIndex (uint32_t idx)
break;
case eStopReasonWatchpoint:
assert (!"implement watchpoint support in SBThread::GetStopReasonDataCount ()");
return 0; // We don't have watchpoint support yet...
return stop_info_sp->GetValue();
case eStopReasonSignal:
return stop_info_sp->GetValue();