LLDB  mainline
Classes | Functions | Variables
CommandObjectWatchpoint.cpp File Reference
#include "CommandObjectWatchpoint.h"
#include "CommandObjectWatchpointCommand.h"
#include <vector>
#include "llvm/ADT/StringRef.h"
#include "lldb/Breakpoint/Watchpoint.h"
#include "lldb/Breakpoint/WatchpointList.h"
#include "lldb/Core/ValueObject.h"
#include "lldb/Core/ValueObjectVariable.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandCompletions.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Symbol/Variable.h"
#include "lldb/Symbol/VariableList.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/StreamString.h"
Include dependency graph for CommandObjectWatchpoint.cpp:

Go to the source code of this file.

Classes

class  CommandObjectWatchpointList
 
class  CommandObjectWatchpointList::CommandOptions
 
class  CommandObjectWatchpointEnable
 
class  CommandObjectWatchpointDisable
 
class  CommandObjectWatchpointDelete
 
class  CommandObjectWatchpointIgnore
 
class  CommandObjectWatchpointIgnore::CommandOptions
 
class  CommandObjectWatchpointModify
 
class  CommandObjectWatchpointModify::CommandOptions
 
class  CommandObjectWatchpointSetVariable
 
class  CommandObjectWatchpointSetExpression
 
class  CommandObjectWatchpointSet
 

Functions

static void AddWatchpointDescription (Stream *s, Watchpoint *wp, lldb::DescriptionLevel level)
 
static bool CheckTargetForWatchpointOperations (Target *target, CommandReturnObject &result)
 
static int32_t WithRSAIndex (llvm::StringRef Arg)
 

Variables

static const char * RSA [4] = {"-", "to", "To", "TO"}
 
static constexpr OptionDefinition g_watchpoint_list_options []
 
static constexpr OptionDefinition g_watchpoint_ignore_options []
 
static constexpr OptionDefinition g_watchpoint_modify_options []
 

Function Documentation

◆ AddWatchpointDescription()

static void AddWatchpointDescription ( Stream s,
Watchpoint wp,
lldb::DescriptionLevel  level 
)
static

◆ CheckTargetForWatchpointOperations()

static bool CheckTargetForWatchpointOperations ( Target target,
CommandReturnObject result 
)
static

◆ WithRSAIndex()

static int32_t WithRSAIndex ( llvm::StringRef  Arg)
static

Variable Documentation

◆ g_watchpoint_ignore_options

constexpr OptionDefinition g_watchpoint_ignore_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_ALL, true, "ignore-count", 'i', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeCount, "Set the number of times this watchpoint is skipped before stopping." }
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 513 of file CommandObjectWatchpoint.cpp.

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

◆ g_watchpoint_list_options

constexpr OptionDefinition g_watchpoint_list_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "brief", 'b', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Give a brief description of the watchpoint (no location info)." },
{ LLDB_OPT_SET_2, false, "full", 'f', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Give a full description of the watchpoint and its locations." },
{ LLDB_OPT_SET_3, false, "verbose", 'v', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Explain everything we know about the watchpoint (for debugging debugger bugs)." }
}
#define LLDB_OPT_SET_3
Definition: lldb-defines.h:113
#define LLDB_OPT_SET_2
Definition: lldb-defines.h:112
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 150 of file CommandObjectWatchpoint.cpp.

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

◆ g_watchpoint_modify_options

constexpr OptionDefinition g_watchpoint_modify_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_ALL, false, "condition", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeExpression, "The watchpoint stops only if this condition expression evaluates to true." }
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 633 of file CommandObjectWatchpoint.cpp.

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

◆ RSA

const char* RSA[4] = {"-", "to", "To", "TO"}
static