GDB (xrefs)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Public Attributes
gdb.printing.FlagEnumerationPrinter Class Reference
Inheritance diagram for gdb.printing.FlagEnumerationPrinter:
gdb.printing.PrettyPrinter gdb.printing.PrettyPrinter

List of all members.

Public Member Functions

def __init__
def __call__
def __init__
def __call__

Public Attributes

 initialized
 enumerators

Detailed Description

A pretty-printer which can be used to print a flag-style enumeration.
A flag-style enumeration is one where the enumerators are or'd
together to create values.  The new printer will print these
symbolically using '|' notation.  The printer must be registered
manually.  This printer is most useful when an enum is flag-like,
but has some overlap.  GDB's built-in printing will not handle
this case, but this printer will attempt to.

Definition at line 236 of file printing.py.


Constructor & Destructor Documentation

def gdb.printing.FlagEnumerationPrinter.__init__ (   self,
  enum_type 
)

Definition at line 245 of file printing.py.

Referenced by gdb.printing.FlagEnumerationPrinter.__init__().

def gdb.printing.FlagEnumerationPrinter.__init__ (   self,
  enum_type 
)

Member Function Documentation

Reimplemented from gdb.printing.PrettyPrinter.

Definition at line 249 of file printing.py.

Referenced by gdb.printing.FlagEnumerationPrinter.__call__().

Reimplemented from gdb.printing.PrettyPrinter.

Definition at line 249 of file printing.py.

References gdb.printing.FlagEnumerationPrinter.__call__(), gdb.printing.PrettyPrinter.enabled, skiplist_entry.enabled, gdb.printing.SubPrettyPrinter.enabled, gdb.types.TypePrinter.enabled, uploaded_tp.enabled, bp_location.enabled, gdb.printing._EnumInstance.enumerators, gdb.printing.FlagEnumerationPrinter.enumerators, dwarf_expr_context.initialized, gdb.printing.FlagEnumerationPrinter.initialized, reg.name, exsummary.Function.name, osdata_column.name, mi_opt.name, xtensa_regtable_t.name, parm_constant.name, reggroup.name, lm_info.name, cmdpy_completer.name, gdb-gdb.TypeFlag.name, user_reg.name, notif_client.name, trace_state_variable.name, pybp_code.name, gdb.printing.PrettyPrinter.name, oso_el.name, @35.name, interp.name, tdesc_reg.name, internal_function.name, objc_class.name, trans.name, subfile.name, cmd_list_element.name, m32c_reg.name, @32.name, @0.name, gdb.printing.SubPrettyPrinter.name, objc_method.name, gdb_xml_value.name, pyty_code.name, header_file.name, section_addr_info::other_sections.name, tdesc_type_field.name, syscall.name, tdesc_type_flag.name, general_symbol_info.name, tdesc_type.name, subfile_stack.name, gdb_xml_attribute.name, lm_sec.name, register_alias.name, xtensa_register_t.name, gdb.types.TypePrinter.name, varobj.name, tui_translate.name, probe_info.name, mi_cmd.name, ada_task_info.name, context_stack.name, private_thread_info.name, thread_info.name, @16.name, gdb_xml_element.name, macro_key.name, tdesc_feature.name, symbol_file_add_from_memory_args.name, probe.name, tui_data_element.name, m68hc11_soft_reg.name, thread_info_struct.name, uploaded_tsv.name, cpstack.name, gdb_xml_enum.name, serial.name, header_file_location.name, serial_ops.name, aop_map.name, minsym_lookup_data.name, delayed_method_info.name, gdb_block.name, main_type.name, dld_list.name, _inclTable.name, loaded_script.name, main_type::@61::field.name, safe_symbol_file_add_args.name, internal_problem.name, macro_name_list.name, elf_gnu_ifunc_cache.name, cplus_struct_type::fn_fieldlist.name, cplus_struct_type::typedef_field.name, memory_packet_config.name, dwp_file.name, line_header::file_entry.name, packet_config.name, objc_methcall.name, field_info::fnfieldlist.name, @113.name, internalvar.name, global_sym_lookup_data.name, f77_boolean_val.name, @178.name, @167.name, variant.name, protocol_feature.name, and symtab_index_entry.name.


Member Data Documentation

Definition at line 249 of file printing.py.

Referenced by gdb.printing.FlagEnumerationPrinter.__call__().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines