GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
cplus_language Class Reference
Inheritance diagram for cplus_language:
language_defn

Public Member Functions

 cplus_language ()
 
const char * name () const override
 
const char * natural_name () const override
 
const char * get_digit_separator () const override
 
const std::vector< const char * > & filename_extensions () const override
 
struct language_pass_by_ref_info pass_by_reference_info (struct type *type) const override
 
void language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai) const override
 
struct typelookup_transparent_type (const char *name) const override
 
std::unique_ptr< compile_instanceget_compile_instance () const override
 
std::string compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) const override
 
unsigned int search_name_hash (const char *name) const override
 
bool sniff_from_mangled_name (const char *mangled, gdb::unique_xmalloc_ptr< char > *demangled) const override
 
gdb::unique_xmalloc_ptr< char > demangle_symbol (const char *mangled, int options) const override
 
bool can_print_type_offsets () 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
 
CORE_ADDR skip_trampoline (const frame_info_ptr &fi, CORE_ADDR pc) const override
 
char * class_name_from_physname (const char *physname) const override
 
struct block_symbol lookup_symbol_nonlocal (const char *name, const struct block *block, const domain_enum domain) const override
 
const char * name_of_this () const override
 
enum macro_expansion macro_expansion () const override
 
const struct lang_varobj_opsvarobj_ops () const override
 
- Public Member Functions inherited from language_defn
 language_defn (enum language lang)
 
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 bool symbol_printing_suppressed (struct symbol *symbol) 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 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 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 bool is_array_like (struct type *type) const
 
virtual struct valueto_array (struct value *val) const
 
virtual const char * struct_too_deep_ellipsis () const
 
virtual bool c_style_arrays_p () const
 
virtual char string_lower_bound () const
 
virtual struct valuevalue_string (struct gdbarch *gdbarch, const char *ptr, ssize_t len) 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
 

Protected Member Functions

symbol_name_matcher_ftypeget_symbol_name_matcher_inner (const lookup_name_info &lookup_name) const override
 

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 858 of file c-lang.c.

Constructor & Destructor Documentation

◆ cplus_language()

cplus_language::cplus_language ( )
inline

Definition at line 861 of file c-lang.c.

Member Function Documentation

◆ can_print_type_offsets()

bool cplus_language::can_print_type_offsets ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 984 of file c-lang.c.

◆ class_name_from_physname()

char * cplus_language::class_name_from_physname ( const char * physname) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1008 of file c-lang.c.

References cp_class_name_from_physname().

◆ compute_program()

std::string cplus_language::compute_program ( compile_instance * inst,
const char * input,
struct gdbarch * gdbarch,
const struct block * expr_block,
CORE_ADDR expr_pc ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 950 of file c-lang.c.

References cplus_compute_program().

◆ demangle_symbol()

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

Reimplemented from language_defn.

Definition at line 976 of file c-lang.c.

References gdb_demangle().

◆ filename_extensions()

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

Reimplemented from language_defn.

Definition at line 881 of file c-lang.c.

◆ get_compile_instance()

std::unique_ptr< compile_instance > cplus_language::get_compile_instance ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 944 of file c-lang.c.

References cplus_get_compile_context().

◆ get_digit_separator()

const char * cplus_language::get_digit_separator ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 876 of file c-lang.c.

◆ get_symbol_name_matcher_inner()

symbol_name_matcher_ftype * cplus_language::get_symbol_name_matcher_inner ( const lookup_name_info & lookup_name) const
inlineoverrideprotectedvirtual

Reimplemented from language_defn.

Definition at line 1041 of file c-lang.c.

References cp_get_symbol_name_matcher().

◆ language_arch_info()

void cplus_language::language_arch_info ( struct gdbarch * gdbarch,
struct language_arch_info * lai ) const
inlineoverridevirtual

◆ lookup_symbol_nonlocal()

struct block_symbol cplus_language::lookup_symbol_nonlocal ( const char * name,
const struct block * block,
const domain_enum domain ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1015 of file c-lang.c.

References cp_lookup_symbol_nonlocal(), and name().

◆ lookup_transparent_type()

struct type * cplus_language::lookup_transparent_type ( const char * name) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 938 of file c-lang.c.

References cp_lookup_transparent_type(), and name().

◆ macro_expansion()

enum macro_expansion cplus_language::macro_expansion ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1029 of file c-lang.c.

References macro_expansion_c.

◆ name()

const char * cplus_language::name ( ) const
inlineoverridevirtual

◆ name_of_this()

const char * cplus_language::name_of_this ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1024 of file c-lang.c.

◆ natural_name()

const char * cplus_language::natural_name ( ) const
inlineoverridevirtual

Implements language_defn.

Definition at line 872 of file c-lang.c.

◆ pass_by_reference_info()

struct language_pass_by_ref_info cplus_language::pass_by_reference_info ( struct type * type) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 890 of file c-lang.c.

References cp_pass_by_reference().

◆ print_type()

void cplus_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 991 of file c-lang.c.

References c_print_type(), flags, and language_defn::la_language.

◆ search_name_hash()

unsigned int cplus_language::search_name_hash ( const char * name) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 960 of file c-lang.c.

References cp_search_name_hash(), and name().

◆ skip_trampoline()

CORE_ADDR cplus_language::skip_trampoline ( const frame_info_ptr & fi,
CORE_ADDR pc ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1000 of file c-lang.c.

References cplus_skip_trampoline().

◆ sniff_from_mangled_name()

bool cplus_language::sniff_from_mangled_name ( const char * mangled,
gdb::unique_xmalloc_ptr< char > * demangled ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 966 of file c-lang.c.

References gdb_demangle().

◆ varobj_ops()

const struct lang_varobj_ops * cplus_language::varobj_ops ( ) const
inlineoverridevirtual

Reimplemented from language_defn.

Definition at line 1034 of file c-lang.c.

References cplus_varobj_ops.


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