GDB (xrefs)
|
#include "cli-option.h"
Public Member Functions | |
const option_def & | def () const |
Public Attributes | ||
const char * | name | |
var_types | type | |
const literal_def * | extra_literals | |
erased_get_var_address_ftype * | erased_get_var_address | |
union { | ||
bool *(* boolean )(const option_def &, void *ctx) | ||
unsigned int *(* uinteger )(const option_def &, void *ctx) | ||
int *(* integer )(const option_def &, void *ctx) | ||
const char **(* enumeration )(const option_def &, void *ctx) | ||
std::string *(* string )(const option_def &, void *ctx) | ||
} | var_address | |
const char *const * | enums = nullptr | |
bool | have_argument = true | |
show_value_ftype * | show_cmd_cb | |
const char * | set_doc | |
const char * | show_doc | |
const char * | help_doc | |
Protected Types | |
typedef void * | erased_get_var_address_ftype() |
Protected Member Functions | |
constexpr | option_def (const char *name_, var_types var_type_, const literal_def *extra_literals_, erased_get_var_address_ftype *erased_get_var_address_, show_value_ftype *show_cmd_cb_, const char *set_doc_, const char *show_doc_, const char *help_doc_) |
Definition at line 37 of file cli-option.h.
|
protected |
Definition at line 42 of file cli-option.h.
|
inlineconstexprprotected |
Definition at line 50 of file cli-option.h.
|
inline |
Definition at line 119 of file cli-option.h.
Referenced by make_thread_apply_all_options_def_group().
bool *(* gdb::option::option_def::boolean) (const option_def &, void *ctx) |
Definition at line 89 of file cli-option.h.
Referenced by gdb::option::boolean_option_def< Context >::boolean_option_def().
const char **(* gdb::option::option_def::enumeration) (const option_def &, void *ctx) |
Definition at line 92 of file cli-option.h.
Referenced by gdb::option::enum_option_def< Context >::enum_option_def(), and gdb::option::string_option_def< Context >::string_option_def().
const char* const* gdb::option::option_def::enums = nullptr |
Definition at line 99 of file cli-option.h.
Referenced by gdb::option::enum_option_def< Context >::enum_option_def(), gdb::option::get_val_type_str(), and gdb::option::parse_option().
erased_get_var_address_ftype* gdb::option::option_def::erased_get_var_address |
Definition at line 77 of file cli-option.h.
Referenced by gdb::option::detail::get_var_address().
const literal_def* gdb::option::option_def::extra_literals |
Definition at line 73 of file cli-option.h.
Referenced by gdb::option::get_val_type_str(), and gdb::option::parse_option().
bool gdb::option::option_def::have_argument = true |
Definition at line 102 of file cli-option.h.
Referenced by gdb::option::flag_option_def< Context >::flag_option_def(), gdb::option::flag_option_def< Context >::flag_option_def(), gdb::option::get_val_type_str(), and gdb::option::parse_option().
const char* gdb::option::option_def::help_doc |
Definition at line 114 of file cli-option.h.
int *(* gdb::option::option_def::integer) (const option_def &, void *ctx) |
Definition at line 91 of file cli-option.h.
Referenced by gdb::option::pinteger_option_def< Context >::pinteger_option_def().
const char* gdb::option::option_def::name |
Definition at line 67 of file cli-option.h.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.dap.varref.BaseReference::__init__(), gdb.disassembler.Disassembler::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), gdb::option::parse_option(), and gdb.dap.varref.BaseReference::to_object().
const char* gdb::option::option_def::set_doc |
Definition at line 112 of file cli-option.h.
show_value_ftype* gdb::option::option_def::show_cmd_cb |
Definition at line 106 of file cli-option.h.
const char* gdb::option::option_def::show_doc |
Definition at line 113 of file cli-option.h.
std::string *(* gdb::option::option_def::string) (const option_def &, void *ctx) |
Definition at line 93 of file cli-option.h.
var_types gdb::option::option_def::type |
Definition at line 70 of file cli-option.h.
Referenced by gdb::option::option_def_and_value::clear_value(), gdb::option::get_val_type_str(), gdb::option::parse_option(), and gdb::option::option_def_and_value::~option_def_and_value().
unsigned int *(* gdb::option::option_def::uinteger) (const option_def &, void *ctx) |
Definition at line 90 of file cli-option.h.
Referenced by gdb::option::uinteger_option_def< Context >::uinteger_option_def().
union { ... } gdb::option::option_def::var_address |
Referenced by gdb::option::boolean_option_def< Context >::boolean_option_def(), gdb::option::enum_option_def< Context >::enum_option_def(), gdb::option::pinteger_option_def< Context >::pinteger_option_def(), gdb::option::string_option_def< Context >::string_option_def(), and gdb::option::uinteger_option_def< Context >::uinteger_option_def().