Can't set watchpoints on launching threads on Linux LLGS.
Summary:
They'll be set anyway when the thread starts running, so the launching threads
should just ignore the set request.
Reviewers: ovyalov
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D7914
llvm-svn: 230671
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index ff52bf9..891155f 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
@@ -218,6 +218,8 @@
{
if (!hardware)
return Error ("not implemented");
+ if (m_state == eStateLaunching)
+ return Error ();
Error error = RemoveWatchpoint(addr);
if (error.Fail()) return error;
NativeRegisterContextSP reg_ctx = GetRegisterContext ();