[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>
Fri, 3 Jan 2020 00:51:22 +0000 (01:51 +0100)
commit3620e5f28a4d2800fb6c325ec24b3d660e48b9ba
treeb260f510e882ae69fb24098b8d5490bb064f01e4
parentb63bc648a489c0f4d78203ae44cc1e9a6f9bcada
[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

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