aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2021-05-03 17:17:51 -0700
committerJim Ingham <jingham@apple.com>2021-05-03 17:22:43 -0700
commit60ad0fd3c8bf18dc1a307b97e9e3eb21dd5e4cfb (patch)
tree7a7cc2c68f5a134f5582455b63ec26756741dec1 /lldb/source/Commands/CommandObjectWatchpointCommand.cpp
parentd14d84af2f5ebb8ae2188ce6884a29a586dc0a40 (diff)
downloadllvm-60ad0fd3c8bf18dc1a307b97e9e3eb21dd5e4cfb.zip
llvm-60ad0fd3c8bf18dc1a307b97e9e3eb21dd5e4cfb.tar.gz
llvm-60ad0fd3c8bf18dc1a307b97e9e3eb21dd5e4cfb.tar.bz2
Clarify the help for "breakpoint command add" and "watchpoint command add".
These two commands add a list of commands to the breakpoint/watchpoint. The current implementation only supports replacing the current command list. I started with that as overwrite seems to be the most common operation. But using "add" will allow us to later offer other add-modes: "prepend", "append" and "insert". That and "overwrite" then make up a useful set of options for this operation.
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectWatchpointCommand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
index 3df17a0..f22687f 100644
--- a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
@@ -61,7 +61,9 @@ public:
CommandObjectWatchpointCommandAdd(CommandInterpreter &interpreter)
: CommandObjectParsed(interpreter, "add",
"Add a set of LLDB commands to a watchpoint, to be "
- "executed whenever the watchpoint is hit.",
+ "executed whenever the watchpoint is hit. "
+ "The commands added to the watchpoint replace any "
+ "commands previously added to it.",
nullptr, eCommandRequiresTarget),
IOHandlerDelegateMultiline("DONE",
IOHandlerDelegate::Completion::LLDBCommand),