Skip to content

Commit

Permalink
Correct the argument list of command breakpoint read
Browse files Browse the repository at this point in the history
Summary: Command `breakpoint read` should not accept breakpoint ids as
arguments, and in fact, it is not implemented to deal with breakpoint id
arguments either. So this patch is to correct the argument list of this
command so that the help text won't misguide users.

Reviewers: teemperor, JDevlieghere, jingham

Reviewed By: teemperor, JDevlieghere

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D79722
  • Loading branch information
MrHate authored and Teemperor committed May 15, 2020
1 parent 0e4827a commit 7c89297
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lldb/source/Commands/CommandObjectBreakpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2034,14 +2034,7 @@ class CommandObjectBreakpointRead : public CommandObjectParsed {
"Read and set the breakpoints previously saved to "
"a file with \"breakpoint write\". ",
nullptr),
m_options() {
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_options() {}

~CommandObjectBreakpointRead() override = default;

Expand Down

0 comments on commit 7c89297

Please sign in to comment.