diff options
author | Jim Ingham <jingham@apple.com> | 2013-03-08 00:31:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-03-08 00:31:40 +0000 |
commit | b0fac5090f4d8b18837ed6c92f3354210f4e94c2 (patch) | |
tree | 2e34250c46d7c6c8be65894ae794dcc7a2af54e7 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | e5a2f704a4e558de0096a7b940a4d10dc8e5d9ea (diff) | |
download | bcm5719-llvm-b0fac5090f4d8b18837ed6c92f3354210f4e94c2.tar.gz bcm5719-llvm-b0fac5090f4d8b18837ed6c92f3354210f4e94c2.zip |
Add a comment to break disable's help to make clearer the relationship between the
enable/disable state of a breakpoint, and of its locations.
llvm-svn: 176672
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index ca0c52a9bf0..f8f546d2ddf 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -1113,10 +1113,30 @@ public: "Disable the specified breakpoint(s) without removing it/them. If no breakpoints are specified, disable them all.", NULL) { + SetHelpLong( +"Disable the specified breakpoint(s) without removing it/them. \n\ +If no breakpoints are specified, disable them all.\n\ +\n\ +Note: disabling a breakpoint will cause none of its locations to be hit\n\ +regardless of whether they are enabled or disabled. So the sequence: \n\ +\n\ + (lldb) break disable 1\n\ + (lldb) break enable 1.1\n\ +\n\ +will NOT cause location 1.1 to get hit. To achieve that, do:\n\ +\n\ + (lldb) break disable 1.*\n\ + (lldb) break enable 1.1\n\ +\n\ +The first command disables all the locations of breakpoint 1, \n\ +the second re-enables the first location." + ); + CommandArgumentEntry arg; CommandObject::AddIDsArgumentData(arg, eArgTypeBreakpointID, eArgTypeBreakpointIDRange); // Add the entry for the first argument for this command to the object's arguments vector. - m_arguments.push_back (arg); + m_arguments.push_back (arg); + } |