GDB (xrefs)
|
#include "p-lang.h"
Public Member Functions | |
pascal_language () | |
const char * | name () const override |
const char * | natural_name () const override |
const std::vector< const char * > & | filename_extensions () 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 (struct value *val, struct ui_file *stream, const struct value_print_options *options) 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 |
const char * | name_of_this () const override |
bool | range_checking_on_by_default () const override |
![]() | |
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 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 void | language_arch_info (struct gdbarch *, struct language_arch_info *) const =0 |
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 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_ops * | varobj_ops () const |
Private Member Functions | |
void | print_one_char (int c, struct ui_file *stream, int *in_quotes) const |
void | type_print_base (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) const |
void | type_print_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, int demangled_args, const struct type_print_options *flags) const |
void | type_print_func_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, int demangled_args, const struct type_print_options *flags) const |
void | type_print_varspec_prefix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, const struct type_print_options *flags) const |
void | print_func_args (struct type *type, struct ui_file *stream, const struct type_print_options *flags) const |
void | type_print_method_args (const char *physname, const char *methodname, struct ui_file *stream) const |
void | type_print_derivation_info (struct ui_file *stream, struct type *type) 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.
Definition at line 112 of file p-lang.h.
References gdb_puts(), and print_one_char().
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
inlineoverridevirtual |
Reimplemented from language_defn.
Definition at line 141 of file p-lang.h.
References pascal_is_string_type().
|
overridevirtual |
Implements language_defn.
Definition at line 190 of file p-lang.c.
References language_arch_info::add_primitive_type(), builtin_type::builtin_bool, builtin_type::builtin_char, builtin_type::builtin_complex, builtin_type::builtin_double, builtin_type::builtin_double_complex, builtin_type::builtin_float, builtin_type::builtin_int, builtin_type::builtin_long, builtin_type::builtin_long_double, builtin_type::builtin_long_long, builtin_type::builtin_short, builtin_type::builtin_signed_char, builtin_type::builtin_unsigned_char, builtin_type::builtin_unsigned_int, builtin_type::builtin_unsigned_long, builtin_type::builtin_unsigned_long_long, builtin_type::builtin_unsigned_short, builtin_type::builtin_void, language_arch_info::set_bool_type(), and language_arch_info::set_string_char_type().
|
inlineoverridevirtual |
Implements language_defn.
Definition at line 67 of file p-lang.h.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.disassembler.Disassembler::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.unwinder.Unwinder::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), and type_print_derivation_info().
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
inlineoverridevirtual |
Implements language_defn.
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 3214 of file p-exp.c.
References paren_depth, parser_state::pop(), pstate, expr_builder::set_operation(), and yyparse.
|
private |
Definition at line 276 of file p-typeprint.c.
References type::field(), flags, gdb_printf(), gdb_puts(), type::num_fields(), print_type(), field::type(), and ui_file::wrap_here().
Referenced by type_print_varspec_suffix().
|
private |
Definition at line 149 of file p-lang.c.
References gdb_printf(), gdb_puts(), and PRINT_LITERAL_FORM.
Referenced by emitchar(), printchar(), and printstr().
|
overridevirtual |
Implements language_defn.
Definition at line 40 of file p-typeprint.c.
References check_typedef(), code, type::code(), flags, gdb_puts(), type_print_base(), type_print_varspec_prefix(), and type_print_varspec_suffix().
Referenced by print_func_args(), and type_print_base().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 86 of file p-typeprint.c.
References check_typedef(), gdb_printf(), new_symbol(), general_symbol_info::print_name(), and type_print().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 176 of file p-lang.c.
References gdb_puts(), and print_one_char().
Referenced by printstr().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 226 of file p-lang.c.
References check_typedef(), extract_unsigned_integer(), gdb_printf(), gdb_puts(), type::length(), metadata_style, PRINT_LITERAL_FORM, value_print_options::print_max, print_one_char(), printchar(), ui_file_style::ptr(), QUIT, value_print_options::repeat_count_threshold, cli_style_option::style(), and type_byte_order().
Referenced by value_print_inner().
|
inlineoverridevirtual |
Reimplemented from language_defn.
|
private |
Definition at line 409 of file p-typeprint.c.
References type::bounds(), check_typedef(), code, type::code(), dynamic_prop::const_val(), f(), type::field(), field_is_static(), flags, fprintf_styled(), fputs_styled(), gdb_printf(), gdb_puts(), HAVE_CPLUS_STRUCT, range_bounds::high, type::index_type(), is_cplus_marker(), type::is_stub(), field::loc_enumval(), range_bounds::low, metadata_style, field::name(), type::name(), type::num_fields(), print_spaces(), print_type(), print_type_scalar(), QUIT, s_none, s_private, s_protected, s_public, cli_style_option::style(), type::target_type(), field::type(), TYPE_CODE_UNDEF, TYPE_ERROR_NAME, TYPE_FIELD_BITSIZE, TYPE_FIELD_PACKED, TYPE_FIELD_PRIVATE, TYPE_FIELD_PROTECTED, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_PRIVATE, TYPE_FN_FIELD_PROTECTED, TYPE_FN_FIELD_STATIC_P, TYPE_FN_FIELD_TYPE, TYPE_FN_FIELD_VIRTUAL_P, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_LENGTH, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, TYPE_NFN_FIELDS, type_print(), type_print_base(), type_print_derivation_info(), type_print_method_args(), and ui_file::wrap_here().
Referenced by print_type(), type_print_base(), type_print_func_varspec_suffix(), and type_print_varspec_prefix().
|
private |
Definition at line 99 of file p-typeprint.c.
References BASETYPE_VIA_PUBLIC, BASETYPE_VIA_VIRTUAL, gdb_printf(), gdb_puts(), name(), TYPE_BASECLASS, and TYPE_N_BASECLASSES.
Referenced by type_print_base().
|
private |
Definition at line 310 of file p-typeprint.c.
References type::code(), flags, gdb_printf(), type::target_type(), type_print_base(), type_print_unknown_return_type(), type_print_varspec_prefix(), and type_print_varspec_suffix().
Referenced by type_print_varspec_suffix().
|
private |
Definition at line 123 of file p-typeprint.c.
References gdb_putc(), and gdb_puts().
Referenced by type_print_base(), and type_print_varspec_suffix().
|
private |
Definition at line 170 of file p-typeprint.c.
References type::bounds(), type::code(), dynamic_prop::const_val(), flags, gdb_printf(), range_bounds::high, dynamic_prop::kind(), type::length(), range_bounds::low, type::name(), PROP_UNDEFINED, QUIT, type::target_type(), TYPE_CODE_UNDEF, type_print_base(), type_print_varspec_prefix(), and TYPE_SELF_TYPE.
Referenced by print_type(), type_print_func_varspec_suffix(), and type_print_varspec_prefix().
|
private |
Definition at line 337 of file p-typeprint.c.
References type::code(), flags, gdb_printf(), type::name(), print_func_args(), QUIT, type::target_type(), TYPE_CODE_UNDEF, type_print_func_varspec_suffix(), type_print_method_args(), and type_print_varspec_suffix().
Referenced by print_type(), type_print_func_varspec_suffix(), and type_print_varspec_suffix().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 405 of file p-valprint.c.
References type::code(), common_val_print(), current_language, gdb_printf(), type::name(), type::target_type(), type_print(), and value_type().
|
overridevirtual |
Reimplemented from language_defn.
Definition at line 67 of file p-valprint.c.
References value_print_options::addressprint, type::arch(), check_typedef(), type::code(), common_val_print(), current_language, demangle, extract_unsigned_integer(), type::field(), value_print_options::format, fprintf_styled(), fputs_styled(), gdb_printf(), gdb_puts(), generic_value_print(), get_array_bounds(), get_discrete_bounds(), type::index_type(), type::is_stub(), type::length(), field::loc_bitpos(), lookup_minimal_symbol_by_pc(), lookup_symbol_search_name(), metadata_style, bound_minimal_symbol::minsym, p_decorations, paddress(), pascal_is_string_type(), pascal_object_is_vtbl_member(), pascal_object_is_vtbl_ptr_type(), pascal_object_print_value_fields(), value_print_options::prettyformat, print_address_demangle(), value_print_options::print_max, general_symbol_info::print_name(), print_spaces(), print_type_scalar(), print_unpacked_pointer(), printstr(), read_memory(), general_symbol_info::search_name(), value_print_options::stop_print_at_null, cli_style_option::style(), block_symbol::symbol, value_print_options::symbol_print, type::target_type(), field::type(), symbol::type(), type_byte_order(), TYPE_CODE_UNDEF, value_print_options::unionprint, unpack_pointer(), val_print_string(), bound_minimal_symbol::value_address(), value_address(), value_at(), value_bit_index(), value_contents_for_printing(), value_print_array_elements(), value_print_scalar_formatted(), value_type(), VAR_DOMAIN, VTBL_FNADDR_OFFSET, value_print_options::vtblprint, xfree(), and xmalloc().