GDB (xrefs)
|
#include "m2-lang.h"
Public Member Functions | |
m2_language () | |
const char * | name () const override |
const char * | natural_name () const override |
void | language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai) const override |
void | print_type (struct type *type, const char *varstring, struct ui_file *stream, int show, int level, const struct type_print_options *flags) const override |
void | value_print_inner (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) const override |
int | parser (struct parser_state *ps) const override |
void | emitchar (int ch, struct type *chtype, struct ui_file *stream, int quoter) const override |
void | printchar (int ch, struct type *chtype, struct ui_file *stream) const override |
void | printstr (struct ui_file *stream, struct type *elttype, const gdb_byte *string, unsigned int length, const char *encoding, int force_ellipses, const struct value_print_options *options) const override |
void | print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream) const override |
bool | is_string_type_p (struct type *type) const override |
bool | c_style_arrays_p () const override |
char | string_lower_bound () const override |
bool | range_checking_on_by_default () const override |
![]() | |
language_defn (enum language lang) | |
virtual const char * | get_digit_separator () const |
virtual const std::vector< const char * > & | filename_extensions () const |
virtual void | print_array_index (struct type *index_type, LONGEST index_value, struct ui_file *stream, const value_print_options *options) const |
virtual struct value * | read_var_value (struct symbol *var, const struct block *var_block, frame_info_ptr frame) const |
virtual struct language_pass_by_ref_info | pass_by_reference_info (struct type *type) const |
virtual bool | symbol_printing_suppressed (struct symbol *symbol) const |
virtual struct type * | lookup_transparent_type (const char *name) const |
virtual bool | iterate_over_symbols (const struct block *block, const lookup_name_info &name, domain_enum domain, gdb::function_view< symbol_found_callback_ftype > callback) const |
symbol_name_matcher_ftype * | get_symbol_name_matcher (const lookup_name_info &lookup_name) const |
virtual std::unique_ptr< compile_instance > | get_compile_instance () const |
virtual std::string | compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) const |
virtual unsigned int | search_name_hash (const char *name) const |
virtual bool | sniff_from_mangled_name (const char *mangled, gdb::unique_xmalloc_ptr< char > *demangled) const |
virtual gdb::unique_xmalloc_ptr< char > | demangle_symbol (const char *mangled, int options) const |
virtual bool | can_print_type_offsets () const |
virtual CORE_ADDR | skip_trampoline (const frame_info_ptr &fi, CORE_ADDR pc) const |
virtual char * | class_name_from_physname (const char *physname) const |
virtual const char * | word_break_characters (void) const |
virtual void | collect_symbol_completion_matches (completion_tracker &tracker, complete_symbol_mode mode, symbol_name_match_type name_match_type, const char *text, const char *word, enum type_code code) const |
virtual struct block_symbol | lookup_symbol_nonlocal (const char *name, const struct block *block, const domain_enum domain) const |
virtual gdb::unique_xmalloc_ptr< char > | watch_location_expression (struct type *type, CORE_ADDR addr) const |
virtual void | value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options) const |
virtual bool | is_array_like (struct type *type) const |
virtual struct value * | to_array (struct value *val) const |
virtual const char * | struct_too_deep_ellipsis () const |
virtual const char * | name_of_this () const |
virtual struct value * | value_string (struct gdbarch *gdbarch, const char *ptr, ssize_t len) const |
virtual bool | store_sym_names_in_linkage_form_p () const |
virtual enum case_sensitivity | case_sensitivity () const |
virtual enum array_ordering | array_ordering () const |
virtual enum macro_expansion | macro_expansion () const |
virtual const struct lang_varobj_ops * | varobj_ops () const |
Additional Inherited Members | |
![]() | |
enum language | la_language |
![]() | |
static const struct language_defn * | languages [nr_languages] |
![]() | |
virtual symbol_name_matcher_ftype * | get_symbol_name_matcher_inner (const lookup_name_info &lookup_name) const |
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 233 of file m2-lang.c.
References gdb_printf(), gdb_puts(), and PRINT_LITERAL_FORM.
Referenced by printchar(), and printstr().
|
inlineoverridevirtual |
Reimplemented from language_defn.
Definition at line 117 of file m2-lang.h.
References check_typedef(), type::code(), type::length(), and type::target_type().
|
overridevirtual |
Implements language_defn.
Definition at line 121 of file m2-lang.c.
References language_arch_info::add_primitive_type(), builtin_m2_type::builtin_bool, builtin_m2_type::builtin_card, builtin_m2_type::builtin_char, builtin_m2_type::builtin_int, builtin_m2_type(), builtin_m2_type::builtin_real, language_arch_info::set_bool_type(), and language_arch_info::set_string_char_type().
|
inlineoverridevirtual |
Implements language_defn.
Definition at line 61 of file m2-lang.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__(), and gdb.dap.varref.BaseReference::to_object().
|
inlineoverridevirtual |
Implements language_defn.
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 2735 of file m2-exp.c.
References paren_depth, parser_state::pop(), pstate, expr_builder::set_operation(), and yyparse.
|
inlineoverridevirtual |
Implements language_defn.
Definition at line 76 of file m2-lang.h.
References flags, and m2_print_type().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 162 of file m2-typeprint.c.
References check_typedef(), gdb_printf(), general_symbol_info::linkage_name(), type::name(), new_symbol(), general_symbol_info::print_name(), symbol::type(), and type_print().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 145 of file m2-lang.c.
References emitchar(), and gdb_puts().
Referenced by printstr().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 156 of file m2-lang.c.
References emitchar(), gdb_printf(), gdb_puts(), get_print_max_chars(), printchar(), QUIT, and value_print_options::repeat_count_threshold.
Referenced by value_print_inner().
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 301 of file m2-valprint.c.
References value::address, check_typedef(), type::code(), value::contents_for_printing(), cp_print_value_fields(), current_language, value_print_options::format, fprintf_styled(), fputs_styled(), gdb_printf(), gdb_puts(), generic_value_print(), get_discrete_bounds(), get_print_max_chars(), type::index_type(), type::is_stub(), language_defn::la_language, language_m2, type::length(), m2_decorations, m2_is_long_set(), m2_is_unbounded_array(), m2_print_long_set(), m2_print_unbounded_array(), metadata_style, print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), printstr(), value_print_options::stop_print_at_null, cli_style_option::style(), type::target_type(), value::type(), TYPE_CODE_UNDEF, TYPE_CONST, value_print_options::unionprint, unpack_pointer(), value_bit_index(), value_cast(), value_print_array_elements(), value_print_inner(), and value_print_scalar_formatted().
Referenced by value_print_inner().