GDB (xrefs)
|
#include "defs.h"
#include "value.h"
#include "cp-abi.h"
#include "command.h"
#include "gdbcmd.h"
#include "ui-out.h"
Go to the source code of this file.
Macros | |
#define | CP_ABI_MAX 8 |
Variables | |
static struct cp_abi_ops | current_cp_abi = { "", NULL } |
static struct cp_abi_ops | auto_cp_abi = { "auto", NULL } |
static struct cp_abi_ops * | cp_abis [CP_ABI_MAX] |
static int | num_cp_abis = 0 |
initialize_file_ftype | _initialize_cp_abi |
#define CP_ABI_MAX 8 |
Definition at line 31 of file cp-abi.c.
Referenced by register_cp_abi().
void _initialize_cp_abi | ( | void | ) |
Definition at line 398 of file cp-abi.c.
References _, add_cmd(), class_obscure, register_cp_abi(), set_cmd_completer(), set_cp_abi_cmd(), setlist, show_cp_abi_cmd(), showlist, and switch_to_cp_abi().
int baseclass_offset | ( | struct type * | type, |
int | index, | ||
const gdb_byte * | valaddr, | ||
int | embedded_offset, | ||
CORE_ADDR | address, | ||
const struct value * | val | ||
) |
Definition at line 68 of file cp-abi.c.
References _, cp_abi_ops::baseclass_offset, CATCH, END_CATCH, gdb_assert, NOT_AVAILABLE_ERROR, RETURN_MASK_ERROR, throw_error(), throw_exception(), and TRY.
Referenced by cp_print_value(), do_search_struct_field(), dynamic_cast_check_1(), dynamic_cast_check_2(), find_method_list(), is_unique_ancestor_worker(), pascal_object_print_value(), search_struct_method(), and value_primitive_field().
Definition at line 225 of file cp-abi.c.
References cp_abi_ops::pass_by_reference, and type.
void cplus_make_method_ptr | ( | struct type * | type, |
gdb_byte * | contents, | ||
CORE_ADDR | value, | ||
int | is_virtual | ||
) |
Definition at line 147 of file cp-abi.c.
References _, error(), and cp_abi_ops::make_method_ptr.
Referenced by value_cast(), and value_struct_elt_for_reference().
Definition at line 139 of file cp-abi.c.
References _, error(), and cp_abi_ops::method_ptr_size.
Referenced by smash_to_methodptr_type().
Definition at line 165 of file cp-abi.c.
References _, error(), and cp_abi_ops::method_ptr_to_value.
Referenced by evaluate_subexp_standard().
void cplus_print_method_ptr | ( | const gdb_byte * | contents, |
struct type * | type, | ||
struct ui_file * | stream | ||
) |
Definition at line 129 of file cp-abi.c.
References _, error(), and cp_abi_ops::print_method_ptr.
Referenced by c_val_print().
void cplus_print_vtable | ( | struct value * | value | ) |
Definition at line 176 of file cp-abi.c.
References _, error(), and cp_abi_ops::print_vtable.
Referenced by info_vtbl_command().
CORE_ADDR cplus_skip_trampoline | ( | struct frame_info * | frame, |
CORE_ADDR | stop_pc | ||
) |
Definition at line 156 of file cp-abi.c.
References cp_abi_ops::skip_trampoline, and stop_pc.
Definition at line 206 of file cp-abi.c.
References _, error(), and cp_abi_ops::get_type_from_type_info.
Referenced by compute_exception().
Definition at line 186 of file cp-abi.c.
References _, error(), and cp_abi_ops::get_typeid.
Referenced by evaluate_subexp_standard().
Definition at line 196 of file cp-abi.c.
References _, error(), and cp_abi_ops::get_typeid_type.
Referenced by evaluate_subexp_standard().
char* cplus_typename_from_type_info | ( | struct value * | value | ) |
Definition at line 216 of file cp-abi.c.
References _, error(), and cp_abi_ops::get_typename_from_type_info.
Referenced by check_status_exception_catchpoint().
|
static |
Definition at line 300 of file cp-abi.c.
References num_cp_abis, and cp_abi_ops::shortname.
Referenced by set_cp_abi_as_auto_default(), and switch_to_cp_abi().
enum ctor_kinds is_constructor_name | ( | const char * | name | ) |
Definition at line 36 of file cp-abi.c.
References _, error(), cp_abi_ops::is_constructor_name, and name.
Referenced by c_type_print_base(), gdb_mangle_name(), gnuv3_pass_by_reference(), and java_type_print_base().
enum dtor_kinds is_destructor_name | ( | const char * | name | ) |
Definition at line 44 of file cp-abi.c.
References _, error(), cp_abi_ops::is_destructor_name, and name.
Referenced by c_type_print_base(), gdb_mangle_name(), java_type_print_base(), and read_member_functions().
Definition at line 60 of file cp-abi.c.
References _, error(), cp_abi_ops::is_operator_name, and name.
Referenced by gdb_mangle_name(), and linespec_lexer_lex_string().
Definition at line 52 of file cp-abi.c.
References _, error(), cp_abi_ops::is_vtable_name, and name.
Referenced by gnuv2_value_rtti_type(), ia64_convert_from_func_ptr_addr(), and record_minimal_symbol().
|
static |
Definition at line 314 of file cp-abi.c.
References cleanup_chain, current_uiout, do_cleanups(), make_cleanup_ui_out_tuple_begin_end(), num_cp_abis, ui_out_field_string(), and ui_out_text().
Referenced by set_cp_abi_cmd().
int register_cp_abi | ( | struct cp_abi_ops * | abi | ) |
Definition at line 250 of file cp-abi.c.
References _, CP_ABI_MAX, internal_error(), and num_cp_abis.
Referenced by _initialize_cp_abi(), _initialize_gnu_v2_abi(), and _initialize_gnu_v3_abi().
void set_cp_abi_as_auto_default | ( | const char * | short_name | ) |
Definition at line 265 of file cp-abi.c.
References _, cp_abi_ops::doc, find_cp_abi(), internal_error(), cp_abi_ops::longname, cp_abi_ops::shortname, switch_to_cp_abi(), xfree(), and xstrprintf().
Referenced by _initialize_gnu_v3_abi().
|
static |
Definition at line 347 of file cp-abi.c.
References _, error(), list_cp_abis(), and switch_to_cp_abi().
Referenced by _initialize_cp_abi().
|
static |
Definition at line 383 of file cp-abi.c.
References current_uiout, cp_abi_ops::longname, cp_abi_ops::shortname, ui_out_field_string(), and ui_out_text().
Referenced by _initialize_cp_abi().
Definition at line 235 of file cp-abi.c.
References find_cp_abi().
Referenced by _initialize_cp_abi(), set_cp_abi_as_auto_default(), and set_cp_abi_cmd().
Definition at line 108 of file cp-abi.c.
References CATCH, END_CATCH, RETURN_MASK_ERROR, cp_abi_ops::rtti_type, and TRY.
Referenced by c_value_print(), cp_print_value_fields_rtti(), gdbscm_value_dynamic_type(), valpy_get_dynamic_type(), value_cast_structs(), value_dynamic_cast(), value_full_object(), value_rtti_indirect_type(), and whatis_exp().
struct value* value_virtual_fn_field | ( | struct value ** | arg1p, |
struct fn_field * | f, | ||
int | j, | ||
struct type * | type, | ||
int | offset | ||
) |
Definition at line 97 of file cp-abi.c.
References offset, type, and cp_abi_ops::virtual_fn_field.
Referenced by find_overload_match(), and search_struct_method().
|
static |
Definition at line 361 of file cp-abi.c.
References num_cp_abis.
initialize_file_ftype _initialize_cp_abi |
|
static |
|
static |
|
static |
|
static |
Definition at line 33 of file cp-abi.c.
Referenced by find_cp_abi(), list_cp_abis(), register_cp_abi(), and VEC().