GDB (xrefs)
|
#include "symtab.h"
Go to the source code of this file.
Classes | |
struct | language_arch_info |
struct | language_defn |
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_VAL_PRINT(type, valaddr, offset, addr, stream, val, recurse, options) |
#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, DATA) |
#define | PRINT_LITERAL_FORM(c) |
Typedefs | |
typedef int(* | symbol_name_cmp_ftype) (const char *symbol_search_name, const char *lookup_name) |
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 |
#define CAST_IS_CONVERSION | ( | LANG | ) |
Definition at line 468 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 499 of file language.h.
Referenced by c_printchar(), f_printchar(), java_printchar(), m2_printchar(), m2_printstr(), and print_char_chars().
#define LA_GET_STRING | ( | value, | |
buffer, | |||
length, | |||
chartype, | |||
encoding | |||
) | (current_language->la_get_string(value, buffer, length, chartype, encoding)) |
Definition at line 501 of file language.h.
Referenced by gdbscm_value_to_string(), and valpy_string().
#define LA_ITERATE_OVER_SYMBOLS | ( | BLOCK, | |
NAME, | |||
DOMAIN, | |||
CALLBACK, | |||
DATA | |||
) |
Definition at line 507 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 504 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 494 of file language.h.
Referenced by ada_print_scalar(), c_val_print(), f_val_print(), generic_val_print(), java_val_print(), and print_type_scalar().
Definition at line 496 of file language.h.
Referenced by c_val_print(), 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 482 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 485 of file language.h.
Referenced by typedef_print().
Definition at line 488 of file language.h.
#define LA_VALUE_PRINT | ( | val, | |
stream, | |||
options | |||
) | (current_language->la_value_print(val,stream,options)) |
Definition at line 491 of file language.h.
Referenced by ada_print_array_index(), default_print_array_index(), and value_print().
#define LANG_MAGIC 910823L |
Definition at line 402 of file language.h.
Referenced by add_language().
#define MAX_FORTRAN_DIMS 7 /* Maximum number of F77 array dims. */ |
Definition at line 40 of file language.h.
Referenced by evaluate_subexp_standard(), and f77_print_array().
#define PRINT_LITERAL_FORM | ( | c | ) |
Definition at line 517 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 464 of file language.h.
Referenced by parse_number().
typedef int(* symbol_name_cmp_ftype) (const char *symbol_search_name, const char *lookup_name) |
Definition at line 135 of file language.h.
enum array_ordering |
Enumerator | |
---|---|
array_row_major | |
array_column_major |
Definition at line 77 of file language.h.
enum case_mode |
Enumerator | |
---|---|
case_mode_auto | |
case_mode_manual |
Definition at line 67 of file language.h.
enum case_sensitivity |
Enumerator | |
---|---|
case_sensitive_on | |
case_sensitive_off |
Definition at line 88 of file language.h.
enum language_mode |
Enumerator | |
---|---|
language_mode_auto | |
language_mode_manual |
Definition at line 432 of file language.h.
enum macro_expansion |
Enumerator | |
---|---|
macro_expansion_no | |
macro_expansion_c |
Definition at line 99 of file language.h.
enum range_check |
Enumerator | |
---|---|
range_check_off | |
range_check_warn | |
range_check_on |
Definition at line 57 of file language.h.
enum range_mode |
Enumerator | |
---|---|
range_mode_auto | |
range_mode_manual |
Definition at line 46 of file language.h.
void add_language | ( | const struct language_defn * | ) |
Definition at line 518 of file language.c.
References _, add_setshow_enum_cmd(), class_support, DEFAULT_ALLOCSIZE, fprintf_unfiltered(), gdb_stderr, internal_error(), language_defn::la_language, language_defn::la_magic, language_defn::la_name, LANG_MAGIC, language_auto, language_unknown, languages, languages_allocsize, languages_size, mem_fileopen(), set_language_command(), setlist, show_language_command(), showlist, ui_file_delete(), ui_file_xstrdup(), xfree(), xmalloc(), and xrealloc().
Referenced by _initialize_ada_language(), _initialize_c_language(), _initialize_d_language(), _initialize_f_language(), _initialize_go_language(), _initialize_java_language(), _initialize_language(), _initialize_m2_language(), _initialize_objc_language(), _initialize_opencl_language(), and _initialize_pascal_language().
void c_get_string | ( | struct value * | value, |
gdb_byte ** | buffer, | ||
int * | length, | ||
struct type ** | char_type, | ||
const char ** | charset | ||
) |
Definition at line 239 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, make_cleanup(), memory_error(), not_lval, read_string(), 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 686 of file language.c.
Definition at line 659 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 677 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 346 of file typeprint.c.
char* default_word_break_characters | ( | void | ) |
Definition at line 669 of file language.c.
Referenced by f_word_break_characters(), and init_main().
enum language get_frame_language | ( | void | ) |
Definition at line 2566 of file stack.c.
References CATCH, compunit_language(), deprecated_safe_get_selected_frame(), END_CATCH, find_pc_compunit_symtab(), get_frame_address_in_block(), language_unknown, NOT_AVAILABLE_ERROR, RETURN_MASK_ERROR, throw_exception(), and TRY.
Referenced by check_frame_language_change(), set_language_command(), and show_language_command().
struct type* language_bool_type | ( | const struct language_defn * | l, |
struct gdbarch * | gdbarch | ||
) |
Definition at line 966 of file language.c.
References language_gdbarch::arch_info, language_arch_info::bool_type_default, language_arch_info::bool_type_symbol, gdbarch_data(), language_defn::la_language, lookup_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(), vlscm_convert_typed_value_from_scheme(), and vlscm_unop().
char* language_class_name_from_physname | ( | const struct language_defn * | , |
const char * | physname | ||
) |
Definition at line 639 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 471 of file language.c.
References language_defn::la_language, and languages_size.
Referenced by ada_val_print_1(), ada_val_print_flt(), ada_val_print_ptr(), cp_lookup_bare_symbol(), cp_lookup_symbol_imports_or_template(), demangle_command(), extract_sym(), fprintf_symbol_filtered(), gen_expr(), list_arg_or_local(), lookup_symbol_aux(), parse_exp_in_context_1(), prepare_one_comp_unit(), print_frame_arg(), process_full_comp_unit(), process_full_type_unit(), py_print_single_arg(), read_var_value(), set_cu_language(), and stap_parse_argument().
char* language_demangle | ( | const struct language_defn * | current_language, |
const char * | mangled, | ||
int | options | ||
) |
Definition at line 629 of file language.c.
References language_defn::la_demangle.
Referenced by demangle_command(), and fprintf_symbol_filtered().
enum language language_enum | ( | char * | str | ) |
Definition at line 457 of file language.c.
References language_defn::la_language, language_defn::la_name, language_unknown, and languages_size.
Referenced by demangle_command(), mi_parse(), and set_ext_lang_command().
void language_info | ( | int | ) |
Definition at line 371 of file language.c.
References _, case_sensitive, current_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 1009 of file language.c.
References language_gdbarch::arch_info, gdbarch_data(), language_defn::la_language, and language_lookup_primitive_type_1().
Referenced by classify_name(), find_primitive_type(), type_system_address(), and yylex().
struct symbol* language_lookup_primitive_type_as_symbol | ( | const struct language_defn * | l, |
struct gdbarch * | gdbarch, | ||
const char * | name | ||
) |
Definition at line 1087 of file language.c.
References language_gdbarch::arch_info, fprintf_unfiltered(), gdb_stdlog, gdbarch_data(), host_address_to_string(), language_defn::la_language, language_defn::la_name, language_init_primitive_type_symbols(), language_lookup_primitive_type_1(), 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(), and cp_lookup_bare_symbol().
Definition at line 650 of file language.c.
References 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().
const char* language_str | ( | enum | language | ) |
Definition at line 487 of file language.c.
References language_defn::la_language, language_defn::la_name, and languages_size.
Referenced by dump_symtab_1(), frame_info(), info_ext_lang_command(), lookup_symbol_aux(), and source_info().
struct type* language_string_char_type | ( | const struct language_defn * | l, |
struct gdbarch * | gdbarch | ||
) |
Definition at line 956 of file language.c.
References language_gdbarch::arch_info, gdbarch_data(), language_defn::la_language, 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().
Definition at line 392 of file language.c.
References TYPE_CODE, TYPE_CODE_PTR, and TYPE_CODE_REF.
Referenced by gen_deref(), gen_equal(), gen_expr(), gen_expr_binop_rest(), gen_less(), gen_ptradd(), gen_ptrdiff(), gen_ptrsub(), gen_struct_ref(), and x_command().
void range_error | ( | const char * | , |
... | |||
) |
enum language set_language | ( | enum | language | ) |
Definition at line 346 of file language.c.
References language_defn::la_language, languages_size, and set_range_case().
Referenced by _initialize_language(), breakpoint_re_set(), do_restore_current_language(), dump_symtab(), gdb_init(), get_current_search_block(), mi_cmd_execute(), parse_exp_in_context_1(), parse_expression_with_language(), prepare_re_set_context(), select_frame(), set_initial_language(), and set_language_command().
CORE_ADDR skip_language_trampoline | ( | struct frame_info * | , |
CORE_ADDR | pc | ||
) |
Definition at line 604 of file language.c.
References languages_size, and language_defn::skip_trampoline.
Referenced by process_event_stop_test().
Definition at line 404 of file language.c.
References value_logical_not().
Referenced by breakpoint_cond_eval(), execute_control_command(), and should_stop_exception().
const struct language_defn* current_language |
Definition at line 85 of file language.c.
Referenced by ada_val_print(), ada_value_print(), ada_varobj_get_value_image(), address_info(), allocate_repeat_value(), bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), breakpoint_re_set(), c_type_print_base(), c_type_print_varspec_suffix(), c_val_print(), c_value_print(), check_frame_language_change(), cmdpy_completer_handle_brkchars(), cmdpy_destroyer(), cmdpy_function(), coerce_array(), compile_to_object(), cp_print_static_field(), cp_print_value(), cp_print_value_fields(), cp_type_print_method_args(), decode_line_1(), decode_line_full(), default_make_symbol_completion_list_break_on_1(), default_print_one_register_info(), demangle_command(), dtrace_build_arg_exprs(), extract_sym(), f77_print_array_1(), f_val_print(), finalize_python(), find_slot_in_mapped_hash(), 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_value_call(), gdbscm_value_print(), gdbscm_value_subscript(), generic_val_print(), get_current_search_block(), get_set_value(), get_show_value(), init_raw_breakpoint_without_location(), java_print_value_fields(), java_value_print(), language_info(), language_search_unquoted_string(), line_completion_function(), lookup_minimal_symbol(), lookup_symbol(), lookup_symbol_in_objfile_from_linkage_name(), lookup_transparent_type(), m2_print_array_contents(), m2_val_print(), make_cleanup_restore_current_language(), 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_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(), save_objfile_types(), select_frame(), set_initial_language(), set_language_command(), sh64_do_register(), skip_quoted_chars(), tic6x_return_value(), tyscm_lookup_typename(), ui_printf(), val_print_array_elements(), val_print_packed_array_elements(), val_print_scalar_formatted(), 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(), VEC(), vlscm_binop(), vlscm_print_value_smob(), vlscm_rich_compare(), and vlscm_unop().
const struct language_defn* expected_language |
Definition at line 91 of file language.c.
Referenced by check_frame_language_change(), gdb_init(), and set_initial_language().
enum range_check range_check |
enum range_mode range_mode |