[lldb-dev] [PATCH] Temporarily disable watchpoint forwarding on FreeBSD

Ed Maste emaste at freebsd.org
Tue Jun 18 14:07:45 PDT 2013


IsWatchpointHit seems to be falsely returning true on FreeBSD, so disable
it for now while addressing more fundamental issues.
---
 source/Plugins/Process/POSIX/POSIXThread.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/Plugins/Process/POSIX/POSIXThread.cpp b/source/Plugins/Process/POSIX/POSIXThread.cpp
index daff408..7da19d7 100644
--- a/source/Plugins/Process/POSIX/POSIXThread.cpp
+++ b/source/Plugins/Process/POSIX/POSIXThread.cpp
@@ -417,6 +417,7 @@ POSIXThread::WatchNotify(const ProcessMessage &message)
 void
 POSIXThread::TraceNotify(const ProcessMessage &message)
 {
+#ifndef __FreeBSD__
     RegisterContextPOSIX* reg_ctx = GetRegisterContextPOSIX();
     if (reg_ctx)
     {
@@ -431,6 +432,7 @@ POSIXThread::TraceNotify(const ProcessMessage &message)
             }
         }
     }
+#endif
     SetStopInfo (StopInfo::CreateStopReasonToTrace(*this));
 }
 
-- 
1.7.11.5




More information about the lldb-dev mailing list