[lldb/Command] Add --force option for `watchpoint delete` command
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 28 Dec 2019 13:47:51 +0000 (14:47 +0100)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 4 Jan 2020 02:11:15 +0000 (03:11 +0100)
commitdf71f92fbb7c96cfd36d247ae6fb6929cb9bce35
tree9f5a580a7637de248c390bfb16e2a6d4832e58b1
parent05a4cf26365f10ae0cb2ad76f2babfb5ed929fdc
[lldb/Command] Add --force option for `watchpoint delete` command

Currently, there is no option to delete all the watchpoint without LLDB
asking for a confirmation. Besides making the watchpoint delete command
homogeneous with the breakpoint delete command, this option could also
become handy to trigger automated watchpoint deletion i.e. using
breakpoint actions.

rdar://42560586

Differential Revision: https://reviews.llvm.org/D72096

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/TestWatchpointCommands.py
lldb/source/Commands/CommandObjectWatchpoint.cpp
lldb/source/Commands/Options.td