GDB (xrefs)
|
Go to the source code of this file.
Enumerations | |
enum | c_string_type_values : unsigned { C_STRING = 0 , C_WIDE_STRING = 1 , C_STRING_16 = 2 , C_STRING_32 = 3 , C_CHAR = 4 , C_WIDE_CHAR = 5 , C_CHAR_16 = 6 , C_CHAR_32 = 7 } |
Functions | |
DEF_ENUM_FLAGS_TYPE (enum c_string_type_values, c_string_type) | |
int | c_parse (struct parser_state *) |
int | c_parse_escape (const char **, struct obstack *) |
void | c_print_type (struct type *type, const char *varstring, struct ui_file *stream, int show, int level, enum language language, const struct type_print_options *flags) |
void | c_print_typedef (struct type *, struct symbol *, struct ui_file *) |
void | c_value_print_inner (struct value *, struct ui_file *, int, const struct value_print_options *) |
void | c_value_print (struct value *, struct ui_file *, const struct value_print_options *) |
void | c_printchar (int, struct type *, struct ui_file *) |
void | c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai) |
void | c_type_print_base (struct type *, struct ui_file *, int, int, const struct type_print_options *) |
void | cp_print_class_member (const gdb_byte *, struct type *, struct ui_file *, const char *) |
void | cp_print_value_fields (struct value *, struct ui_file *, int, const struct value_print_options *, struct type **, int) |
int | cp_is_vtbl_ptr_type (struct type *) |
int | cp_is_vtbl_member (struct type *) |
bool | c_is_string_type_p (struct type *type) |
int | c_textual_element_type (struct type *, char) |
std::unique_ptr< compile_instance > | c_get_compile_context () |
std::unique_ptr< compile_instance > | cplus_get_compile_context () |
std::string | c_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) |
std::string | cplus_compute_program (compile_instance *inst, const char *input, struct gdbarch *gdbarch, const struct block *expr_block, CORE_ADDR expr_pc) |
gdb::unique_xmalloc_ptr< char > | c_canonicalize_name (const char *name) |
Variables | |
const char | vtbl_ptr_name [] |
enum c_string_type_values : unsigned |
gdb::unique_xmalloc_ptr< char > c_canonicalize_name | ( | const char * | name | ) |
Definition at line 733 of file c-lang.c.
References cp_canonicalize_string(), and name.
Referenced by define_symbol(), cooked_index::do_finalize(), dwarf2_canonicalize_name(), read_dbx_symtab(), and read_type().
std::string c_compute_program | ( | compile_instance * | inst, |
const char * | input, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | expr_block, | ||
CORE_ADDR | expr_pc | ||
) |
Definition at line 666 of file compile-c-support.c.
Referenced by c_language::compute_program().
std::unique_ptr< compile_instance > c_get_compile_context | ( | ) |
Definition at line 127 of file compile-c-support.c.
References get_compile_context().
Referenced by c_language::get_compile_instance().
bool c_is_string_type_p | ( | struct type * | type | ) |
Definition at line 695 of file c-lang.c.
References c_textual_element_type(), check_typedef(), type::code(), type::length(), and type::target_type().
Referenced by language_defn::is_string_type_p(), printf_c_string(), and printf_wide_c_string().
void c_language_arch_info | ( | struct gdbarch * | gdbarch, |
struct language_arch_info * | lai | ||
) |
Definition at line 745 of file c-lang.c.
References language_arch_info::add_primitive_type(), builtin_type::builtin_char, builtin_type::builtin_complex, builtin_type::builtin_decdouble, builtin_type::builtin_decfloat, builtin_type::builtin_declong, 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().
Referenced by c_language::language_arch_info(), asm_language::language_arch_info(), minimal_language::language_arch_info(), and objc_language::language_arch_info().
int c_parse | ( | struct parser_state * | par_state | ) |
Definition at line 6064 of file c-exp.c.
References cpstate, default_macro_scope(), parser_state::expression_context_block, parser_state::expression_context_pc, expression_macro_scope, find_pc_line(), last_was_structop, name_obstack, paren_depth, parser_debug, parser_state::pop(), popping, pstate, sal_macro_scope(), saw_name_at_eof, expr_builder::set_operation(), token_fifo, user_macro_scope(), yydebug, and yyparse().
Referenced by language_defn::parser().
int c_parse_escape | ( | const char ** | ptr, |
struct obstack * | output | ||
) |
Definition at line 4855 of file c-exp.c.
References HOST_ESCAPE_CHAR.
Referenced by get_character_constant(), get_string_literal(), and parse_string_or_char().
void c_print_type | ( | struct type * | type, |
const char * | varstring, | ||
struct ui_file * | stream, | ||
int | show, | ||
int | level, | ||
enum language | language, | ||
const struct type_print_options * | flags | ||
) |
Definition at line 169 of file c-typeprint.c.
References c_print_type_1(), and flags.
Referenced by ada_print_type(), c_type_print_args(), c_type_print_template_args(), cp_type_print_method_args(), gnuv3_print_method_ptr(), c_language::print_type(), cplus_language::print_type(), asm_language::print_type(), minimal_language::print_type(), d_language::print_type(), go_language::print_type(), objc_language::print_type(), opencl_language::print_type(), rust_internal_print_type(), rust_print_struct_def(), and yyparse().
Definition at line 187 of file c-typeprint.c.
References check_typedef(), type::code(), gdb_printf(), general_symbol_info::linkage_name(), new_symbol(), general_symbol_info::print_name(), symbol::type(), and type_print().
Referenced by language_defn::print_typedef().
int c_textual_element_type | ( | struct type * | type, |
char | format | ||
) |
Definition at line 57 of file c-valprint.c.
References check_typedef(), type::code(), type::length(), type::name(), type::target_type(), textual_name(), and TYPE_NOTTEXT.
Referenced by c_get_string(), c_is_string_type_p(), c_value_print_array(), c_value_print_int(), gen_traced_pop(), and print_unpacked_pointer().
void c_type_print_base | ( | struct type * | type, |
struct ui_file * | stream, | ||
int | show, | ||
int | level, | ||
const struct type_print_options * | flags | ||
) |
Definition at line 1709 of file c-typeprint.c.
References c_type_print_base_1(), current_language, flags, and language_defn::la_language.
Referenced by cp_print_class_member().
void c_value_print | ( | struct value * | val, |
struct ui_file * | stream, | ||
const struct value_print_options * | options | ||
) |
Definition at line 471 of file c-valprint.c.
References check_typedef(), type::code(), common_val_print(), current_language, gdb_printf(), type::is_pointer_or_reference(), type::length(), name, type::name(), value_print_options::objectprint, type::target_type(), textual_name(), TYPE_CODE_UNDEF, TYPE_IS_REFERENCE, type_print(), value_addr(), value_as_address(), value_cast(), value_enclosing_type(), value_entirely_available(), value_from_pointer(), value_full_object(), value_ind(), value_initialized(), value_ref(), value_rtti_indirect_type(), value_rtti_type(), and value_type().
Referenced by language_defn::value_print().
void c_value_print_inner | ( | struct value * | val, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options | ||
) |
Definition at line 421 of file c-valprint.c.
References c_decorations, c_value_print_array(), c_value_print_int(), c_value_print_ptr(), c_value_print_struct(), check_typedef(), type::code(), generic_value_print(), TYPE_CODE_UNDEF, and value_type().
Referenced by d_value_print_inner(), language_defn::value_print_inner(), and go_language::value_print_inner().
int cp_is_vtbl_member | ( | struct type * | type | ) |
Definition at line 75 of file cp-valprint.c.
References type::code(), cp_is_vtbl_ptr_type(), and type::target_type().
Referenced by print_unpacked_pointer().
int cp_is_vtbl_ptr_type | ( | struct type * | type | ) |
Definition at line 64 of file cp-valprint.c.
References type::name(), and vtbl_ptr_name.
Referenced by c_value_print_array(), c_value_print_ptr(), c_value_print_struct(), and cp_is_vtbl_member().
void cp_print_class_member | ( | const gdb_byte * | valaddr, |
struct type * | type, | ||
struct ui_file * | stream, | ||
const char * | prefix | ||
) |
Definition at line 669 of file cp-valprint.c.
References c_type_print_base(), cp_find_class_member(), extract_signed_integer(), type::field(), fputs_styled(), gdb_printf(), gdb_puts(), type::length(), name, field::name(), type::name(), prefix, cli_style_option::style(), type_byte_order(), type_print_raw_options, TYPE_SELF_TYPE, and variable_name_style.
Referenced by generic_value_print_memberptr().
void cp_print_value_fields | ( | struct value * | val, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options, | ||
struct type ** | dont_print_vb, | ||
int | dont_print_statmem | ||
) |
Definition at line 123 of file cp-valprint.c.
References annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), type::arch(), check_typedef(), common_val_print(), cp_print_static_field(), cp_print_value(), current_language, dont_print_stat_array_obstack, dont_print_statmem_obstack, extract_typed_address(), type::field(), field_is_static(), fprintf_styled(), fprintf_symbol(), fputs_styled(), gdb_printf(), gdb_puts(), get_vptr_fieldno(), INT_MAX, language_defn::la_language, field::loc_bitpos(), metadata_style, field::name(), type::name(), type::num_fields(), value_print_options::prettyformat, print_function_pointer_address(), print_spaces(), value_print_options::static_field_print, cli_style_option::style(), field::type(), TYPE_FIELD_BITSIZE, TYPE_FIELD_IGNORE, TYPE_FIELD_PACKED, TYPE_N_BASECLASSES, valprint_check_validity(), value_bits_synthetic_pointer(), value_contents_for_printing(), value_embedded_offset(), value_field_bitfield(), value_primitive_field(), value_static_field(), value_type(), variable_name_style, and ui_file::wrap_here().
Referenced by c_value_print_struct(), cp_print_static_field(), cp_print_value(), and m2_language::value_print_inner().
std::string cplus_compute_program | ( | compile_instance * | inst, |
const char * | input, | ||
struct gdbarch * | gdbarch, | ||
const struct block * | expr_block, | ||
CORE_ADDR | expr_pc | ||
) |
Definition at line 681 of file compile-c-support.c.
Referenced by cplus_language::compute_program().
std::unique_ptr< compile_instance > cplus_get_compile_context | ( | ) |
Definition at line 139 of file compile-c-support.c.
References get_compile_context().
Referenced by cplus_language::get_compile_instance().
DEF_ENUM_FLAGS_TYPE | ( | enum | c_string_type_values, |
c_string_type | |||
) |
|
extern |
Definition at line 58 of file cp-valprint.c.
Referenced by cp_is_vtbl_ptr_type(), and define_symbol().