summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-12-17 02:07:52 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-12-17 02:07:52 +0000
commit290fa41bf63cd2f06805224a435389e08098e76d (patch)
tree8087c28420be9c1cebca64ba18876d3bcfa25b30 /lldb/source/API
parent4de1090322ab6135ee3903eead08fb983717c2ab (diff)
downloadbcm5719-llvm-290fa41bf63cd2f06805224a435389e08098e76d.tar.gz
bcm5719-llvm-290fa41bf63cd2f06805224a435389e08098e76d.zip
Fixed code rot pointed out by Jim.
SBThread::GetStopReasonDataCount/GetStopReasonDataAtIndex() need to handle eStopReasonWatchpoint. llvm-svn: 146812
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBThread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 9ea28772978..8ed211cdf4a 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -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();
OpenPOWER on IntegriCloud