GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
m2_language Class Reference

#include "m2-lang.h"

Inheritance diagram for m2_language:
language_defn

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
 
- Public Member Functions inherited from language_defn
 language_defn (enum language lang)
 
virtual const char * name () const =0
 
virtual const char * natural_name () const =0
 
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 valueread_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 void language_arch_info (struct gdbarch *, struct language_arch_info *) const =0
 
virtual struct typelookup_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_ftypeget_symbol_name_matcher (const lookup_name_info &lookup_name) const
 
virtual std::unique_ptr< compile_instanceget_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 void print_type (struct type *type, const char *varstring, struct ui_file *stream, int show, int level, const struct type_print_options *flags) const =0
 
virtual CORE_ADDR skip_trampoline (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 void value_print_inner (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) const
 
virtual int parser (struct parser_state *ps) const
 
virtual void emitchar (int ch, struct type *chtype, struct ui_file *stream, int quoter) const
 
virtual void printchar (int ch, struct type *chtype, struct ui_file *stream) const
 
virtual 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
 
virtual void print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream) const
 
virtual bool is_string_type_p (struct type *type) const
 
virtual const char * struct_too_deep_ellipsis () const
 
virtual const char * name_of_this () const
 
virtual bool c_style_arrays_p () const
 
virtual char string_lower_bound () const
 
virtual bool store_sym_names_in_linkage_form_p () const
 
virtual bool range_checking_on_by_default () 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_opsvarobj_ops () const
 

Additional Inherited Members

- Public Attributes inherited from language_defn
enum language la_language
 
- Static Public Attributes inherited from language_defn
static const struct language_defnlanguages [nr_languages]
 
- Protected Member Functions inherited from language_defn
virtual symbol_name_matcher_ftypeget_symbol_name_matcher_inner (const lookup_name_info &lookup_name) const
 

Detailed Description

Definition at line 52 of file m2-lang.h.

Constructor & Destructor Documentation

◆ m2_language()

m2_language::m2_language ( )
inline

Definition at line 55 of file m2-lang.h.

Member Function Documentation

◆ c_style_arrays_p()

bool m2_language::c_style_arrays_p ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 137 of file m2-lang.h.

◆ emitchar()

void m2_language::emitchar ( int  ch,
struct type chtype,
struct ui_file stream,
int  quoter 
) const
overridevirtual

Reimplemented from language_defn.

Definition at line 232 of file m2-lang.c.

References gdb_printf(), gdb_puts(), and PRINT_LITERAL_FORM.

Referenced by printchar(), and printstr().

◆ is_string_type_p()

bool m2_language::is_string_type_p ( struct type type) const
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().

◆ language_arch_info()

void m2_language::language_arch_info ( struct gdbarch gdbarch,
struct language_arch_info lai 
) const
overridevirtual

◆ name()

const char * m2_language::name ( ) const
inlineoverridevirtual

◆ natural_name()

const char * m2_language::natural_name ( ) const
inlineoverridevirtual

Implements language_defn.

Definition at line 66 of file m2-lang.h.

◆ parser()

int m2_language::parser ( struct parser_state ps) const
overridevirtual

Reimplemented from language_defn.

Definition at line 2738 of file m2-exp.c.

References paren_depth, parser_state::pop(), pstate, expr_builder::set_operation(), and yyparse.

◆ print_type()

void m2_language::print_type ( struct type type,
const char *  varstring,
struct ui_file stream,
int  show,
int  level,
const struct type_print_options flags 
) const
inlineoverridevirtual

Implements language_defn.

Definition at line 76 of file m2-lang.h.

References flags, and m2_print_type().

◆ print_typedef()

void m2_language::print_typedef ( struct type type,
struct symbol new_symbol,
struct ui_file stream 
) const
overridevirtual

◆ printchar()

void m2_language::printchar ( int  ch,
struct type chtype,
struct ui_file stream 
) const
overridevirtual

Reimplemented from language_defn.

Definition at line 145 of file m2-lang.c.

References emitchar(), and gdb_puts().

Referenced by printstr().

◆ printstr()

void m2_language::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
overridevirtual

◆ range_checking_on_by_default()

bool m2_language::range_checking_on_by_default ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 148 of file m2-lang.h.

◆ string_lower_bound()

char m2_language::string_lower_bound ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 143 of file m2-lang.h.

◆ value_print_inner()

void m2_language::value_print_inner ( struct value val,
struct ui_file stream,
int  recurse,
const struct value_print_options options 
) const
overridevirtual

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