Switch SBWatchpoint::SetEnabled over to using Process::{Enable,Disable}Watchpoint.
authorJim Ingham <jingham@apple.com>
Tue, 1 Nov 2016 20:37:02 +0000 (20:37 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 1 Nov 2016 20:37:02 +0000 (20:37 +0000)
commit306b62b4aed8631b585fe0ee4f0532ca7ac53c37
treea0c9bd0e70e25b9c50348c7eccfce87394aad218
parentf77a9889c08124dbf27d883100008f3b1c09962b
Switch SBWatchpoint::SetEnabled over to using Process::{Enable,Disable}Watchpoint.

We don't have a good story for what happens to watchpoints when you don't
have a process, or if your process exits.  Clearing that up will instruct
how to fix this for real.

Also added a test to make sure disable->enable works as well.
This resolves llvm.org/pr30789.

llvm-svn: 285742
lldb/include/lldb/Breakpoint/Watchpoint.h
lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_disable/TestWatchpointDisable.py
lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_disable/main.c
lldb/source/API/SBWatchpoint.cpp