Skip to content

Commit

Permalink
Can't set watchpoints on launching threads on Linux LLGS.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chaoren committed Feb 26, 2015
1 parent adbb3f2 commit f591f69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
Expand Up @@ -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 ();
Expand Down

0 comments on commit f591f69

Please sign in to comment.