aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-08-28 00:50:17 +0000
committerJim Ingham <jingham@apple.com>2014-08-28 00:50:17 +0000
commit1bb0750b983751a9947d064d56dd1178551f7d90 (patch)
tree93e8620bebe73d961986d8afd6179cecab9aa5f9 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parentf4b0d5e0504852c6cf586327ecefb5dc3acbda65 (diff)
downloadllvm-1bb0750b983751a9947d064d56dd1178551f7d90.zip
llvm-1bb0750b983751a9947d064d56dd1178551f7d90.tar.gz
llvm-1bb0750b983751a9947d064d56dd1178551f7d90.tar.bz2
Make it clear in the help that "breakpoint command add" will act on the last set
breakpoint if no breakpoint id is specified. <rdar://problem/17885160> llvm-svn: 216637
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index 0941f38..a208850 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -44,7 +44,8 @@ public:
CommandObjectBreakpointCommandAdd (CommandInterpreter &interpreter) :
CommandObjectParsed (interpreter,
"add",
- "Add a set of commands to a breakpoint, to be executed whenever the breakpoint is hit.",
+ "Add a set of commands to a breakpoint, to be executed whenever the breakpoint is hit."
+ " If no breakpoint is specified, adds the commands to the last created breakpoint.",
NULL),
IOHandlerDelegateMultiline ("DONE", IOHandlerDelegate::Completion::LLDBCommand),
m_options (interpreter)
@@ -193,7 +194,7 @@ one command per line.\n" );
// Define the first (and only) variant of this arg.
bp_id_arg.arg_type = eArgTypeBreakpointID;
- bp_id_arg.arg_repetition = eArgRepeatPlain;
+ bp_id_arg.arg_repetition = eArgRepeatOptional;
// There is only one variant this argument could be; put it into the argument entry.
arg.push_back (bp_id_arg);