LLDB  mainline
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.


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[]
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."}}
static constexpr OptionEnumValueElement g_watch_size[]
static constexpr OptionEnumValueElement g_watch_type[]
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 30 of file OptionGroupWatchpoint.cpp.

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

◆ g_watch_size

constexpr OptionEnumValueElement g_watch_size[]
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 24 of file OptionGroupWatchpoint.cpp.

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

◆ g_watch_type

constexpr OptionEnumValueElement g_watch_type[]
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.