diff options
| author | Matt Kopec <Matt.Kopec@intel.com> | 2013-05-08 16:10:09 +0000 |
|---|---|---|
| committer | Matt Kopec <Matt.Kopec@intel.com> | 2013-05-08 16:10:09 +0000 |
| commit | 667f12b53d84ccdfdd334c45fba021e710734019 (patch) | |
| tree | 0383437eecd2e8545fc96f248ae9e94c6a3534e8 | |
| parent | 5d3e8a62e01292412badaa6fa7489229f44092b7 (diff) | |
| download | bcm5719-llvm-667f12b53d84ccdfdd334c45fba021e710734019.tar.gz bcm5719-llvm-667f12b53d84ccdfdd334c45fba021e710734019.zip | |
Attempt to fix failing watchpoints for debian os buildbot.
llvm-svn: 181447
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/POSIXThread.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp index 8e8f0c0024e..1d43201a08d 100644 --- a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp +++ b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp @@ -363,6 +363,20 @@ POSIXThread::WatchNotify(const ProcessMessage &message) void POSIXThread::TraceNotify(const ProcessMessage &message) { + RegisterContextPOSIX* reg_ctx = GetRegisterContextPOSIX(); + if (reg_ctx) + { + uint32_t num_hw_wps = reg_ctx->NumSupportedHardwareWatchpoints(); + uint32_t wp_idx; + for (wp_idx = 0; wp_idx < num_hw_wps; wp_idx++) + { + if (reg_ctx->IsWatchpointHit(wp_idx)) + { + WatchNotify(message); + return; + } + } + } SetStopInfo (StopInfo::CreateStopReasonToTrace(*this)); } |

