[Lldb-commits] [lldb] r181447 - Attempt to fix failing watchpoints for debian os buildbot.
Matt Kopec
Matt.Kopec at intel.com
Wed May 8 09:10:09 PDT 2013
Author: mkopec
Date: Wed May 8 11:10:09 2013
New Revision: 181447
URL: http://llvm.org/viewvc/llvm-project?rev=181447&view=rev
Log:
Attempt to fix failing watchpoints for debian os buildbot.
Modified:
lldb/trunk/source/Plugins/Process/POSIX/POSIXThread.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/POSIXThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/POSIXThread.cpp?rev=181447&r1=181446&r2=181447&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/POSIXThread.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/POSIXThread.cpp Wed May 8 11:10:09 2013
@@ -363,6 +363,20 @@ POSIXThread::WatchNotify(const ProcessMe
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));
}
More information about the lldb-commits
mailing list