LLDB  mainline
Classes | Functions | Variables
CommandObjectBreakpointCommand.cpp File Reference
#include "CommandObjectBreakpointCommand.h"
#include "CommandObjectBreakpoint.h"
#include "lldb/Breakpoint/Breakpoint.h"
#include "lldb/Breakpoint/BreakpointIDList.h"
#include "lldb/Breakpoint/BreakpointLocation.h"
#include "lldb/Breakpoint/StoppointCallbackContext.h"
#include "lldb/Core/IOHandler.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/State.h"
#include "llvm/ADT/STLExtras.h"
Include dependency graph for CommandObjectBreakpointCommand.cpp:

Go to the source code of this file.

Classes

class  CommandObjectBreakpointCommandAdd
 
class  CommandObjectBreakpointCommandAdd::CommandOptions
 
class  CommandObjectBreakpointCommandDelete
 
class  CommandObjectBreakpointCommandDelete::CommandOptions
 
class  CommandObjectBreakpointCommandList
 

Functions

static constexpr OptionEnumValues ScriptOptionEnum ()
 

Variables

static constexpr OptionEnumValueElement g_script_option_enumeration []
 
static constexpr OptionDefinition g_breakpoint_add_options []
 
static constexpr OptionDefinition g_breakpoint_delete_options []
 

Function Documentation

◆ ScriptOptionEnum()

static constexpr OptionEnumValues ScriptOptionEnum ( )
static

Definition at line 43 of file CommandObjectBreakpointCommand.cpp.

References g_script_option_enumeration.

Variable Documentation

◆ g_breakpoint_add_options

constexpr OptionDefinition g_breakpoint_add_options[]
static
Initial value:
= {
{ 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." },
{ LLDB_OPT_SET_ALL, false, "stop-on-error", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Specify whether breakpoint command execution should terminate on error." },
{ 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." },
{ 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." },
{ 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." },
}
static constexpr OptionEnumValues ScriptOptionEnum()
#define LLDB_OPT_SET_2
Definition: lldb-defines.h:112
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 47 of file CommandObjectBreakpointCommand.cpp.

Referenced by CommandObjectBreakpointCommandAdd::CommandOptions::GetDefinitions(), and CommandObjectBreakpointCommandAdd::CommandOptions::SetOptionValue().

◆ g_breakpoint_delete_options

constexpr OptionDefinition g_breakpoint_delete_options[]
static
Initial value:
= {
{ 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." },
}
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 472 of file CommandObjectBreakpointCommand.cpp.

Referenced by CommandObjectBreakpointCommandDelete::CommandOptions::GetDefinitions().

◆ g_script_option_enumeration

constexpr OptionEnumValueElement g_script_option_enumeration[]
static
Initial value:
= {
{eScriptLanguageNone, "command",
"Commands are in the lldb command interpreter language"},
{eScriptLanguagePython, "python", "Commands are in the Python language."},
{eSortOrderByName, "default-script",
"Commands are in the default scripting language."} }

Definition at line 36 of file CommandObjectBreakpointCommand.cpp.

Referenced by ScriptOptionEnum().