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
This commit is contained in:
Chaoren Lin 2015-02-26 19:48:15 +00:00
parent adbb3f207f
commit f591f69fc3
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ NativeThreadLinux::SetWatchpoint (lldb::addr_t addr, size_t size, uint32_t watch
{ {
if (!hardware) if (!hardware)
return Error ("not implemented"); return Error ("not implemented");
if (m_state == eStateLaunching)
return Error ();
Error error = RemoveWatchpoint(addr); Error error = RemoveWatchpoint(addr);
if (error.Fail()) return error; if (error.Fail()) return error;
NativeRegisterContextSP reg_ctx = GetRegisterContext (); NativeRegisterContextSP reg_ctx = GetRegisterContext ();