From f591f69fc34ead423d654950893aabdea63082c6 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Thu, 26 Feb 2015 19:48:15 +0000 Subject: 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 --- lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp') diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp index ff52bf9c134a..891155fa131b 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp @@ -218,6 +218,8 @@ NativeThreadLinux::SetWatchpoint (lldb::addr_t addr, size_t size, uint32_t watch { 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 (); -- cgit v1.2.3