|
GDB (xrefs)
|
Go to the source code of this file.
Classes | |
| struct | language_arch_info |
| struct | language_defn |
| class | scoped_restore_current_language |
Macros | |
| #define | MAX_FORTRAN_DIMS 7 /* Maximum number of F77 array dims. */ |
| #define | LANG_MAGIC 910823L |
| #define | RANGE_CHECK (range_check != range_check_off) |
| #define | CAST_IS_CONVERSION(LANG) |
| #define | LA_PRINT_TYPE(type, varstring, stream, show, level, flags) (current_language->la_print_type(type,varstring,stream,show,level,flags)) |
| #define | LA_PRINT_TYPEDEF(type, new_symbol, stream) (current_language->la_print_typedef(type,new_symbol,stream)) |
| #define | LA_VALUE_PRINT(val, stream, options) (current_language->la_value_print(val,stream,options)) |
| #define | LA_PRINT_CHAR(ch, type, stream) (current_language->la_printchar(ch, type, stream)) |
| #define | LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options) |
| #define | LA_EMIT_CHAR(ch, type, stream, quoter) (current_language->la_emitchar(ch, type, stream, quoter)) |
| #define | LA_GET_STRING(value, buffer, length, chartype, encoding) (current_language->la_get_string(value, buffer, length, chartype, encoding)) |
| #define | LA_PRINT_ARRAY_INDEX(index_value, stream, options) (current_language->la_print_array_index(index_value, stream, options)) |
| #define | LA_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK) (current_language->la_iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK)) |
| #define | PRINT_LITERAL_FORM(c) |
Enumerations | |
| enum | range_mode { range_mode_auto, range_mode_manual } |
| enum | range_check { range_check_off, range_check_warn, range_check_on } |
| enum | case_mode { case_mode_auto, case_mode_manual } |
| enum | array_ordering { array_row_major, array_column_major } |
| enum | case_sensitivity { case_sensitive_on, case_sensitive_off } |
| enum | macro_expansion { macro_expansion_no, macro_expansion_c } |
| enum | language_mode { language_mode_auto, language_mode_manual } |
Variables | |
| enum range_mode | range_mode |
| enum range_check | range_check |
| enum case_mode | case_mode |
| enum array_ordering | array_ordering |
| enum case_sensitivity | case_sensitivity |
| const struct language_defn * | current_language |
| const struct language_defn * | expected_language |
| enum language_mode | language_mode |
| const struct language_defn | auto_language_defn |
| const struct language_defn | unknown_language_defn |
| const struct language_defn | minimal_language_defn |
| const struct language_defn | ada_language_defn |
| const struct language_defn | asm_language_defn |
| const struct language_defn | c_language_defn |
| const struct language_defn | cplus_language_defn |
| const struct language_defn | d_language_defn |
| const struct language_defn | f_language_defn |
| const struct language_defn | go_language_defn |
| const struct language_defn | m2_language_defn |
| const struct language_defn | objc_language_defn |
| const struct language_defn | opencl_language_defn |
| const struct language_defn | pascal_language_defn |
| const struct language_defn | rust_language_defn |
| #define CAST_IS_CONVERSION | ( | LANG | ) |
Definition at line 504 of file language.h.
Referenced by evaluate_subexp_with_coercion().
| #define LA_EMIT_CHAR | ( | ch, | |
| type, | |||
| stream, | |||
| quoter | |||
| ) | (current_language->la_emitchar(ch, type, stream, quoter)) |
Definition at line 532 of file language.h.
Referenced by c_printchar(), f_printchar(), m2_printchar(), m2_printstr(), print_char_chars(), and rust_printchar().
| #define LA_GET_STRING | ( | value, | |
| buffer, | |||
| length, | |||
| chartype, | |||
| encoding | |||
| ) | (current_language->la_get_string(value, buffer, length, chartype, encoding)) |
Definition at line 534 of file language.h.
Referenced by gdbscm_value_to_string(), and valpy_string().
| #define LA_ITERATE_OVER_SYMBOLS | ( | BLOCK, | |
| NAME, | |||
| DOMAIN, | |||
| CALLBACK | |||
| ) | (current_language->la_iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK)) |
Definition at line 540 of file language.h.
Referenced by iterate_over_file_blocks().
| #define LA_PRINT_ARRAY_INDEX | ( | index_value, | |
| stream, | |||
| options | |||
| ) | (current_language->la_print_array_index(index_value, stream, options)) |
Definition at line 537 of file language.h.
Referenced by maybe_print_array_index().
| #define LA_PRINT_CHAR | ( | ch, | |
| type, | |||
| stream | |||
| ) | (current_language->la_printchar(ch, type, stream)) |
Definition at line 527 of file language.h.
Referenced by ada_print_scalar(), c_val_print_int(), generic_val_print_char(), and print_type_scalar().
| #define LA_PRINT_STRING | ( | stream, | |
| elttype, | |||
| string, | |||
| length, | |||
| encoding, | |||
| force_ellipses, | |||
| options | |||
| ) |
Definition at line 529 of file language.h.
Referenced by c_val_print_array(), f_val_print(), m2_val_print(), pascal_val_print(), ppscm_print_string_repr(), print_string_repr(), print_subexp_standard(), val_print_string(), and varobj_value_get_print_value().
| #define LA_PRINT_TYPE | ( | type, | |
| varstring, | |||
| stream, | |||
| show, | |||
| level, | |||
| flags | |||
| ) | (current_language->la_print_type(type,varstring,stream,show,level,flags)) |
Definition at line 518 of file language.h.
Referenced by ada_print_subexp(), print_symbol(), type_print(), typy_str(), tyscm_type_name(), and whatis_exp().
| #define LA_PRINT_TYPEDEF | ( | type, | |
| new_symbol, | |||
| stream | |||
| ) | (current_language->la_print_typedef(type,new_symbol,stream)) |
Definition at line 521 of file language.h.
Referenced by typedef_print().
| #define LA_VALUE_PRINT | ( | val, | |
| stream, | |||
| options | |||
| ) | (current_language->la_value_print(val,stream,options)) |
Definition at line 524 of file language.h.
Referenced by ada_print_array_index(), default_print_array_index(), and value_print().
| #define LANG_MAGIC 910823L |
Definition at line 438 of file language.h.
| #define MAX_FORTRAN_DIMS 7 /* Maximum number of F77 array dims. */ |
Definition at line 42 of file language.h.
Referenced by evaluate_subexp_standard(), and f77_print_array().
| #define PRINT_LITERAL_FORM | ( | c | ) |
Definition at line 549 of file language.h.
Referenced by m2_emit_char(), pascal_one_char(), and pascal_printstr().
| #define RANGE_CHECK (range_check != range_check_off) |
Definition at line 500 of file language.h.
Referenced by parse_number().
| enum array_ordering |
| Enumerator | |
|---|---|
| array_row_major | |
| array_column_major | |
Definition at line 79 of file language.h.
| enum case_mode |
| Enumerator | |
|---|---|
| case_mode_auto | |
| case_mode_manual | |
Definition at line 69 of file language.h.
| enum case_sensitivity |
| Enumerator | |
|---|---|
| case_sensitive_on | |
| case_sensitive_off | |
Definition at line 90 of file language.h.
| enum language_mode |
| Enumerator | |
|---|---|
| language_mode_auto | |
| language_mode_manual | |
Definition at line 468 of file language.h.
| enum macro_expansion |
| Enumerator | |
|---|---|
| macro_expansion_no | |
| macro_expansion_c | |
Definition at line 101 of file language.h.
| enum range_check |
| Enumerator | |
|---|---|
| range_check_off | |
| range_check_warn | |
| range_check_on | |
Definition at line 59 of file language.h.
| enum range_mode |
| Enumerator | |
|---|---|
| range_mode_auto | |
| range_mode_manual | |
Definition at line 48 of file language.h.
| void c_get_string | ( | struct value * | value, |
| gdb_byte ** | buffer, | ||
| int * | length, | ||
| struct type ** | char_type, | ||
| const char ** | charset | ||
| ) |
Definition at line 236 of file c-lang.c.
References _, c_textual_element_type(), check_typedef(), classify_type(), err, error(), extract_unsigned_integer(), gdbarch_byte_order(), get_discrete_bounds(), get_type_arch(), type::length, lval_internalvar, memory_error(), not_lval, read_string(), string, TARGET_XFER_E_IO, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_FIELD_TYPE, TYPE_LENGTH, TYPE_NFIELDS, TYPE_TARGET_TYPE, type_to_string(), UINT_MAX, value_as_address(), value_contents(), VALUE_LVAL, value_type(), xfree(), and xmalloc().
| void default_get_string | ( | struct value * | value, |
| gdb_byte ** | buffer, | ||
| int * | length, | ||
| struct type ** | char_type, | ||
| const char ** | charset | ||
| ) |
Definition at line 696 of file language.c.
| int default_pass_by_reference | ( | struct type * | type | ) |
Definition at line 669 of file language.c.
| void default_print_array_index | ( | struct value * | index_value, |
| struct ui_file * | stream, | ||
| const struct value_print_options * | options | ||
| ) |
Definition at line 687 of file language.c.
References fprintf_filtered(), and LA_VALUE_PRINT.
| void default_print_typedef | ( | struct type * | type, |
| struct symbol * | new_symbol, | ||
| struct ui_file * | stream | ||
| ) |
Definition at line 344 of file typeprint.c.
| unsigned int default_search_name_hash | ( | const char * | search_name | ) |
Definition at line 769 of file dictionary.c.
References hash(), msymbol_hash_iw(), startswith(), string, and SYMBOL_HASH_NEXT.
| bool default_symbol_name_matcher | ( | const char * | symbol_search_name, |
| const lookup_name_info & | lookup_name, | ||
| completion_match_result * | comp_match_res | ||
| ) |
Definition at line 705 of file language.c.
References lookup_name_info::completion_mode(), language_minimal, completion_match_result::match_for_lcd, MATCH_PARAMS, name, lookup_name_info::name(), NORMAL, completion_match_result::set_match(), string, strncmp_iw_with_mode(), and symbol_search_name().
Referenced by gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher(), and get_symbol_name_matcher().
| const char* default_word_break_characters | ( | void | ) |
Definition at line 679 of file language.c.
Referenced by f_word_break_characters(), and init_main().
| symbol_name_matcher_ftype* get_symbol_name_matcher | ( | const language_defn * | lang, |
| const lookup_name_info & | lookup_name | ||
| ) |
Definition at line 730 of file language.c.
References lookup_name_info::ada(), current_language, default_symbol_name_matcher(), language_defn::la_get_symbol_name_matcher, language_defn::la_language, language_ada, and ada_lookup_name_info::verbatim_p().
Referenced by compare_symbol_name(), find_methods(), gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher(), iter_match_first_hashed(), iter_match_next_hashed(), iter_match_next_linear(), iterate_over_minimal_symbols(), lookup_minimal_symbol(), psymbol_name_matches(), and symbol_matches_search_name().
| struct type* language_bool_type | ( | const struct language_defn * | l, |
| struct gdbarch * | gdbarch | ||
| ) |
Definition at line 982 of file language.c.
References language_gdbarch::arch_info, language_arch_info::bool_type_default, language_arch_info::bool_type_symbol, language_defn::la_language, language_gdbarch_data, lookup_symbol(), block_symbol::symbol, SYMBOL_TYPE, type, TYPE_CODE, TYPE_CODE_BOOL, and VAR_DOMAIN.
Referenced by ada_evaluate_subexp(), evaluate_subexp_opencl(), evaluate_subexp_standard(), opencl_logical_not(), opencl_relop(), rust_range(), vlscm_convert_typed_value_from_scheme(), vlscm_unop(), and yyparse().
| char* language_class_name_from_physname | ( | const struct language_defn * | , |
| const char * | physname | ||
| ) |
Definition at line 649 of file language.c.
References language_defn::la_class_name_from_physname.
Referenced by guess_full_die_structure_name(), and guess_partial_die_structure_name().
| const struct language_defn* language_def | ( | enum | language | ) |
Definition at line 494 of file language.c.
References languages.
Referenced by ada_tag_value_at_base_address(), ada_val_print_1(), ada_val_print_flt(), ada_val_print_ptr(), compare_symbol_name(), cp_lookup_symbol_imports_or_template(), d_lookup_symbol(), demangle_command(), dict_create_hashed(), dict_create_hashed_expandable(), dict_create_linear(), dict_create_linear_expandable(), extract_sym(), find_methods(), fprintf_symbol_filtered(), gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher(), gen_expr(), init_ada_exception_breakpoint(), iterate_over_minimal_symbols(), list_arg_or_local(), lookup_minimal_symbol(), lookup_symbol_aux(), parse_exp_in_context_1(), prepare_one_comp_unit(), print_frame_arg(), process_full_comp_unit(), process_full_type_unit(), psymbol_name_matches(), py_print_single_arg(), read_var_value(), search_name_hash(), set_cu_language(), stap_parse_argument(), symbol_find_demangled_name(), and symbol_matches_search_name().
| char* language_demangle | ( | const struct language_defn * | current_language, |
| const char * | mangled, | ||
| int | options | ||
| ) |
Definition at line 622 of file language.c.
References current_language, and language_defn::la_demangle.
Referenced by demangle_command(), and fprintf_symbol_filtered().
| enum language language_enum | ( | const char * | str | ) |
Definition at line 479 of file language.c.
References language_auto, language_unknown, and languages.
Referenced by demangle_command(), mi_parse(), and set_ext_lang_command().
| void language_info | ( | int | ) |
Definition at line 394 of file language.c.
References _, case_sensitive, current_language, expected_language, printf_unfiltered(), show_case_command(), show_language_command(), and show_range_command().
Referenced by check_frame_language_change().
| struct type* language_lookup_primitive_type | ( | const struct language_defn * | l, |
| struct gdbarch * | gdbarch, | ||
| const char * | name | ||
| ) |
Definition at line 1025 of file language.c.
References language_gdbarch::arch_info, language_defn::la_language, language_gdbarch_data, language_lookup_primitive_type_1(), and name.
Referenced by ada_tag_value_at_base_address(), classify_name(), convert_ast_to_expression(), find_primitive_type(), lex_one_token(), rust_lookup_type(), rust_subscript(), rust_type(), type_system_address(), yylex(), and yyparse().
| struct symbol* language_lookup_primitive_type_as_symbol | ( | const struct language_defn * | l, |
| struct gdbarch * | gdbarch, | ||
| const char * | name | ||
| ) |
Definition at line 1099 of file language.c.
References language_gdbarch::arch_info, fprintf_unfiltered(), gdb_stdlog, host_address_to_string, language_defn::la_language, language_defn::la_name, language_gdbarch_data, language_init_primitive_type_symbols(), language_lookup_primitive_type_1(), name, language_arch_info::primitive_type_symbols, language_arch_info::primitive_type_vector, and symbol_lookup_debug.
Referenced by ada_lookup_symbol_nonlocal(), basic_lookup_symbol_nonlocal(), cp_lookup_bare_symbol(), and d_lookup_symbol().
| int language_pass_by_reference | ( | struct type * | type | ) |
Definition at line 660 of file language.c.
References current_language, and language_defn::la_pass_by_reference.
Referenced by aarch64_push_dummy_call(), call_function_by_hand_dummy(), default_return_in_first_hidden_param_p(), and tic6x_return_value().
| int language_sniff_from_mangled_name | ( | const struct language_defn * | lang, |
| const char * | mangled, | ||
| char ** | demangled | ||
| ) |
Definition at line 633 of file language.c.
References gdb_assert, and language_defn::la_sniff_from_mangled_name.
Referenced by symbol_find_demangled_name().
| const char* language_str | ( | enum | language | ) |
Definition at line 502 of file language.c.
References language_defn::la_name, and languages.
Referenced by dump_symtab_1(), info_ext_lang_command(), info_frame_command(), info_source_command(), and lookup_symbol_aux().
| struct type* language_string_char_type | ( | const struct language_defn * | l, |
| struct gdbarch * | gdbarch | ||
| ) |
Definition at line 972 of file language.c.
References language_gdbarch::arch_info, language_defn::la_language, language_gdbarch_data, and language_arch_info::string_char_type.
Referenced by evaluate_subexp_c(), evaluate_subexp_standard(), read_tag_string_type(), type_char(), and vlscm_convert_typed_value_from_scheme().
| int pointer_type | ( | struct type * | ) |
Definition at line 415 of file language.c.
References TYPE_CODE, TYPE_CODE_PTR, and TYPE_IS_REFERENCE.
Referenced by gen_deref(), gen_equal(), gen_expr(), gen_expr_binop_rest(), gen_less(), gen_ptradd(), gen_ptrdiff(), gen_ptrsub(), gen_struct_ref(), rust_get_trait_object_pointer(), and x_command().
| void range_error | ( | const char * | , |
| ... | |||
| ) |
| enum language set_language | ( | enum | language | ) |
Definition at line 379 of file language.c.
References current_language, language_defn::la_language, languages, and set_range_case().
Referenced by _initialize_language(), breakpoint_re_set_one(), dump_symtab(), gdb_init(), get_current_search_block(), mi_cmd_execute(), parse_exp_in_context_1(), parse_expression_with_language(), select_frame(), set_initial_language(), set_language_command(), and scoped_restore_current_language::~scoped_restore_current_language().
| CORE_ADDR skip_language_trampoline | ( | struct frame_info * | , |
| CORE_ADDR | pc | ||
| ) |
Definition at line 599 of file language.c.
References languages.
Referenced by process_event_stop_test().
| void int value_true | ( | struct value * | ) |
Definition at line 426 of file language.c.
References value_logical_not().
Referenced by breakpoint_cond_eval(), execute_control_command_1(), and should_stop_exception().
| const struct language_defn ada_language_defn |
| const struct language_defn asm_language_defn |
| const struct language_defn auto_language_defn |
Definition at line 894 of file language.c.
Referenced by add_set_language_command().
| const struct language_defn c_language_defn |
| const struct language_defn cplus_language_defn |
| const struct language_defn* current_language |
Definition at line 81 of file language.c.
Referenced by ada_val_print(), ada_value_print(), ada_varobj_get_value_image(), advance_to_expression_complete_word_point(), allocate_repeat_value(), bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), bppy_init(), break_command_1(), break_range_command(), dtrace_probe::build_arg_exprs(), c_type_print_base_1(), c_type_print_varspec_suffix(), c_value_print(), check_frame_language_change(), cmdpy_completer(), cmdpy_completer_handle_brkchars(), cmdpy_destroyer(), cmdpy_function(), coerce_array(), collect_symbol_completion_matches(), collect_symbol_completion_matches_type(), compile_to_object(), complete_files_symbols(), complete_line_internal_1(), cp_print_static_field(), cp_print_value(), cp_print_value_fields(), cp_type_print_method_args(), create_tracepoint_from_upload(), decode_line_1(), decode_line_full(), decode_line_with_current_source(), decode_line_with_last_displayed(), default_collect_symbol_completion_matches_break_on(), default_completer_handle_brkchars(), default_print_one_register_info(), demangle_command(), dprintf_command(), edit_command(), extract_sym(), f77_print_array_1(), f_val_print(), finalize_python(), find_slot_in_mapped_hash(), dw2_debug_names_iterator::find_vec_in_debug_names(), ftrace_command(), gdb_init(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_has_cond(), gdbpy_clone_xmethod_worker_data(), gdbpy_eval_from_control_command(), gdbpy_execute_objfile_script(), gdbpy_finish_initialization(), gdbpy_free_type_printers(), gdbpy_free_xmethod_worker_data(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbpy_run_events(), gdbpy_source_objfile_script(), gdbpy_source_script(), gdbpy_start_type_printers(), gdbscm_make_value(), gdbscm_register_breakpoint_x(), gdbscm_value_call(), gdbscm_value_print(), gdbscm_value_subscript(), generic_val_print_ref(), get_current_search_block(), get_set_value(), get_show_value(), get_symbol_name_matcher(), info_address_command(), info_scope_command(), init_raw_breakpoint_without_location(), language_demangle(), language_info(), language_pass_by_reference(), language_search_unquoted_string(), linespec_complete(), linespec_lex_to_end(), linkage_name_str(), list_command(), location_completer(), lookup_symbol(), lookup_symbol_in_objfile_from_linkage_name(), lookup_transparent_type(), m2_print_array_contents(), m2_val_print(), mi_cmd_break_insert_1(), mi_cmd_data_evaluate_expression(), mt_registers_info(), op_string(), output_register(), parse_exp_in_context_1(), parse_expression_with_language(), pascal_object_print_static_field(), pascal_object_print_value_fields(), pascal_val_print(), pascal_value_print(), print_frame_arg(), print_unpacked_pointer(), print_variable_and_value(), print_variable_at_address(), print_variable_or_computed(), printf_wide_c_string(), psymtab_search_name(), py_free_objfile(), py_free_pspace(), python_command(), python_inferior_exit(), python_interactive_command(), python_new_objfile(), python_on_inferior_call_post(), python_on_inferior_call_pre(), python_on_memory_change(), python_on_normal_stop(), python_on_register_change(), python_on_resume(), pyuw_sniffer(), resolve_dynamic_struct(), rust_val_print(), save_objfile_types(), select_frame(), set_case_command(), set_initial_language(), set_language(), set_language_command(), set_range_case(), set_range_command(), sh64_do_register(), show_case_command(), show_language_command(), show_range_command(), skip_quoted_chars(), strace_command(), tic6x_return_value(), trace_command(), tyscm_lookup_typename(), ui_printf(), until_break_command(), val_print_array_elements(), val_print_packed_array_elements(), val_print_scalar_formatted(), val_print_struct(), value_arg_coerce(), value_array(), value_cast(), value_cstring(), value_print(), value_string(), value_struct_elt_for_reference(), value_subscript(), value_user_defined_op(), varobj_value_get_print_value(), vlscm_binop(), vlscm_print_value_smob(), vlscm_rich_compare(), vlscm_unop(), watch_command_1(), and whatis_exp().
| const struct language_defn d_language_defn |
| const struct language_defn* expected_language |
Definition at line 87 of file language.c.
Referenced by check_frame_language_change(), gdb_init(), language_info(), set_initial_language(), and set_language_command().
| const struct language_defn f_language_defn |
| const struct language_defn go_language_defn |
| const struct language_defn m2_language_defn |
| const struct language_defn minimal_language_defn |
| const struct language_defn objc_language_defn |
| const struct language_defn opencl_language_defn |
| const struct language_defn pascal_language_defn |
| enum range_check range_check |
| enum range_mode range_mode |
| const struct language_defn rust_language_defn |
| const struct language_defn unknown_language_defn |
1.8.14