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

@ -53,7 +53,7 @@ public:
/// eStopReasonNone 0
/// eStopReasonTrace 0
/// eStopReasonBreakpoint N duple: {breakpoint id, location id}
/// eStopReasonWatchpoint N duple: {watchpoint id, location id}
/// eStopReasonWatchpoint 1 watchpoint id
/// eStopReasonSignal 1 unix signal number
/// eStopReasonException N exception data
/// eStopReasonPlanComplete 0

View File

@ -70,7 +70,7 @@ public:
/// eStopReasonNone 0
/// eStopReasonTrace 0
/// eStopReasonBreakpoint N duple: {breakpoint id, location id}
/// eStopReasonWatchpoint N duple: {watchpoint id, location id}
/// eStopReasonWatchpoint 1 watchpoint id
/// eStopReasonSignal 1 unix signal number
/// eStopReasonException N exception data
/// eStopReasonPlanComplete 0

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();