GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | List of all members
gdb::option::option_def Struct Reference

#include "cli-option.h"

Inheritance diagram for gdb::option::option_def:
gdb::option::boolean_option_def< bool > gdb::option::boolean_option_def< Context > gdb::option::enum_option_def< Context > gdb::option::pinteger_option_def< Context > gdb::option::string_option_def< Context > gdb::option::uinteger_option_def< Context > gdb::option::flag_option_def< Context >

Public Member Functions

const option_defdef () const
 

Public Attributes

const char * name
 
var_types type
 
const literal_defextra_literals
 
erased_get_var_address_ftypeerased_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_ftypeshow_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_)
 

Detailed Description

Definition at line 37 of file cli-option.h.

Member Typedef Documentation

◆ erased_get_var_address_ftype

typedef void * gdb::option::option_def::erased_get_var_address_ftype()
protected

Definition at line 42 of file cli-option.h.

Constructor & Destructor Documentation

◆ option_def()

constexpr gdb::option::option_def::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_ )
inlineconstexprprotected

Definition at line 50 of file cli-option.h.

Member Function Documentation

◆ def()

const option_def & gdb::option::option_def::def ( ) const
inline

Definition at line 119 of file cli-option.h.

Referenced by make_thread_apply_all_options_def_group().

Member Data Documentation

◆ boolean

bool *(* gdb::option::option_def::boolean) (const option_def &, void *ctx)

◆ enumeration

const char **(* gdb::option::option_def::enumeration) (const option_def &, void *ctx)

◆ enums

const char* const* gdb::option::option_def::enums = nullptr

◆ erased_get_var_address

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().

◆ extra_literals

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().

◆ have_argument

bool gdb::option::option_def::have_argument = true

◆ help_doc

const char* gdb::option::option_def::help_doc

Definition at line 114 of file cli-option.h.

◆ integer

int *(* gdb::option::option_def::integer) (const option_def &, void *ctx)

◆ name

const char* gdb::option::option_def::name

◆ set_doc

const char* gdb::option::option_def::set_doc

Definition at line 112 of file cli-option.h.

◆ show_cmd_cb

show_value_ftype* gdb::option::option_def::show_cmd_cb

Definition at line 106 of file cli-option.h.

◆ show_doc

const char* gdb::option::option_def::show_doc

Definition at line 113 of file cli-option.h.

◆ string

std::string *(* gdb::option::option_def::string) (const option_def &, void *ctx)

Definition at line 93 of file cli-option.h.

◆ type

var_types gdb::option::option_def::type

◆ uinteger

unsigned int *(* gdb::option::option_def::uinteger) (const option_def &, void *ctx)

◆ [union]

union { ... } gdb::option::option_def::var_address

The documentation for this struct was generated from the following file: