diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-02-26 19:48:15 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-02-26 19:48:15 +0000 |
| commit | f591f69fc34ead423d654950893aabdea63082c6 (patch) | |
| tree | f7bc810fc01af3f29784bc3d10576affe4a818d0 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | |
| parent | adbb3f207fba14e40f737c968bb78c63dc12b65a (diff) | |
| download | llvm-f591f69fc34ead423d654950893aabdea63082c6.zip llvm-f591f69fc34ead423d654950893aabdea63082c6.tar.gz llvm-f591f69fc34ead423d654950893aabdea63082c6.tar.bz2 | |
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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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 (); |
