Add a test exercising ptrace watchpoint functionality
This adds a test which verifies that watchpoints work on devices which support them. It is motivated by issues experienced by Nexus 5 devices, where watchpoints work only sporadically. These tests spawn a process, trace it, and verify it hits a watchpoint of various sizes while executing on all available CPUs (to help catch a recent bug, where some debugging functionality was not available on non-boot CPUs). All x86(_64) targets are expected to support this functionality. In case of arm(64), watchpoints are expected to work on devices where the relevant syscall indicates watchpoint presence. In case of mips, this test is skipped as I could not verify that the test would work correctly due to lack of hardware, and this test is intrinsically hardware-dependend. Change-Id: I035ac1822816cd1a3f3b56b985c2fb5fd664185d
Loading
Please sign in to comment