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

#include "f-lang.h"

Inheritance diagram for f_language:
language_defn

Public Member Functions

 f_language ()
 
const char * name () const override
 
const char * natural_name () const override
 
const std::vector< const char * > & filename_extensions () const override
 
void print_array_index (struct type *index_type, LONGEST index, struct ui_file *stream, const value_print_options *options) const override
 
void language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai) const override
 
unsigned int search_name_hash (const char *name) const override
 
gdb::unique_xmalloc_ptr< char > demangle_symbol (const char *mangled, int options) 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
 
const char * word_break_characters (void) const override
 
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 override
 
void value_print_inner (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) const override
 
struct block_symbol lookup_symbol_nonlocal (const char *name, const struct block *block, const domain_enum domain) 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
 
struct valuevalue_string (struct gdbarch *gdbarch, const char *ptr, ssize_t len) const override
 
const char * struct_too_deep_ellipsis () const override
 
bool c_style_arrays_p () const override
 
bool range_checking_on_by_default () const override
 
enum case_sensitivity case_sensitivity () const override
 
enum array_ordering array_ordering () const override
 
- Public Member Functions inherited from language_defn
 language_defn (enum language lang)
 
virtual const char * get_digit_separator () 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 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 bool sniff_from_mangled_name (const char *mangled, gdb::unique_xmalloc_ptr< char > *demangled) 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 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 valueto_array (struct value *val) const
 
virtual const char * name_of_this () const
 
virtual char string_lower_bound () const
 
virtual bool store_sym_names_in_linkage_form_p () const
 
virtual enum macro_expansion macro_expansion () const
 
virtual const struct lang_varobj_opsvarobj_ops () const
 

Protected Member Functions

symbol_name_matcher_ftypeget_symbol_name_matcher_inner (const lookup_name_info &lookup_name) const override
 

Private Member Functions

void f_type_print_varspec_prefix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr) const
 
void f_type_print_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, int demangled_args, int arrayprint_recurse_level, bool print_rank_only) const
 
void f_type_print_derivation_info (struct type *type, struct ui_file *stream) const
 
void f_type_print_base (struct type *type, struct ui_file *stream, int show, int level) const
 

Static Private Member Functions

static const char * get_encoding (struct type *type)
 

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]
 

Detailed Description

Definition at line 34 of file f-lang.h.

Constructor & Destructor Documentation

◆ f_language()

f_language::f_language ( )
inline

Definition at line 37 of file f-lang.h.

Member Function Documentation

◆ array_ordering()

enum array_ordering f_language::array_ordering ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 231 of file f-lang.h.

References array_column_major.

◆ c_style_arrays_p()

bool f_language::c_style_arrays_p ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 216 of file f-lang.h.

◆ case_sensitivity()

enum case_sensitivity f_language::case_sensitivity ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 226 of file f-lang.h.

References case_sensitive_off.

◆ collect_symbol_completion_matches()

void f_language::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
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 121 of file f-lang.h.

References code, and default_collect_symbol_completion_matches_break_on().

◆ demangle_symbol()

gdb::unique_xmalloc_ptr< char > f_language::demangle_symbol ( const char * mangled,
int options ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 77 of file f-lang.h.

◆ emitchar()

void f_language::emitchar ( int ch,
struct type * chtype,
struct ui_file * stream,
int quoter ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 153 of file f-lang.h.

References generic_emit_char(), and get_encoding().

Referenced by printchar().

◆ f_type_print_base()

void f_language::f_type_print_base ( struct type * type,
struct ui_file * stream,
int show,
int level ) const
private

◆ f_type_print_derivation_info()

void f_language::f_type_print_derivation_info ( struct type * type,
struct ui_file * stream ) const
private

Definition at line 288 of file f-typeprint.c.

References gdb_printf(), name(), TYPE_BASECLASS, and TYPE_N_BASECLASSES.

Referenced by f_type_print_base().

◆ f_type_print_varspec_prefix()

void f_language::f_type_print_varspec_prefix ( struct type * type,
struct ui_file * stream,
int show,
int passed_a_ptr ) const
private

◆ f_type_print_varspec_suffix()

void f_language::f_type_print_varspec_suffix ( struct type * type,
struct ui_file * stream,
int show,
int passed_a_ptr,
int demangled_args,
int arrayprint_recurse_level,
bool print_rank_only ) const
private

◆ filename_extensions()

const std::vector< const char * > & f_language::filename_extensions ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 53 of file f-lang.h.

◆ get_encoding()

const char * f_language::get_encoding ( struct type * type)
staticprivate

Definition at line 81 of file f-lang.c.

References type::arch(), type::length(), target_charset(), and type_byte_order().

Referenced by emitchar(), and printstr().

◆ get_symbol_name_matcher_inner()

symbol_name_matcher_ftype * f_language::get_symbol_name_matcher_inner ( const lookup_name_info & lookup_name) const
overrideprotectedvirtual

Reimplemented from language_defn.

Definition at line 1726 of file f-lang.c.

References cp_get_symbol_name_matcher().

◆ is_string_type_p()

bool f_language::is_string_type_p ( struct type * type) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 196 of file f-lang.h.

References check_typedef(), type::code(), and type::target_type().

◆ language_arch_info()

void f_language::language_arch_info ( struct gdbarch * gdbarch,
struct language_arch_info * lai ) const
overridevirtual

◆ lookup_symbol_nonlocal()

struct block_symbol f_language::lookup_symbol_nonlocal ( const char * name,
const struct block * block,
const domain_enum domain ) const
overridevirtual

Reimplemented from language_defn.

Definition at line 1716 of file f-lang.c.

References cp_lookup_symbol_nonlocal(), and name.

◆ name()

const char * f_language::name ( ) const
inlineoverridevirtual

◆ natural_name()

const char * f_language::natural_name ( ) const
inlineoverridevirtual

Implements language_defn.

Definition at line 48 of file f-lang.h.

◆ parser()

int f_language::parser ( struct parser_state * ps) const
overridevirtual

◆ print_array_index()

void f_language::print_array_index ( struct type * index_type,
LONGEST index,
struct ui_file * stream,
const value_print_options * options ) const
overridevirtual

Reimplemented from language_defn.

Definition at line 1664 of file f-lang.c.

References gdb_printf(), value_from_longest(), and language_defn::value_print().

◆ print_type()

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

◆ print_typedef()

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

Reimplemented from language_defn.

Definition at line 39 of file f-typeprint.c.

References check_typedef(), print_type(), and type_print_raw_options.

◆ printchar()

void f_language::printchar ( int ch,
struct type * chtype,
struct ui_file * stream ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 162 of file f-lang.h.

References emitchar(), and gdb_puts().

◆ printstr()

void f_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
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 172 of file f-lang.h.

References gdb_puts(), generic_printstr(), get_encoding(), and type::length().

Referenced by value_print_inner().

◆ range_checking_on_by_default()

bool f_language::range_checking_on_by_default ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 221 of file f-lang.h.

◆ search_name_hash()

unsigned int f_language::search_name_hash ( const char * name) const
overridevirtual

Reimplemented from language_defn.

Definition at line 1708 of file f-lang.c.

References cp_search_name_hash(), and name().

◆ struct_too_deep_ellipsis()

const char * f_language::struct_too_deep_ellipsis ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 211 of file f-lang.h.

◆ value_print_inner()

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

◆ value_string()

struct value * f_language::value_string ( struct gdbarch * gdbarch,
const char * ptr,
ssize_t len ) const
overridevirtual

Reimplemented from language_defn.

Definition at line 107 of file f-lang.c.

References language_string_char_type().

◆ word_break_characters()

const char * f_language::word_break_characters ( void ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 97 of file f-lang.h.

References language_defn::word_break_characters().


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