GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "symfile.h"
#include "objfiles.h"
#include "value.h"
#include "c-lang.h"
#include "jv-lang.h"
#include "varobj.h"
#include "gdbcore.h"
#include "block.h"
#include "demangle.h"
#include "dictionary.h"
#include <ctype.h>
#include "charset.h"
#include "valprint.h"
#include "cp-support.h"
Go to the source code of this file.
Classes | |
struct | jv_per_objfile_data |
Variables | |
static const struct objfile_data * | jv_dynamics_objfile_data_key |
static const struct program_space_data * | jv_dynamics_progspace_key |
const struct op_print | java_op_print_tab [] |
const struct exp_descriptor | exp_descriptor_java |
const struct language_defn | java_language_defn |
static struct gdbarch_data * | java_type_data |
enum java_primitive_types |
void _initialize_java_language | ( | void | ) |
Definition at line 1242 of file jv-lang.c.
References add_language(), build_java_types(), gdbarch_data_register_post_init(), jv_dynamics_objfile_data_key, jv_dynamics_progspace_key, and jv_per_objfile_free().
Definition at line 184 of file jv-lang.c.
References allocate_symbol(), get_dynamics_objfile(), get_type_arch(), language_java, LOC_TYPEDEF, objfile::objfile_obstack, STRUCT_DOMAIN, SYMBOL_ACLASS_INDEX, SYMBOL_DOMAIN, SYMBOL_SET_LANGUAGE, SYMBOL_SET_LINKAGE_NAME, SYMBOL_TYPE, SYMBOL_VALUE_ADDRESS, type, and TYPE_TAG_NAME.
Referenced by type_from_class().
|
static |
Definition at line 175 of file jv-lang.c.
References BLOCK_DICT, BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, dict_add_symbol(), get_java_class_symtab(), GLOBAL_BLOCK, and symbol_arch().
Referenced by type_from_class().
|
static |
Definition at line 1206 of file jv-lang.c.
References arch_boolean_type(), arch_character_type(), arch_float_type(), arch_integer_type(), arch_type(), builtin_java_type::builtin_boolean, builtin_java_type::builtin_byte, builtin_java_type::builtin_char, builtin_java_type::builtin_double, builtin_java_type::builtin_float, builtin_java_type::builtin_int, builtin_java_type(), builtin_java_type::builtin_long, builtin_java_type::builtin_short, builtin_java_type::builtin_void, GDBARCH_OBSTACK_ZALLOC, and TYPE_CODE_VOID.
Referenced by _initialize_java_language().
const struct builtin_java_type* builtin_java_type | ( | struct gdbarch * | gdbarch | ) |
Definition at line 1236 of file jv-lang.c.
References gdbarch_data().
Referenced by build_java_types(), java_language_arch_info(), java_primitive_type(), java_primitive_type_from_name(), and java_value_print().
|
static |
Definition at line 900 of file jv-lang.c.
References _, builtin_type::builtin_int, BYTES_TO_EXP_ELEM, check_typedef(), coerce_ref(), deprecated_set_value_type(), expression::elts, error(), EVAL_AVOID_SIDE_EFFECTS, EVAL_NORMAL, EVAL_SKIP, evaluate_subexp_standard(), evaluate_subexp_with_coercion(), extract_signed_integer(), expression::gdbarch, gdbarch_byte_order(), get_java_object_header_size(), is_object_type(), java_class_from_object(), java_value_string(), type::length, gdb.printing::long, exp_element::longconst, longest_to_int(), lookup_pointer_type(), name, NULL_TYPE, exp_element::opcode, read_memory(), exp_element::string, type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_PTR, TYPE_CODE_STRUCT, type_from_class(), TYPE_LENGTH, TYPE_NAME, TYPE_TAG_NAME, TYPE_TARGET_TYPE, value_addr(), value_as_address(), value_as_long(), value_at(), value_cast(), value_from_longest(), value_ind(), VALUE_LVAL, value_struct_elt(), value_subscript(), value_type(), and value_zero().
Definition at line 105 of file jv-lang.c.
References allocate_objfile(), current_program_space, objfile_per_bfd_storage::gdbarch, jv_dynamics_objfile_data_key, jv_dynamics_progspace_key, OBJF_NOT_FILENAME, OBJF_SHARED, and objfile::per_bfd.
Referenced by add_class_symbol(), get_java_class_symtab(), java_link_class_type(), and type_from_class().
|
static |
Definition at line 133 of file jv-lang.c.
References add_compunit_symtab_to_objfile(), allocate_block(), allocate_compunit_symtab(), allocate_global_block(), allocate_symtab(), BLOCK_DICT, BLOCKVECTOR_BLOCK, BLOCKVECTOR_NBLOCKS, COMPUNIT_BLOCKVECTOR, COMPUNIT_FILETABS, objfile::compunit_symtabs, jv_per_objfile_data::dict, dict_create_hashed_expandable(), dict_create_linear(), get_dynamics_objfile(), GLOBAL_BLOCK, jv_dynamics_objfile_data_key, language_java, objfile::objfile_obstack, set_block_compunit_symtab(), and STATIC_BLOCK.
Referenced by add_class_symtab_symbol().
Definition at line 600 of file jv-lang.c.
References gdbarch_ptr_bit(), get_java_object_type(), TARGET_CHAR_BIT, and TYPE_LENGTH.
Referenced by evaluate_subexp_java(), and java_value_print().
struct type* get_java_object_type | ( | void | ) |
Definition at line 589 of file jv-lang.c.
References _, error(), lookup_symbol(), STRUCT_DOMAIN, and SYMBOL_TYPE.
Referenced by get_java_object_header_size(), java_class_from_object(), and java_link_class_type().
|
static |
Definition at line 216 of file jv-lang.c.
References int, name, read_memory(), TYPE_LENGTH, value_address(), value_as_long(), value_struct_elt(), and value_type().
Referenced by java_link_class_type(), and type_from_class().
Definition at line 611 of file jv-lang.c.
References CHECK_TYPEDEF, check_typedef(), name, TYPE_BASECLASS, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_FIELD_NAME, TYPE_N_BASECLASSES, TYPE_NFIELDS, TYPE_TAG_NAME, and TYPE_TARGET_TYPE.
Referenced by evaluate_subexp_java(), and java_value_print().
Definition at line 819 of file jv-lang.c.
References lookup_array_range_type(), and type.
Referenced by yyparse().
Definition at line 233 of file jv-lang.c.
References get_java_object_type(), TYPE_CODE, TYPE_CODE_PTR, TYPE_LENGTH, TYPE_TARGET_TYPE, value_as_address(), value_at(), value_struct_elt(), and value_type().
Referenced by evaluate_subexp_java(), and java_value_print().
Definition at line 250 of file jv-lang.c.
References value_as_address(), and value_struct_elt().
Referenced by type_from_class().
|
static |
Definition at line 1049 of file jv-lang.c.
References java_demangle(), java_find_last_component(), xfree(), and xmalloc().
Definition at line 1012 of file jv-lang.c.
References gdb_demangle().
Referenced by java_class_name_from_physname().
char* java_demangle_type_signature | ( | const char * | signature | ) |
Definition at line 805 of file jv-lang.c.
References java_demangled_signature_copy(), java_demangled_signature_length(), and xmalloc().
Referenced by java_type_print_base().
|
static |
Definition at line 762 of file jv-lang.c.
References java_primitive_type_name().
Referenced by java_demangle_type_signature(), and type_from_class().
Definition at line 742 of file jv-lang.c.
References java_primitive_type_name().
Referenced by java_demangle_type_signature(), and type_from_class().
|
static |
Definition at line 865 of file jv-lang.c.
References encoding, generic_emit_char(), and java_get_encoding().
Definition at line 1026 of file jv-lang.c.
Referenced by java_class_name_from_physname().
Definition at line 842 of file jv-lang.c.
References encoding, gdbarch_byte_order(), get_type_arch(), and target_charset().
Referenced by java_emit_char(), and java_printstr().
|
static |
Definition at line 1119 of file jv-lang.c.
References language_arch_info::bool_type_default, language_arch_info::bool_type_symbol, builtin_java_type::builtin_boolean, builtin_java_type::builtin_byte, builtin_java_type::builtin_char, builtin_java_type::builtin_double, builtin_java_type::builtin_float, builtin_java_type::builtin_int, builtin_java_type(), builtin_java_type::builtin_long, builtin_java_type::builtin_short, builtin_java_type::builtin_void, GDBARCH_OBSTACK_CALLOC, java_primitive_type_boolean, java_primitive_type_byte, java_primitive_type_char, java_primitive_type_double, java_primitive_type_float, java_primitive_type_int, java_primitive_type_long, java_primitive_type_short, java_primitive_type_void, nr_java_primitive_types, language_arch_info::primitive_type_vector, and language_arch_info::string_char_type.
|
static |
Definition at line 337 of file jv-lang.c.
References B_BYTES, B_CLRALL, B_TYPE, fn_fieldlist::fn_fields, gdb_assert, get_dynamics_objfile(), get_java_object_type(), get_java_utf8_name(), fn_field::is_stub, fn_fieldlist::length, lookup_function_type(), lookup_pointer_type(), name, fn_fieldlist::name, objfile::objfile_obstack, fn_field::physname, SET_FIELD_BITPOS, SET_FIELD_PHYSADDR, SET_TYPE_FIELD_PRIVATE, SET_TYPE_FIELD_PROTECTED, set_value_address(), set_value_lazy(), type, fn_field::type, TYPE_ALLOC, TYPE_BASECLASS, TYPE_CODE, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_FIELD, TYPE_FIELD_IGNORE_BITS, TYPE_FIELD_NAME, TYPE_FIELD_PRIVATE_BITS, TYPE_FIELD_PROTECTED_BITS, TYPE_FIELD_TYPE, TYPE_FIELD_VIRTUAL_BITS, TYPE_FIELDS, TYPE_FN_FIELDLISTS, type_from_class(), TYPE_LENGTH, TYPE_N_BASECLASSES, TYPE_NFIELDS, TYPE_NFN_FIELDS, TYPE_TAG_NAME, TYPE_TARGET_TYPE, value_address(), value_as_long(), value_ind(), value_struct_elt(), and value_type().
Referenced by type_from_class().
struct type* java_lookup_class | ( | char * | name | ) |
Definition at line 201 of file jv-lang.c.
References expression_context_block, lookup_symbol(), STRUCT_DOMAIN, and SYMBOL_TYPE.
Referenced by java_type_from_name(), push_expression_name(), push_qualified_expression_name(), and type_from_class().
Definition at line 634 of file jv-lang.c.
References _, builtin_java_type::builtin_boolean, builtin_java_type::builtin_byte, builtin_java_type::builtin_char, builtin_java_type::builtin_double, builtin_java_type::builtin_float, builtin_java_type::builtin_int, builtin_java_type(), builtin_java_type::builtin_long, builtin_java_type::builtin_short, builtin_java_type::builtin_void, and error().
Referenced by type_from_class().
struct type* java_primitive_type_from_name | ( | struct gdbarch * | gdbarch, |
const char * | name, | ||
int | namelen | ||
) |
Definition at line 666 of file jv-lang.c.
References builtin_java_type::builtin_boolean, builtin_java_type::builtin_byte, builtin_java_type::builtin_char, builtin_java_type::builtin_double, builtin_java_type::builtin_float, builtin_java_type::builtin_int, builtin_java_type(), builtin_java_type::builtin_long, builtin_java_type::builtin_short, and builtin_java_type::builtin_void.
Referenced by java_value_print().
|
static |
Definition at line 712 of file jv-lang.c.
Referenced by java_demangled_signature_copy(), and java_demangled_signature_length().
Definition at line 875 of file jv-lang.c.
References fputs_filtered(), and LA_EMIT_CHAR.
|
static |
Definition at line 885 of file jv-lang.c.
References generic_printstr(), and java_get_encoding().
Definition at line 833 of file jv-lang.c.
Referenced by evaluate_subexp_java().
|
static |
Definition at line 80 of file jv-lang.c.
References current_program_space, jv_per_objfile_data::dict, dict_free(), gdb_assert, jv_dynamics_progspace_key, and xfree().
Referenced by _initialize_java_language().
Definition at line 262 of file jv-lang.c.
References add_class_symbol(), add_class_symtab_symbol(), alloc_type(), ALLOCATE_CPLUS_STRUCT_TYPE, check_typedef(), deprecated_set_value_type(), get_dynamics_objfile(), get_java_utf8_name(), INIT_CPLUS_SPECIFIC, java_class_is_primitive(), java_demangled_signature_copy(), java_demangled_signature_length(), java_link_class_type(), java_lookup_class(), java_primitive_type(), lookup_pointer_type(), name, objfile::objfile_obstack, type, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, type_from_class(), TYPE_TAG_NAME, TYPE_TARGET_TYPE, value_address(), value_as_long(), value_ind(), value_logical_not(), value_struct_elt(), and value_type().
Referenced by evaluate_subexp_java(), java_link_class_type(), java_value_print(), and type_from_class().
const struct exp_descriptor exp_descriptor_java |
const struct language_defn java_language_defn |
|
static |
|
static |
Definition at line 58 of file jv-lang.c.
Referenced by _initialize_java_language(), get_dynamics_objfile(), and get_java_class_symtab().
|
static |
Definition at line 63 of file jv-lang.c.
Referenced by _initialize_java_language(), get_dynamics_objfile(), and jv_per_objfile_free().