GDB (xrefs)
|
#include "defs.h"
#include "value.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbtypes.h"
#include "cp-support.h"
#include "demangle.h"
#include "objfiles.h"
#include "language.h"
#include "typeprint.h"
#include "ada-lang.h"
#include "type-codes.def"
Go to the source code of this file.
Classes | |
struct | type_object |
struct | field_object |
struct | typy_iterator_object |
struct | pyty_code |
struct | typy_deleter |
Macros | |
#define | OP(X) { X, #X }, |
Variables | |
static struct pyty_code | pyty_codes [] |
static const registry< objfile >::key< type_object, typy_deleter > | typy_objfile_data_key |
static gdb_PyGetSetDef | type_object_getset [] |
static PyMethodDef | type_object_methods [] |
static PyNumberMethods | type_object_as_number |
static PyMappingMethods | typy_mapping |
PyTypeObject | type_object_type |
static gdb_PyGetSetDef | field_object_getset [] |
PyTypeObject | field_object_type |
PyTypeObject | type_iterator_object_type |
Definition at line 144 of file py-type.c.
References type::code(), type::field(), field_is_static(), FIELD_LOC_KIND_DWARF_BLOCK, field_name(), field_new(), gdb_py_object_from_longest(), field::loc_bitpos(), field::loc_enumval(), field::loc_kind(), field::name(), field::type(), TYPE_FIELD_ARTIFICIAL, TYPE_FIELD_BITSIZE, TYPE_N_BASECLASSES, and type_to_type_object().
Referenced by make_fielditem(), typy_fields(), and typy_getitem().
PyTypeObject field_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "field_object" | ) |
PyTypeObject type_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "type_object" | ) |
PyTypeObject type_iterator_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "typy_iterator_object" | ) |
|
static |
Definition at line 234 of file py-type.c.
References type::field(), and field::name().
Referenced by ada_get_field_index(), ada_nget_field_index(), ada_varobj_describe_struct_child(), c_describe_child(), c_is_path_expr_parent(), call_function_by_hand_dummy(), compile_cplus_convert_struct_or_union_members(), convert_field(), cplus_describe_child(), expr::rust_structop::evaluate(), field_name_match(), gdb_mangle_name(), get_symbol_field_type(), make_fielditem(), output_cores(), output_thread_groups(), serialize_mi_result_1(), and f_language::value_print_inner().
|
static |
Definition at line 107 of file py-type.c.
References field_object_type.
Referenced by convert_field().
int gdbpy_initialize_types | ( | void | ) |
Definition at line 1446 of file py-type.c.
References field_object_type, gdb_module, gdb_pymodule_addobject(), pyty_codes, type_iterator_object_type, and type_object_type.
int gdbpy_is_field | ( | PyObject * | obj | ) |
Definition at line 126 of file py-type.c.
References field_object_type.
Referenced by valpy_getitem().
Definition at line 1415 of file py-type.c.
References block_object_to_block(), gdb_PyArg_ParseTupleAndKeywords(), type_to_type_object(), and typy_lookup_typename().
|
static |
Definition at line 253 of file py-type.c.
References convert_field(), field_name(), iter_items, iter_keys, and iter_values.
Referenced by typy_iterator_iternext().
|
static |
Definition at line 1123 of file py-type.c.
References registry< T >::get(), type_object::next, type::objfile_owner(), type_object::prev, registry< T >::set(), type_object::type, and typy_objfile_data_key.
Referenced by compact_minimal_symbols(), read_args(), read_set_type(), and type_to_type_object().
Definition at line 1404 of file py-type.c.
References type_object_type.
Referenced by python_xmethod_worker::do_get_arg_types(), python_xmethod_worker::do_get_result_type(), get_field_type(), python_xmethod_worker::invoke(), stpy_convert_to_value(), stpy_lazy_string_elt_type(), typy_richcompare(), typy_str(), valpy_do_cast(), valpy_init(), and value_has_field().
Definition at line 1381 of file py-type.c.
References check_typedef(), type::is_stub(), set_type(), and type_object_type.
Referenced by archpy_integer_type(), convert_field(), gdbpy_create_lazy_string_object(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_type(), sympy_get_type(), typy_array_1(), typy_const(), typy_fields_items(), typy_legacy_template_argument(), typy_pointer(), typy_reference(), typy_strip_typedefs(), typy_target(), typy_template_argument(), typy_unqualified(), typy_volatile(), valpy_get_dynamic_type(), and valpy_get_type().
Definition at line 557 of file py-type.c.
References typy_array_1().
Definition at line 505 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, gdb_py_int_as_long(), type::is_vector(), lookup_array_range_type(), make_vector_type(), n1, n2, and type_to_type_object().
Referenced by typy_array(), and typy_vector().
Definition at line 678 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, make_cv_type(), and type_to_type_object().
|
static |
Definition at line 1141 of file py-type.c.
References type::objfile_owner(), registry< T >::set(), and typy_objfile_data_key.
Definition at line 348 of file py-type.c.
References iter_keys, and typy_fields_items().
Definition at line 328 of file py-type.c.
References type::code(), convert_field(), iter_values, and typy_fields_items().
|
static |
Definition at line 284 of file py-type.c.
References check_typedef(), GDB_PY_HANDLE_EXCEPTION, type_to_type_object(), and typy_make_iter().
Referenced by typy_field_names(), typy_fields(), typy_items(), and typy_values().
Definition at line 1231 of file py-type.c.
References typy_getitem().
Definition at line 756 of file py-type.c.
References gdb_py_object_from_ulongest(), and type_align().
Definition at line 133 of file py-type.c.
References type::code(), and gdb_py_object_from_longest().
Definition at line 467 of file py-type.c.
References check_typedef(), type::code(), GDB_PY_HANDLE_EXCEPTION, type::is_pointer_or_reference(), and type::target_type().
Referenced by typy_getitem(), typy_has_key(), typy_length(), and typy_make_iter().
Definition at line 777 of file py-type.c.
References is_dynamic_type().
Definition at line 365 of file py-type.c.
References ada_decode(), ADA_TYPE_P, name, and type::name().
Definition at line 401 of file py-type.c.
References type::objfile_owner(), and objfile_to_objfile_object().
Definition at line 732 of file py-type.c.
References check_typedef(), gdb_py_object_from_longest(), type::length(), and TYPE_HAS_DYNAMIC_LENGTH.
Definition at line 384 of file py-type.c.
References type::code(), and type::name().
Definition at line 1198 of file py-type.c.
References convert_field(), type::field(), field::name(), type::num_fields(), python_string_to_host_string(), strcmp_iw(), and typy_get_composite().
Referenced by typy_get().
Definition at line 1256 of file py-type.c.
References type::field(), field::name(), type::num_fields(), strcmp_iw(), and typy_get_composite().
Definition at line 414 of file py-type.c.
References is_scalar_type().
Definition at line 428 of file py-type.c.
References is_scalar_type(), and type::is_unsigned().
Definition at line 357 of file py-type.c.
References iter_items, and typy_fields_items().
Definition at line 1327 of file py-type.c.
References iter_keys, and typy_make_iter().
|
static |
Definition at line 1371 of file py-type.c.
References typy_iterator_object::source.
Definition at line 1353 of file py-type.c.
References typy_iterator_object::field, typy_iterator_object::kind, make_fielditem(), type::num_fields(), typy_iterator_object::source, and type_object::type.
Definition at line 1310 of file py-type.c.
References iter_items, and typy_make_iter().
Definition at line 1318 of file py-type.c.
References iter_keys, and typy_make_iter().
Definition at line 1335 of file py-type.c.
References iter_values, and typy_make_iter().
|
static |
Definition at line 889 of file py-type.c.
References cp_demangled_name_to_comp(), err, GDB_PY_HANDLE_EXCEPTION, type::name(), type_to_type_object(), and typy_lookup_type().
Referenced by typy_template_argument().
|
static |
Definition at line 1164 of file py-type.c.
References type::num_fields(), and typy_get_composite().
|
static |
Definition at line 822 of file py-type.c.
References cp_comp_to_string(), GDB_PY_HANDLE_EXCEPTION, lookup_lvalue_reference_type(), lookup_pointer_type(), lookup_rvalue_reference_type(), make_cv_type(), typy_lookup_type(), and typy_lookup_typename().
Referenced by typy_legacy_template_argument(), and typy_lookup_type().
|
static |
Definition at line 797 of file py-type.c.
References current_language, GDB_PY_HANDLE_EXCEPTION, lookup_enum(), lookup_struct(), lookup_typename(), and lookup_union().
Referenced by gdbpy_lookup_type(), and typy_lookup_type().
|
static |
Definition at line 1286 of file py-type.c.
References typy_iterator_object::field, typy_iterator_object::kind, typy_iterator_object::source, type_iterator_object_type, and typy_get_composite().
Referenced by typy_fields_items(), typy_iter(), typy_iteritems(), typy_iterkeys(), and typy_itervalues().
Definition at line 1188 of file py-type.c.
References allocate_optimized_out_value(), and value_to_value_object().
Definition at line 572 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, lookup_pointer_type(), and type_to_type_object().
Definition at line 592 of file py-type.c.
References type::bounds(), type::code(), dynamic_prop::const_val(), gdb_py_object_from_longest(), range_bounds::high, dynamic_prop::kind(), range_bounds::low, and PROP_CONST.
Definition at line 644 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, lookup_lvalue_reference_type(), and type_to_type_object().
Definition at line 1052 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, type_object_to_type(), and types_deeply_equal().
Definition at line 1030 of file py-type.c.
References string_file::c_str(), current_language, GDB_PY_HANDLE_EXCEPTION, host_charset(), language_defn::print_type(), string_file::size(), type_object_to_type(), and type_print_raw_options.
Definition at line 447 of file py-type.c.
References check_typedef(), GDB_PY_HANDLE_EXCEPTION, and type_to_type_object().
Definition at line 662 of file py-type.c.
References type::target_type(), and type_to_type_object().
Definition at line 953 of file py-type.c.
References symbol::aclass(), block_object_to_block(), check_typedef(), GDB_PY_HANDLE_EXCEPTION, LOC_OPTIMIZED_OUT, LOC_TYPEDEF, type::target_type(), symbol::type(), TYPE_IS_REFERENCE, TYPE_N_TEMPLATE_ARGUMENTS, TYPE_TEMPLATE_ARGUMENT, type_to_type_object(), typy_legacy_template_argument(), value_of_variable(), and value_to_value_object().
Definition at line 714 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, make_cv_type(), and type_to_type_object().
Definition at line 317 of file py-type.c.
References iter_values, and typy_fields_items().
Definition at line 565 of file py-type.c.
References typy_array_1().
Definition at line 696 of file py-type.c.
References GDB_PY_HANDLE_EXCEPTION, make_cv_type(), and type_to_type_object().
|
static |
PyTypeObject field_object_type |
Definition at line 1653 of file py-type.c.
Referenced by field_new(), gdbpy_initialize_types(), and gdbpy_is_field().
|
static |
Definition at line 85 of file py-type.c.
Referenced by gdbpy_initialize_types().
PyTypeObject type_iterator_object_type |
Definition at line 1695 of file py-type.c.
Referenced by gdbpy_initialize_types(), and typy_make_iter().
|
static |
|
static |
PyTypeObject type_object_type |
Definition at line 1604 of file py-type.c.
Referenced by gdbpy_initialize_types(), type_object_to_type(), and type_to_type_object().
|
static |
|
static |
Definition at line 1120 of file py-type.c.
Referenced by set_type(), and typy_dealloc().