1 //===-- CommandObjectBreakpointCommand.cpp ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "CommandObjectBreakpointCommand.h"
11 #include "CommandObjectBreakpoint.h"
12 #include "lldb/Breakpoint/Breakpoint.h"
13 #include "lldb/Breakpoint/BreakpointIDList.h"
14 #include "lldb/Breakpoint/BreakpointLocation.h"
15 #include "lldb/Breakpoint/StoppointCallbackContext.h"
16 #include "lldb/Core/IOHandler.h"
17 #include "lldb/Host/OptionParser.h"
18 #include "lldb/Interpreter/CommandInterpreter.h"
19 #include "lldb/Interpreter/CommandReturnObject.h"
20 #include "lldb/Interpreter/OptionArgParser.h"
21 #include "lldb/Target/Target.h"
22 #include "lldb/Target/Thread.h"
23 #include "lldb/Utility/State.h"
25 #include "llvm/ADT/STLExtras.h"
28 using namespace lldb_private;
30 //-------------------------------------------------------------------------
31 // CommandObjectBreakpointCommandAdd
32 //-------------------------------------------------------------------------
34 // FIXME: "script-type" needs to have its contents determined dynamically, so
35 // somebody can add a new scripting
36 // language to lldb and have it pickable here without having to change this
37 // enumeration by hand and rebuild lldb proper.
39 static constexpr OptionEnumValueElement g_script_option_enumeration[] = {
40 {eScriptLanguageNone, "command",
41 "Commands are in the lldb command interpreter language"},
42 {eScriptLanguagePython, "python", "Commands are in the Python language."},
43 {eSortOrderByName, "default-script",
44 "Commands are in the default scripting language."} };
46 static constexpr OptionEnumValues ScriptOptionEnum() {
47 return OptionEnumValues(g_script_option_enumeration);
50 static constexpr OptionDefinition g_breakpoint_add_options[] = {
52 { LLDB_OPT_SET_1, false, "one-liner", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOneLiner, "Specify a one-line breakpoint command inline. Be sure to surround it with quotes." },
53 { LLDB_OPT_SET_ALL, false, "stop-on-error", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Specify whether breakpoint command execution should terminate on error." },
54 { LLDB_OPT_SET_ALL, false, "script-type", 's', OptionParser::eRequiredArgument, nullptr, ScriptOptionEnum(), 0, eArgTypeNone, "Specify the language for the commands - if none is specified, the lldb command interpreter will be used." },
55 { LLDB_OPT_SET_2, false, "python-function", 'F', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePythonFunction, "Give the name of a Python function to run as command for this breakpoint. Be sure to give a module name if appropriate." },
56 { LLDB_OPT_SET_ALL, false, "dummy-breakpoints", 'D', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Sets Dummy breakpoints - i.e. breakpoints set before a file is provided, which prime new targets." },
60 class CommandObjectBreakpointCommandAdd : public CommandObjectParsed,
61 public IOHandlerDelegateMultiline {
63 CommandObjectBreakpointCommandAdd(CommandInterpreter &interpreter)
64 : CommandObjectParsed(interpreter, "add",
65 "Add LLDB commands to a breakpoint, to be executed "
66 "whenever the breakpoint is hit."
67 " If no breakpoint is specified, adds the "
68 "commands to the last created breakpoint.",
70 IOHandlerDelegateMultiline("DONE",
71 IOHandlerDelegate::Completion::LLDBCommand),
75 General information about entering breakpoint commands
76 ------------------------------------------------------
79 "This command will prompt for commands to be executed when the specified \
80 breakpoint is hit. Each command is typed on its own line following the '> ' \
81 prompt until 'DONE' is entered."
85 "Syntactic errors may not be detected when initially entered, and many \
86 malformed commands can silently fail when executed. If your breakpoint commands \
87 do not appear to be executing, double-check the command syntax."
91 "Note: You may enter any debugger command exactly as you would at the debugger \
92 prompt. There is no limit to the number of commands supplied, but do NOT enter \
93 more than one command per line."
96 Special information about PYTHON breakpoint commands
97 ----------------------------------------------------
100 "You may enter either one or more lines of Python, including function \
101 definitions or calls to functions that will have been imported by the time \
102 the code executes. Single line breakpoint commands will be interpreted 'as is' \
103 when the breakpoint is hit. Multiple lines of Python will be wrapped in a \
104 generated function, and a call to the function will be attached to the breakpoint."
107 This auto-generated function is passed in three arguments:
109 frame: an lldb.SBFrame object for the frame which hit breakpoint.
111 bp_loc: an lldb.SBBreakpointLocation object that represents the breakpoint location that was hit.
113 dict: the python session dictionary hit.
116 "When specifying a python function with the --python-function option, you need \
117 to supply the function name prepended by the module name:"
120 --python-function myutils.breakpoint_callback
122 The function itself must have the following prototype:
124 def breakpoint_callback(frame, bp_loc, dict):
125 # Your code goes here
128 "The arguments are the same as the arguments passed to generated functions as \
129 described above. Note that the global variable 'lldb.frame' will NOT be updated when \
130 this function is called, so be sure to use the 'frame' argument. The 'frame' argument \
131 can get you to the thread via frame.GetThread(), the thread can get you to the \
132 process via thread.GetProcess(), and the process can get you back to the target \
133 via process.GetTarget()."
137 "Important Note: As Python code gets collected into functions, access to global \
138 variables requires explicit scoping using the 'global' keyword. Be sure to use correct \
139 Python syntax, including indentation, when entering Python breakpoint commands."
142 Example Python one-line breakpoint command:
144 (lldb) breakpoint command add -s python 1
145 Enter your Python command(s). Type 'DONE' to end.
146 > print "Hit this breakpoint!"
149 As a convenience, this also works for a short Python one-liner:
151 (lldb) breakpoint command add -s python 1 -o 'import time; print time.asctime()'
153 Launching '.../a.out' (x86_64)
154 (lldb) Fri Sep 10 12:17:45 2010
155 Process 21778 Stopped
156 * thread #1: tid = 0x2e03, 0x0000000100000de8 a.out`c + 7 at main.c:39, stop reason = breakpoint 1.1, queue = com.apple.main-thread
160 39 -> return val + 3;
163 42 int main (int argc, char const *argv[])
165 Example multiple line Python breakpoint command:
167 (lldb) breakpoint command add -s p 1
168 Enter your Python command(s). Type 'DONE' to end.
170 > bp_count = bp_count + 1
171 > print "Hit this breakpoint " + repr(bp_count) + " times!"
174 Example multiple line Python breakpoint command, using function definition:
176 (lldb) breakpoint command add -s python 1
177 Enter your Python command(s). Type 'DONE' to end.
178 > def breakpoint_output (bp_no):
179 > out_string = "Hit breakpoint number " + repr (bp_no)
182 > breakpoint_output (1)
186 "In this case, since there is a reference to a global variable, \
187 'bp_count', you will also need to make sure 'bp_count' exists and is \
196 "Your Python code, however organized, can optionally return a value. \
197 If the returned value is False, that tells LLDB not to stop at the breakpoint \
198 to which the code is associated. Returning anything other than False, or even \
199 returning None, or even omitting a return statement entirely, will cause \
204 "Final Note: A warning that no breakpoint command was generated when there \
205 are no syntax errors may indicate that a function was declared but never called.");
207 CommandArgumentEntry arg;
208 CommandArgumentData bp_id_arg;
210 // Define the first (and only) variant of this arg.
211 bp_id_arg.arg_type = eArgTypeBreakpointID;
212 bp_id_arg.arg_repetition = eArgRepeatOptional;
214 // There is only one variant this argument could be; put it into the
216 arg.push_back(bp_id_arg);
218 // Push the data for the first argument into the m_arguments vector.
219 m_arguments.push_back(arg);
222 ~CommandObjectBreakpointCommandAdd() override = default;
224 Options *GetOptions() override { return &m_options; }
226 void IOHandlerActivated(IOHandler &io_handler) override {
227 StreamFileSP output_sp(io_handler.GetOutputStreamFile());
229 output_sp->PutCString(g_reader_instructions);
234 void IOHandlerInputComplete(IOHandler &io_handler,
235 std::string &line) override {
236 io_handler.SetIsDone(true);
238 std::vector<BreakpointOptions *> *bp_options_vec =
239 (std::vector<BreakpointOptions *> *)io_handler.GetUserData();
240 for (BreakpointOptions *bp_options : *bp_options_vec) {
244 auto cmd_data = llvm::make_unique<BreakpointOptions::CommandData>();
245 cmd_data->user_source.SplitIntoLines(line.c_str(), line.size());
246 bp_options->SetCommandDataCallback(cmd_data);
250 void CollectDataForBreakpointCommandCallback(
251 std::vector<BreakpointOptions *> &bp_options_vec,
252 CommandReturnObject &result) {
253 m_interpreter.GetLLDBCommandsFromIOHandler(
255 *this, // IOHandlerDelegate
256 true, // Run IOHandler in async mode
257 &bp_options_vec); // Baton for the "io_handler" that will be passed back
258 // into our IOHandlerDelegate functions
261 /// Set a one-liner as the callback for the breakpoint.
263 SetBreakpointCommandCallback(std::vector<BreakpointOptions *> &bp_options_vec,
264 const char *oneliner) {
265 for (auto bp_options : bp_options_vec) {
266 auto cmd_data = llvm::make_unique<BreakpointOptions::CommandData>();
268 cmd_data->user_source.AppendString(oneliner);
269 cmd_data->stop_on_error = m_options.m_stop_on_error;
271 bp_options->SetCommandDataCallback(cmd_data);
275 class CommandOptions : public Options {
278 : Options(), m_use_commands(false), m_use_script_language(false),
279 m_script_language(eScriptLanguageNone), m_use_one_liner(false),
280 m_one_liner(), m_function_name() {}
282 ~CommandOptions() override = default;
284 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
285 ExecutionContext *execution_context) override {
287 const int short_option = m_getopt_table[option_idx].val;
289 switch (short_option) {
291 m_use_one_liner = true;
292 m_one_liner = option_arg;
296 m_script_language = (lldb::ScriptLanguage)OptionArgParser::ToOptionEnum(
297 option_arg, g_breakpoint_add_options[option_idx].enum_values,
298 eScriptLanguageNone, error);
300 if (m_script_language == eScriptLanguagePython ||
301 m_script_language == eScriptLanguageDefault) {
302 m_use_script_language = true;
304 m_use_script_language = false;
309 bool success = false;
311 OptionArgParser::ToBoolean(option_arg, false, &success);
313 error.SetErrorStringWithFormat(
314 "invalid value for stop-on-error: \"%s\"",
315 option_arg.str().c_str());
319 m_use_one_liner = false;
320 m_use_script_language = true;
321 m_function_name.assign(option_arg);
334 void OptionParsingStarting(ExecutionContext *execution_context) override {
335 m_use_commands = true;
336 m_use_script_language = false;
337 m_script_language = eScriptLanguageNone;
339 m_use_one_liner = false;
340 m_stop_on_error = true;
342 m_function_name.clear();
346 llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
347 return llvm::makeArrayRef(g_breakpoint_add_options);
350 // Instance variables to hold the values for command options.
353 bool m_use_script_language;
354 lldb::ScriptLanguage m_script_language;
356 // Instance variables to hold the values for one_liner options.
357 bool m_use_one_liner;
358 std::string m_one_liner;
359 bool m_stop_on_error;
360 std::string m_function_name;
365 bool DoExecute(Args &command, CommandReturnObject &result) override {
366 Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
368 if (target == nullptr) {
369 result.AppendError("There is not a current executable; there are no "
370 "breakpoints to which to add commands");
371 result.SetStatus(eReturnStatusFailed);
375 const BreakpointList &breakpoints = target->GetBreakpointList();
376 size_t num_breakpoints = breakpoints.GetSize();
378 if (num_breakpoints == 0) {
379 result.AppendError("No breakpoints exist to have commands added");
380 result.SetStatus(eReturnStatusFailed);
384 if (!m_options.m_use_script_language &&
385 !m_options.m_function_name.empty()) {
386 result.AppendError("need to enable scripting to have a function run as a "
387 "breakpoint command");
388 result.SetStatus(eReturnStatusFailed);
392 BreakpointIDList valid_bp_ids;
393 CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(
394 command, target, result, &valid_bp_ids,
395 BreakpointName::Permissions::PermissionKinds::listPerm);
397 m_bp_options_vec.clear();
399 if (result.Succeeded()) {
400 const size_t count = valid_bp_ids.GetSize();
402 for (size_t i = 0; i < count; ++i) {
403 BreakpointID cur_bp_id = valid_bp_ids.GetBreakpointIDAtIndex(i);
404 if (cur_bp_id.GetBreakpointID() != LLDB_INVALID_BREAK_ID) {
406 target->GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
407 BreakpointOptions *bp_options = nullptr;
408 if (cur_bp_id.GetLocationID() == LLDB_INVALID_BREAK_ID) {
409 // This breakpoint does not have an associated location.
410 bp_options = bp->GetOptions();
412 BreakpointLocationSP bp_loc_sp(
413 bp->FindLocationByID(cur_bp_id.GetLocationID()));
414 // This breakpoint does have an associated location. Get its
415 // breakpoint options.
417 bp_options = bp_loc_sp->GetLocationOptions();
420 m_bp_options_vec.push_back(bp_options);
424 // If we are using script language, get the script interpreter in order
425 // to set or collect command callback. Otherwise, call the methods
426 // associated with this object.
427 if (m_options.m_use_script_language) {
428 ScriptInterpreter *script_interp = m_interpreter.GetScriptInterpreter();
429 // Special handling for one-liner specified inline.
430 if (m_options.m_use_one_liner) {
431 script_interp->SetBreakpointCommandCallback(
432 m_bp_options_vec, m_options.m_one_liner.c_str());
433 } else if (!m_options.m_function_name.empty()) {
434 script_interp->SetBreakpointCommandCallbackFunction(
435 m_bp_options_vec, m_options.m_function_name.c_str());
437 script_interp->CollectDataForBreakpointCommandCallback(
438 m_bp_options_vec, result);
441 // Special handling for one-liner specified inline.
442 if (m_options.m_use_one_liner)
443 SetBreakpointCommandCallback(m_bp_options_vec,
444 m_options.m_one_liner.c_str());
446 CollectDataForBreakpointCommandCallback(m_bp_options_vec, result);
450 return result.Succeeded();
454 CommandOptions m_options;
455 std::vector<BreakpointOptions *> m_bp_options_vec; // This stores the
456 // breakpoint options that
458 // collecting commands for. In the CollectData... calls we need to hand this
459 // off to the IOHandler, which may run asynchronously. So we have to have
460 // some way to keep it alive, and not leak it. Making it an ivar of the
461 // command object, which never goes away achieves this. Note that if we were
462 // able to run the same command concurrently in one interpreter we'd have to
463 // make this "per invocation". But there are many more reasons why it is not
464 // in general safe to do that in lldb at present, so it isn't worthwhile to
465 // come up with a more complex mechanism to address this particular weakness
467 static const char *g_reader_instructions;
470 const char *CommandObjectBreakpointCommandAdd::g_reader_instructions =
471 "Enter your debugger command(s). Type 'DONE' to end.\n";
473 //-------------------------------------------------------------------------
474 // CommandObjectBreakpointCommandDelete
475 //-------------------------------------------------------------------------
477 static constexpr OptionDefinition g_breakpoint_delete_options[] = {
479 { LLDB_OPT_SET_1, false, "dummy-breakpoints", 'D', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Delete commands from Dummy breakpoints - i.e. breakpoints set before a file is provided, which prime new targets." },
483 class CommandObjectBreakpointCommandDelete : public CommandObjectParsed {
485 CommandObjectBreakpointCommandDelete(CommandInterpreter &interpreter)
486 : CommandObjectParsed(interpreter, "delete",
487 "Delete the set of commands from a breakpoint.",
490 CommandArgumentEntry arg;
491 CommandArgumentData bp_id_arg;
493 // Define the first (and only) variant of this arg.
494 bp_id_arg.arg_type = eArgTypeBreakpointID;
495 bp_id_arg.arg_repetition = eArgRepeatPlain;
497 // There is only one variant this argument could be; put it into the
499 arg.push_back(bp_id_arg);
501 // Push the data for the first argument into the m_arguments vector.
502 m_arguments.push_back(arg);
505 ~CommandObjectBreakpointCommandDelete() override = default;
507 Options *GetOptions() override { return &m_options; }
509 class CommandOptions : public Options {
511 CommandOptions() : Options(), m_use_dummy(false) {}
513 ~CommandOptions() override = default;
515 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
516 ExecutionContext *execution_context) override {
518 const int short_option = m_getopt_table[option_idx].val;
520 switch (short_option) {
526 error.SetErrorStringWithFormat("unrecognized option '%c'",
534 void OptionParsingStarting(ExecutionContext *execution_context) override {
538 llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
539 return llvm::makeArrayRef(g_breakpoint_delete_options);
542 // Instance variables to hold the values for command options.
547 bool DoExecute(Args &command, CommandReturnObject &result) override {
548 Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
550 if (target == nullptr) {
551 result.AppendError("There is not a current executable; there are no "
552 "breakpoints from which to delete commands");
553 result.SetStatus(eReturnStatusFailed);
557 const BreakpointList &breakpoints = target->GetBreakpointList();
558 size_t num_breakpoints = breakpoints.GetSize();
560 if (num_breakpoints == 0) {
561 result.AppendError("No breakpoints exist to have commands deleted");
562 result.SetStatus(eReturnStatusFailed);
566 if (command.empty()) {
568 "No breakpoint specified from which to delete the commands");
569 result.SetStatus(eReturnStatusFailed);
573 BreakpointIDList valid_bp_ids;
574 CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(
575 command, target, result, &valid_bp_ids,
576 BreakpointName::Permissions::PermissionKinds::listPerm);
578 if (result.Succeeded()) {
579 const size_t count = valid_bp_ids.GetSize();
580 for (size_t i = 0; i < count; ++i) {
581 BreakpointID cur_bp_id = valid_bp_ids.GetBreakpointIDAtIndex(i);
582 if (cur_bp_id.GetBreakpointID() != LLDB_INVALID_BREAK_ID) {
584 target->GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
585 if (cur_bp_id.GetLocationID() != LLDB_INVALID_BREAK_ID) {
586 BreakpointLocationSP bp_loc_sp(
587 bp->FindLocationByID(cur_bp_id.GetLocationID()));
589 bp_loc_sp->ClearCallback();
591 result.AppendErrorWithFormat("Invalid breakpoint ID: %u.%u.\n",
592 cur_bp_id.GetBreakpointID(),
593 cur_bp_id.GetLocationID());
594 result.SetStatus(eReturnStatusFailed);
603 return result.Succeeded();
607 CommandOptions m_options;
610 //-------------------------------------------------------------------------
611 // CommandObjectBreakpointCommandList
612 //-------------------------------------------------------------------------
614 class CommandObjectBreakpointCommandList : public CommandObjectParsed {
616 CommandObjectBreakpointCommandList(CommandInterpreter &interpreter)
617 : CommandObjectParsed(interpreter, "list", "List the script or set of "
618 "commands to be executed when "
619 "the breakpoint is hit.",
621 CommandArgumentEntry arg;
622 CommandArgumentData bp_id_arg;
624 // Define the first (and only) variant of this arg.
625 bp_id_arg.arg_type = eArgTypeBreakpointID;
626 bp_id_arg.arg_repetition = eArgRepeatPlain;
628 // There is only one variant this argument could be; put it into the
630 arg.push_back(bp_id_arg);
632 // Push the data for the first argument into the m_arguments vector.
633 m_arguments.push_back(arg);
636 ~CommandObjectBreakpointCommandList() override = default;
639 bool DoExecute(Args &command, CommandReturnObject &result) override {
640 Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
642 if (target == nullptr) {
643 result.AppendError("There is not a current executable; there are no "
644 "breakpoints for which to list commands");
645 result.SetStatus(eReturnStatusFailed);
649 const BreakpointList &breakpoints = target->GetBreakpointList();
650 size_t num_breakpoints = breakpoints.GetSize();
652 if (num_breakpoints == 0) {
653 result.AppendError("No breakpoints exist for which to list commands");
654 result.SetStatus(eReturnStatusFailed);
658 if (command.empty()) {
660 "No breakpoint specified for which to list the commands");
661 result.SetStatus(eReturnStatusFailed);
665 BreakpointIDList valid_bp_ids;
666 CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(
667 command, target, result, &valid_bp_ids,
668 BreakpointName::Permissions::PermissionKinds::listPerm);
670 if (result.Succeeded()) {
671 const size_t count = valid_bp_ids.GetSize();
672 for (size_t i = 0; i < count; ++i) {
673 BreakpointID cur_bp_id = valid_bp_ids.GetBreakpointIDAtIndex(i);
674 if (cur_bp_id.GetBreakpointID() != LLDB_INVALID_BREAK_ID) {
676 target->GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
679 BreakpointLocationSP bp_loc_sp;
680 if (cur_bp_id.GetLocationID() != LLDB_INVALID_BREAK_ID) {
681 bp_loc_sp = bp->FindLocationByID(cur_bp_id.GetLocationID());
684 result.AppendErrorWithFormat("Invalid breakpoint ID: %u.%u.\n",
685 cur_bp_id.GetBreakpointID(),
686 cur_bp_id.GetLocationID());
687 result.SetStatus(eReturnStatusFailed);
693 BreakpointID::GetCanonicalReference(&id_str,
694 cur_bp_id.GetBreakpointID(),
695 cur_bp_id.GetLocationID());
696 const Baton *baton = nullptr;
699 ->GetOptionsSpecifyingKind(BreakpointOptions::eCallback)
702 baton = bp->GetOptions()->GetBaton();
705 result.GetOutputStream().Printf("Breakpoint %s:\n",
707 result.GetOutputStream().IndentMore();
708 baton->GetDescription(&result.GetOutputStream(),
709 eDescriptionLevelFull);
710 result.GetOutputStream().IndentLess();
712 result.AppendMessageWithFormat(
713 "Breakpoint %s does not have an associated command.\n",
717 result.SetStatus(eReturnStatusSuccessFinishResult);
719 result.AppendErrorWithFormat("Invalid breakpoint ID: %u.\n",
720 cur_bp_id.GetBreakpointID());
721 result.SetStatus(eReturnStatusFailed);
726 return result.Succeeded();
730 //-------------------------------------------------------------------------
731 // CommandObjectBreakpointCommand
732 //-------------------------------------------------------------------------
734 CommandObjectBreakpointCommand::CommandObjectBreakpointCommand(
735 CommandInterpreter &interpreter)
736 : CommandObjectMultiword(
737 interpreter, "command", "Commands for adding, removing and listing "
738 "LLDB commands executed when a breakpoint is "
740 "command <sub-command> [<sub-command-options>] <breakpoint-id>") {
741 CommandObjectSP add_command_object(
742 new CommandObjectBreakpointCommandAdd(interpreter));
743 CommandObjectSP delete_command_object(
744 new CommandObjectBreakpointCommandDelete(interpreter));
745 CommandObjectSP list_command_object(
746 new CommandObjectBreakpointCommandList(interpreter));
748 add_command_object->SetCommandName("breakpoint command add");
749 delete_command_object->SetCommandName("breakpoint command delete");
750 list_command_object->SetCommandName("breakpoint command list");
752 LoadSubCommand("add", add_command_object);
753 LoadSubCommand("delete", delete_command_object);
754 LoadSubCommand("list", list_command_object);
757 CommandObjectBreakpointCommand::~CommandObjectBreakpointCommand() = default;