LLDB  mainline
Variables
OptionGroupWatchpoint.cpp File Reference
#include "lldb/Interpreter/OptionGroupWatchpoint.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/lldb-enumerations.h"
Include dependency graph for OptionGroupWatchpoint.cpp:

Go to the source code of this file.

Variables

static constexpr OptionEnumValueElement g_watch_type []
 
static constexpr OptionEnumValueElement g_watch_size []
 
static constexpr OptionDefinition g_option_table []
 

Variable Documentation

◆ g_option_table

constexpr OptionDefinition g_option_table[]
staticconstexpr
Initial value:
= {
{LLDB_OPT_SET_1, false, "watch", 'w', OptionParser::eRequiredArgument,
nullptr, OptionEnumValues(g_watch_type), 0, eArgTypeWatchType,
"Specify the type of watching to perform."},
{LLDB_OPT_SET_1, false, "size", 's', OptionParser::eRequiredArgument,
nullptr, OptionEnumValues(g_watch_size), 0, eArgTypeByteSize,
"Number of bytes to use to watch a region."}}

Definition at line 59 of file OptionGroupWatchpoint.cpp.

Referenced by lldb_private::OptionGroupWatchpoint::GetDefinitions(), and lldb_private::OptionGroupWatchpoint::SetOptionValue().

◆ g_watch_size

constexpr OptionEnumValueElement g_watch_size[]
staticconstexpr
Initial value:
= {
{
1,
"1",
"Watch for byte size of 1",
},
{
2,
"2",
"Watch for byte size of 2",
},
{
4,
"4",
"Watch for byte size of 4",
},
{
8,
"8",
"Watch for byte size of 8",
},
}

Definition at line 36 of file OptionGroupWatchpoint.cpp.

Referenced by lldb_private::OptionGroupWatchpoint::IsWatchSizeSupported().

◆ g_watch_type

constexpr OptionEnumValueElement g_watch_type[]
staticconstexpr
Initial value:
= {
{
OptionGroupWatchpoint::eWatchRead,
"read",
"Watch for read",
},
{
OptionGroupWatchpoint::eWatchWrite,
"write",
"Watch for write",
},
{
OptionGroupWatchpoint::eWatchReadWrite,
"read_write",
"Watch for read/write",
},
}

Definition at line 18 of file OptionGroupWatchpoint.cpp.

g_watch_size
static constexpr OptionEnumValueElement g_watch_size[]
Definition: OptionGroupWatchpoint.cpp:36
lldb::eArgTypeByteSize
@ eArgTypeByteSize
Definition: lldb-enumerations.h:525
LLDB_OPT_SET_1
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:102
lldb::eArgTypeWatchType
@ eArgTypeWatchType
Definition: lldb-enumerations.h:599
g_watch_type
static constexpr OptionEnumValueElement g_watch_type[]
Definition: OptionGroupWatchpoint.cpp:18