forked from OSchip/llvm-project
Fixed code rot pointed out by Jim.
SBThread::GetStopReasonDataCount/GetStopReasonDataAtIndex() need to handle eStopReasonWatchpoint. llvm-svn: 146812
This commit is contained in:
parent
4de1090322
commit
290fa41bf6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue