Fixed code rot pointed out by Jim.

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

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

No files matched your search

+2 -4
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();