diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-09 11:56:08 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-25 20:11:59 +0100 |
commit | d970d4d4aa7345ebf8b7169b09f2775a93f86c33 (patch) | |
tree | b65fdfad38ad39bc75f52397dab60b2479f1278b /lldb/packages/Python/lldbsuite/test/commands | |
parent | 8d9400b65b972cb50fe2266360443192ea107ec9 (diff) | |
download | bcm5719-llvm-d970d4d4aa7345ebf8b7169b09f2775a93f86c33.tar.gz bcm5719-llvm-d970d4d4aa7345ebf8b7169b09f2775a93f86c33.zip |
[lldb] [Process/NetBSD] Copy watchpoints to newly-created threads
NetBSD ptrace interface does not populate watchpoints to newly-created
threads. Solve this via copying the watchpoints from the current thread
when new thread is reported via TRAP_LWP.
Add a test that verifies that when the user does not have permissions
to set watchpoints on NetBSD, the 'watchpoint set' errors out gracefully
and thread monitoring does not crash on being unable to copy watchpoints
to new threads.
Differential Revision: https://reviews.llvm.org/D70023
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py b/lldb/packages/Python/lldbsuite/test/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py index e02cce66129..3e6329eb91f 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py +++ b/lldb/packages/Python/lldbsuite/test/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py @@ -18,12 +18,10 @@ class WatchpointForMultipleThreadsTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True main_spec = lldb.SBFileSpec("main.cpp", False) - @expectedFailureNetBSD def test_watchpoint_before_thread_start(self): """Test that we can hit a watchpoint we set before starting another thread""" self.do_watchpoint_test("Before running the thread") - @expectedFailureNetBSD def test_watchpoint_after_thread_start(self): """Test that we can hit a watchpoint we set after starting another thread""" self.do_watchpoint_test("After running the thread") |