GDB (xrefs)
|
Namespaces | |
namespace | detail |
Classes | |
struct | boolean_option_def |
struct | enum_option_def |
struct | flag_option_def |
struct | option_def |
struct | option_def_and_value |
struct | option_def_group |
union | option_value |
struct | parse_option_completion_info |
struct | pinteger_option_def |
struct | string_option_def |
struct | uinteger_option_def |
Enumerations | |
enum | process_options_mode { PROCESS_OPTIONS_REQUIRE_DELIMITER , PROCESS_OPTIONS_UNKNOWN_IS_ERROR , PROCESS_OPTIONS_UNKNOWN_IS_OPERAND } |
Functions | |
static void | save_option_value_in_ctx (gdb::optional< option_def_and_value > &ov) |
static const char * | find_end_options_delimiter (const char *args) |
static void | complete_on_options (gdb::array_view< const option_def_group > options_group, completion_tracker &tracker, const char *text, const char *word) |
void | complete_on_all_options (completion_tracker &tracker, gdb::array_view< const option_def_group > options_group) |
static gdb::optional< option_def_and_value > | parse_option (gdb::array_view< const option_def_group > options_group, process_options_mode mode, bool have_delimiter, const char **args, parse_option_completion_info *completion=nullptr) |
bool | complete_options (completion_tracker &tracker, const char **args, process_options_mode mode, gdb::array_view< const option_def_group > options_group) |
bool | process_options (const char **args, process_options_mode mode, gdb::array_view< const option_def_group > options_group) |
static const char * | get_val_type_str (const option_def &opt, std::string &buffer) |
static void | append_indented_doc (const char *doc, std::string &help) |
static void | build_help_option (gdb::array_view< const option_def > options, std::string &help) |
std::string | build_help (const char *help_tmpl, gdb::array_view< const option_def_group > options_group) |
void | add_setshow_cmds_for_options (command_class cmd_class, void *data, gdb::array_view< const option_def > options, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
Enumerator | |
---|---|
PROCESS_OPTIONS_REQUIRE_DELIMITER | |
PROCESS_OPTIONS_UNKNOWN_IS_ERROR | |
PROCESS_OPTIONS_UNKNOWN_IS_OPERAND |
Definition at line 324 of file cli-option.h.
void gdb::option::add_setshow_cmds_for_options | ( | command_class | cmd_class, |
void * | data, | ||
gdb::array_view< const option_def > | options, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 794 of file cli-option.c.
References add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_integer_cmd(), add_setshow_pinteger_cmd(), add_setshow_string_cmd(), add_setshow_uinteger_cmd(), var_boolean, var_enum, var_integer, var_pinteger, var_string, and var_uinteger.
|
static |
Definition at line 714 of file cli-option.c.
Referenced by build_help_option().
std::string gdb::option::build_help | ( | const char * | help_tmpl, |
gdb::array_view< const option_def_group > | options_group ) |
Definition at line 766 of file cli-option.c.
References build_help_option().
|
static |
Definition at line 734 of file cli-option.c.
References append_indented_doc(), and get_val_type_str().
Referenced by build_help().
void gdb::option::complete_on_all_options | ( | completion_tracker & | tracker, |
gdb::array_view< const option_def_group > | options_group ) |
Definition at line 170 of file cli-option.c.
References complete_on_options().
Referenced by complete_options(), condition_completer(), info_threads_command_completer(), and parse_option().
|
static |
Definition at line 153 of file cli-option.c.
References completion_tracker::add_completion(), and make_completion_match_str().
Referenced by complete_on_all_options(), complete_options(), and parse_option().
bool gdb::option::complete_options | ( | completion_tracker & | tracker, |
const char ** | args, | ||
process_options_mode | mode, | ||
gdb::array_view< const option_def_group > | options_group ) |
Definition at line 467 of file cli-option.c.
References completion_tracker::add_completion(), completion_tracker::advance_custom_word_point_by(), complete_on_all_options(), complete_on_options(), find_end_options_delimiter(), completion_tracker::have_completions(), parse_option(), PROCESS_OPTIONS_REQUIRE_DELIMITER, save_option_value_in_ctx(), completion_tracker::set_use_custom_word_point(), and var_boolean.
Referenced by alias_command_completer(), backtrace_command_completer(), compile_code_command_completer(), compile_file_command_completer(), condition_completer(), frame_apply_completer(), info_module_var_func_command_completer(), info_print_command_completer(), info_sources_command_completer(), info_threads_command_completer(), info_types_command_completer(), info_vars_funcs_command_completer(), maint_info_sections_completer(), maint_print_c_tdesc_cmd_completer(), maintenance_selftest_completer(), maintenance_test_options_completer_mode(), pipe_command_completer(), print_command_completer(), thread_apply_all_command_completer(), thread_apply_command_completer(), and watch_command_completer().
|
static |
Definition at line 130 of file cli-option.c.
References check_for_argument().
Referenced by complete_options(), and process_options().
|
static |
Definition at line 668 of file cli-option.c.
References gdb::option::option_def::enums, gdb::option::option_def::extra_literals, gdb::option::option_def::have_argument, gdb::option::option_def::type, var_boolean, var_enum, var_integer, var_pinteger, var_string, and var_uinteger.
Referenced by build_help_option().
|
static |
Definition at line 181 of file cli-option.c.
References gdb::option::option_value::boolean, boolean_enums, check_for_argument(), complete_on_all_options(), complete_on_enum(), complete_on_options(), gdb::option::option_value::enumeration, gdb::option::option_def::enums, gdb::option::option_def::extra_literals, gdb::option::option_def::have_argument, gdb::option::option_value::integer, gdb::option::option_def::name, parse_cli_boolean_value(), parse_cli_var_enum(), parse_cli_var_integer(), PROCESS_OPTIONS_REQUIRE_DELIMITER, PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, gdb::option::option_value::string, gdb::option::option_def::type, gdb::option::option_value::uinteger, var_boolean, var_enum, var_integer, var_pinteger, var_string, and var_uinteger.
Referenced by complete_options(), and process_options().
bool gdb::option::process_options | ( | const char ** | args, |
process_options_mode | mode, | ||
gdb::array_view< const option_def_group > | options_group ) |
Definition at line 627 of file cli-option.c.
References find_end_options_delimiter(), parse_option(), PROCESS_OPTIONS_REQUIRE_DELIMITER, and save_option_value_in_ctx().
Referenced by alias_command(), compile_code_command(), compile_file_command(), compile_print_command(), condition_command(), frame_apply_command_count(), info_args_command(), info_functions_command(), info_locals_command(), info_module_functions_command(), info_module_variables_command(), info_modules_command(), info_sources_command(), info_threads_command(), info_types_command(), info_variables_command(), maint_print_c_tdesc_cmd(), maintenance_info_sections(), maintenance_selftest(), maintenance_test_options_command_mode(), pipe_command(), process_print_command_args(), task_apply_all_command(), task_apply_command(), thread_apply_all_command(), thread_apply_command(), ui_printf(), and watch_maybe_just_location().
|
static |
Definition at line 592 of file cli-option.c.
References value, value::value(), var_boolean, var_enum, var_integer, var_pinteger, var_string, and var_uinteger.
Referenced by complete_options(), and process_options().