LLDB  mainline
Classes | Functions | Variables
CommandObjectWatchpointCommand.cpp File Reference
#include <vector>
#include "CommandObjectWatchpoint.h"
#include "CommandObjectWatchpointCommand.h"
#include "lldb/Breakpoint/StoppointCallbackContext.h"
#include "lldb/Breakpoint/Watchpoint.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 dependency graph for CommandObjectWatchpointCommand.cpp:

Go to the source code of this file.

Classes

class  CommandObjectWatchpointCommandAdd
 
class  CommandObjectWatchpointCommandAdd::CommandOptions
 
class  CommandObjectWatchpointCommandDelete
 
class  CommandObjectWatchpointCommandList
 

Functions

static constexpr OptionEnumValues ScriptOptionEnum ()
 

Variables

static constexpr OptionEnumValueElement g_script_option_enumeration []
 
static constexpr OptionDefinition g_watchpoint_command_add_options []
 

Function Documentation

◆ ScriptOptionEnum()

static constexpr OptionEnumValues ScriptOptionEnum ( )
static

Definition at line 41 of file CommandObjectWatchpointCommand.cpp.

References g_script_option_enumeration.

Variable Documentation

◆ 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 34 of file CommandObjectWatchpointCommand.cpp.

Referenced by ScriptOptionEnum().

◆ g_watchpoint_command_add_options

constexpr OptionDefinition g_watchpoint_command_add_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "one-liner", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOneLiner, "Specify a one-line watchpoint 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 watchpoint 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 watchpoint. Be sure to give a module name if appropriate." }
}
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 45 of file CommandObjectWatchpointCommand.cpp.

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