GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes | List of all members
cli_style_option Class Reference

#include "cli-style.h"

Public Member Functions

 cli_style_option (const char *name, ui_file_style::basic_color fg, ui_file_style::intensity=ui_file_style::NORMAL)
 
 cli_style_option (const char *name, ui_file_style::intensity i)
 
ui_file_style style () const
 
const char * name ()
 
set_show_commands add_setshow_commands (enum command_class theclass, const char *prefix_doc, struct cmd_list_element **set_list, struct cmd_list_element **show_list, bool skip_intensity)
 
struct cmd_list_elementset_list ()
 
struct cmd_list_elementshow_list ()
 

Public Attributes

gdb::observers::observable changed
 

Static Private Member Functions

static void do_set_value (const char *ignore, int from_tty, struct cmd_list_element *cmd)
 
static void do_show_foreground (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)
 
static void do_show_background (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)
 
static void do_show_intensity (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)
 

Private Attributes

const char * m_name
 
const char * m_foreground
 
const char * m_background
 
const char * m_intensity
 
struct cmd_list_elementm_set_list = nullptr
 
struct cmd_list_elementm_show_list = nullptr
 

Detailed Description

Definition at line 28 of file cli-style.h.

Constructor & Destructor Documentation

◆ cli_style_option() [1/2]

cli_style_option::cli_style_option ( const char * name,
ui_file_style::basic_color fg,
ui_file_style::intensity intensity = ui_file_style::NORMAL )

Definition at line 130 of file cli-style.c.

◆ cli_style_option() [2/2]

cli_style_option::cli_style_option ( const char * name,
ui_file_style::intensity i )

Definition at line 143 of file cli-style.c.

Member Function Documentation

◆ add_setshow_commands()

set_show_commands cli_style_option::add_setshow_commands ( enum command_class theclass,
const char * prefix_doc,
struct cmd_list_element ** set_list,
struct cmd_list_element ** show_list,
bool skip_intensity )

◆ do_set_value()

void cli_style_option::do_set_value ( const char * ignore,
int from_tty,
struct cmd_list_element * cmd )
staticprivate

Definition at line 190 of file cli-style.c.

References changed, and cmd_list_element::context().

Referenced by add_setshow_commands().

◆ do_show_background()

void cli_style_option::do_show_background ( struct ui_file * file,
int from_tty,
struct cmd_list_element * cmd,
const char * value )
staticprivate

Definition at line 225 of file cli-style.c.

References do_show().

Referenced by add_setshow_commands().

◆ do_show_foreground()

void cli_style_option::do_show_foreground ( struct ui_file * file,
int from_tty,
struct cmd_list_element * cmd,
const char * value )
staticprivate

Definition at line 215 of file cli-style.c.

References do_show().

Referenced by add_setshow_commands().

◆ do_show_intensity()

void cli_style_option::do_show_intensity ( struct ui_file * file,
int from_tty,
struct cmd_list_element * cmd,
const char * value )
staticprivate

Definition at line 235 of file cli-style.c.

References do_show().

Referenced by add_setshow_commands().

◆ name()

const char * cli_style_option::name ( )
inline

◆ set_list()

struct cmd_list_element * cli_style_option::set_list ( )
inline

Definition at line 56 of file cli-style.h.

References m_set_list.

Referenced by add_setshow_commands(), and gdbarch_types.Method::param_list().

◆ show_list()

struct cmd_list_element * cli_style_option::show_list ( )
inline

Definition at line 59 of file cli-style.h.

References m_show_list.

Referenced by add_setshow_commands().

◆ style()

ui_file_style cli_style_option::style ( ) const

Definition at line 169 of file cli-style.c.

References cli_intensities, color_number(), m_background, m_foreground, m_intensity, and ui_file_style::NORMAL.

Referenced by ada_print_scalar(), ada_print_type(), ada_val_print_enum(), ada_val_print_ref(), add_path(), add_symbol_file_command(), amd_dbgapi_log_message_callback(), ATTRIBUTE_PRINTF(), auto_load_objfile_script_1(), auto_load_section_scripts(), box_win(), btrace_call_history(), btrace_call_history_src_line(), c_print_type_1(), c_type_print_base_1(), c_type_print_base_struct_union(), common_val_print(), cp_print_class_member(), cp_print_static_field(), cp_print_value_fields(), deprecated_cmd_warning(), describe_other_breakpoints(), do_one_display(), do_show(), execute_script_contents(), f_language::f_type_print_base(), ui_out::field_core_addr(), file_is_auto_load_safe(), find_separate_debug_file_by_buildid(), gdb_printing_disassembler::fprintf_styled_func(), fput_command_name_styled(), fputs_highlighted(), gdb_safe_append_history(), generic_val_print_enum_1(), generic_value_print(), info_address_command(), info_auto_load_libthread_db(), info_auto_load_local_gdbinit(), info_common_command_for_block(), info_frame_command_core(), info_sharedlibrary_command(), info_skip_command(), info_sources_worker(), info_task(), m2_enum(), m2_print_long_set(), m2_print_type(), m2_record_fields(), maintenance_print_one_line_table(), print_offset_data::maybe_print_hole(), maybe_print_script_not_found_warning(), maybe_print_unsupported_script_warning(), output_source_filename_data::output(), pascal_object_print_static_field(), pascal_object_print_value_fields(), gdb_pretty_print_disassembler::pretty_print_insn(), print_ada_task_info(), print_address(), print_address_demangle(), print_address_symbolic(), print_array_type(), print_breakpoint_location(), print_disassembly(), rust_language::print_enum(), print_enum_type(), print_field_values(), print_frame_arg(), print_frame_info(), print_func_type(), print_gdb_help(), print_gdb_version(), print_go_string(), print_inferior(), print_msymbol_info(), signal_catchpoint::print_one(), syscall_catchpoint::print_one(), print_one_bfd(), print_one_breakpoint_location(), print_one_static_tracepoint_marker(), print_one_vtable(), print_program_space(), print_return_value_1(), print_section_info(), print_source_lines_base(), print_stack_unless_memory_error(), print_symbol_info(), print_variable_and_value(), pascal_language::printstr(), printstr(), proc_error(), proc_warn(), fortran_array_printer_impl::process_dimension(), fortran_array_printer_impl::process_element(), pwd_command(), py_print_frame(), py_print_single_arg(), objfile::require_partial_symbols(), reread_symbols(), run_command_1(), rust_internal_print_type(), rust_print_struct_def(), code_breakpoint::say_where(), separate_debug_file_exists(), set_gdb_data_directory(), show_convenience(), show_gdb_datadir(), show_history_filename(), show_logging_filename(), show_pp_source_pos(), show_user_1(), solib_map_sections(), symbol_file_add_with_addrs(), try_thread_db_load_1(), try_thread_db_load_from_pdir_1(), tvariables_info_1(), pascal_language::type_print_base(), type_print_unknown_return_type(), update_static_tracepoint(), user_select_syms(), val_print_invalid_address(), val_print_not_allocated(), val_print_not_associated(), val_print_not_saved(), val_print_optimized_out(), val_print_packed_array_elements(), val_print_string(), rust_language::val_print_struct(), val_print_type_code_flags(), val_print_unavailable(), validate_exec_file(), valprint_check_validity(), value_check_printable(), value_print_array_elements(), f_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), warning_filename_and_errno(), and watchpoint_value_print().

Member Data Documentation

◆ changed

gdb::observers::observable cli_style_option::changed

Definition at line 62 of file cli-style.h.

Referenced by do_set_value().

◆ m_background

const char* cli_style_option::m_background
private

Definition at line 72 of file cli-style.h.

Referenced by add_setshow_commands(), and style().

◆ m_foreground

const char* cli_style_option::m_foreground
private

Definition at line 70 of file cli-style.h.

Referenced by add_setshow_commands(), and style().

◆ m_intensity

const char* cli_style_option::m_intensity
private

Definition at line 74 of file cli-style.h.

Referenced by add_setshow_commands(), and style().

◆ m_name

const char* cli_style_option::m_name
private

Definition at line 67 of file cli-style.h.

Referenced by add_setshow_commands(), and name().

◆ m_set_list

struct cmd_list_element* cli_style_option::m_set_list = nullptr
private

Definition at line 78 of file cli-style.h.

Referenced by add_setshow_commands(), and set_list().

◆ m_show_list

struct cmd_list_element* cli_style_option::m_show_list = nullptr
private

Definition at line 79 of file cli-style.h.

Referenced by add_setshow_commands(), and show_list().


The documentation for this class was generated from the following files: