|
GDB (xrefs)
|
Go to the source code of this file.
Classes | |
| struct | lval_funcs |
| class | scoped_value_mark |
| struct | internalvar_funcs |
| struct | value_deleter |
Macros | |
| #define | VALUE_LVAL(val) (*deprecated_value_lval_hack (val)) |
| #define | VALUE_INTERNALVAR(val) (*deprecated_value_internalvar_hack (val)) |
| #define | VALUE_NEXT_FRAME_ID(val) (*deprecated_value_next_frame_id_hack (val)) |
| #define | VALUE_FRAME_ID(val) (get_prev_frame_id_by_id (VALUE_NEXT_FRAME_ID (val))) |
| #define | VALUE_REGNUM(val) (*deprecated_value_regnum_hack (val)) |
Typedefs | |
| typedef std::unique_ptr< struct value, value_deleter > | gdb_value_up |
| typedef struct value *(* | internal_function_fn) (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv) |
Enumerations | |
| enum | oload_search_type { NON_METHOD, METHOD, BOTH } |
Functions | |
| struct value * | value_next (const struct value *) |
| struct type * | value_type (const struct value *) |
| struct gdbarch * | get_value_arch (const struct value *value) |
| void | deprecated_set_value_type (struct value *value, struct type *type) |
| LONGEST | value_bitsize (const struct value *) |
| void | set_value_bitsize (struct value *, LONGEST bit) |
| LONGEST | value_bitpos (const struct value *) |
| void | set_value_bitpos (struct value *, LONGEST bit) |
| struct value * | value_parent (const struct value *) |
| void | set_value_parent (struct value *value, struct value *parent) |
| LONGEST | value_offset (const struct value *) |
| void | set_value_offset (struct value *, LONGEST offset) |
| int | deprecated_value_modifiable (const struct value *value) |
| struct type * | value_enclosing_type (const struct value *) |
| void | set_value_enclosing_type (struct value *val, struct type *new_type) |
| struct type * | value_actual_type (struct value *value, int resolve_simple_types, int *real_type_found) |
| LONGEST | value_pointed_to_offset (const struct value *value) |
| void | set_value_pointed_to_offset (struct value *value, LONGEST val) |
| LONGEST | value_embedded_offset (const struct value *value) |
| void | set_value_embedded_offset (struct value *value, LONGEST val) |
| struct value * | allocate_computed_value (struct type *type, const struct lval_funcs *funcs, void *closure) |
| int | valprint_check_validity (struct ui_file *stream, struct type *type, LONGEST embedded_offset, const struct value *val) |
| struct value * | allocate_optimized_out_value (struct type *type) |
| const struct lval_funcs * | value_computed_funcs (const struct value *) |
| void * | value_computed_closure (const struct value *value) |
| int | value_lazy (const struct value *) |
| void | set_value_lazy (struct value *value, int val) |
| int | value_stack (const struct value *) |
| void | set_value_stack (struct value *value, int val) |
| void | error_value_optimized_out (void) |
| gdb_byte * | value_contents_raw (struct value *) |
| const gdb_byte * | value_contents (struct value *) |
| gdb_byte * | value_contents_writeable (struct value *) |
| gdb_byte * | value_contents_all_raw (struct value *) |
| const gdb_byte * | value_contents_all (struct value *) |
| const gdb_byte * | value_contents_for_printing (struct value *value) |
| const gdb_byte * | value_contents_for_printing_const (const struct value *value) |
| void | value_fetch_lazy (struct value *val) |
| int | value_optimized_out (struct value *value) |
| int | value_bits_any_optimized_out (const struct value *value, int bit_offset, int bit_length) |
| int | value_entirely_optimized_out (struct value *value) |
| void | mark_value_bytes_optimized_out (struct value *value, int offset, int length) |
| void | mark_value_bits_optimized_out (struct value *value, LONGEST offset, LONGEST length) |
| int | value_initialized (const struct value *) |
| void | set_value_initialized (struct value *, int) |
| void | set_value_component_location (struct value *component, const struct value *whole) |
| enum lval_type * | deprecated_value_lval_hack (struct value *) |
| enum lval_type | value_lval_const (const struct value *value) |
| CORE_ADDR | value_address (const struct value *) |
| CORE_ADDR | value_raw_address (const struct value *) |
| void | set_value_address (struct value *, CORE_ADDR) |
| struct internalvar ** | deprecated_value_internalvar_hack (struct value *) |
| struct frame_id * | deprecated_value_next_frame_id_hack (struct value *) |
| int * | deprecated_value_regnum_hack (struct value *) |
| struct value * | coerce_ref_if_computed (const struct value *arg) |
| struct value * | readjust_indirect_value_type (struct value *value, struct type *enc_type, const struct type *original_type, const struct value *original_val) |
| struct value * | coerce_ref (struct value *value) |
| struct value * | coerce_array (struct value *value) |
| int | value_bits_synthetic_pointer (const struct value *value, LONGEST offset, LONGEST length) |
| int | value_bytes_available (const struct value *value, LONGEST offset, LONGEST length) |
| int | value_bits_available (const struct value *value, LONGEST offset, LONGEST length) |
| int | value_entirely_available (struct value *value) |
| int | value_entirely_unavailable (struct value *value) |
| void | mark_value_bytes_unavailable (struct value *value, LONGEST offset, LONGEST length) |
| void | mark_value_bits_unavailable (struct value *value, LONGEST offset, LONGEST length) |
| bool | value_contents_eq (const struct value *val1, LONGEST offset1, const struct value *val2, LONGEST offset2, LONGEST length) |
| void | read_value_memory (struct value *val, LONGEST bit_offset, int stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length) |
| struct value * | value_vector_widen (struct value *scalar_value, struct type *vector_type) |
| int | print_address_demangle (const struct value_print_options *, struct gdbarch *, CORE_ADDR, struct ui_file *, int) |
| bool | is_floating_value (struct value *val) |
| LONGEST | value_as_long (struct value *val) |
| CORE_ADDR | value_as_address (struct value *val) |
| LONGEST | unpack_long (struct type *type, const gdb_byte *valaddr) |
| CORE_ADDR | unpack_pointer (struct type *type, const gdb_byte *valaddr) |
| LONGEST | unpack_field_as_long (struct type *type, const gdb_byte *valaddr, int fieldno) |
| int | unpack_value_field_as_long (struct type *type, const gdb_byte *valaddr, LONGEST embedded_offset, int fieldno, const struct value *val, LONGEST *result) |
| void | unpack_value_bitfield (struct value *dest_val, LONGEST bitpos, LONGEST bitsize, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val) |
| struct value * | value_field_bitfield (struct type *type, int fieldno, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val) |
| void | pack_long (gdb_byte *buf, struct type *type, LONGEST num) |
| struct value * | value_from_longest (struct type *type, LONGEST num) |
| struct value * | value_from_ulongest (struct type *type, ULONGEST num) |
| struct value * | value_from_pointer (struct type *type, CORE_ADDR addr) |
| struct value * | value_from_history_ref (const char *, const char **) |
| struct value * | value_from_component (struct value *, struct type *, LONGEST) |
| struct value * | value_at (struct type *type, CORE_ADDR addr) |
| struct value * | value_at_lazy (struct type *type, CORE_ADDR addr) |
| struct value * | value_from_contents_and_address_unresolved (struct type *, const gdb_byte *, CORE_ADDR) |
| struct value * | value_from_contents_and_address (struct type *, const gdb_byte *, CORE_ADDR) |
| struct value * | value_from_contents (struct type *, const gdb_byte *) |
| struct value * | default_value_from_register (struct gdbarch *gdbarch, struct type *type, int regnum, struct frame_id frame_id) |
| void | read_frame_register_value (struct value *value, struct frame_info *frame) |
| struct value * | value_from_register (struct type *type, int regnum, struct frame_info *frame) |
| CORE_ADDR | address_from_register (int regnum, struct frame_info *frame) |
| struct value * | value_of_variable (struct symbol *var, const struct block *b) |
| struct value * | address_of_variable (struct symbol *var, const struct block *b) |
| struct value * | value_of_register (int regnum, struct frame_info *frame) |
| struct value * | value_of_register_lazy (struct frame_info *frame, int regnum) |
| enum symbol_needs_kind | symbol_read_needs (struct symbol *) |
| int | symbol_read_needs_frame (struct symbol *) |
| struct value * | read_var_value (struct symbol *var, const struct block *var_block, struct frame_info *frame) |
| struct value * | default_read_var_value (struct symbol *var, const struct block *var_block, struct frame_info *frame) |
| struct value * | allocate_value (struct type *type) |
| struct value * | allocate_value_lazy (struct type *type) |
| void | value_contents_copy (struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length) |
| void | value_contents_copy_raw (struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length) |
| struct value * | allocate_repeat_value (struct type *type, int count) |
| struct value * | value_mark (void) |
| void | value_free_to_mark (const struct value *mark) |
| struct value * | value_cstring (const char *ptr, ssize_t len, struct type *char_type) |
| struct value * | value_string (const char *ptr, ssize_t len, struct type *char_type) |
| struct value * | value_array (int lowbound, int highbound, struct value **elemvec) |
| struct value * | value_concat (struct value *arg1, struct value *arg2) |
| struct value * | value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) |
| struct value * | value_ptradd (struct value *arg1, LONGEST arg2) |
| LONGEST | value_ptrdiff (struct value *arg1, struct value *arg2) |
| int | value_must_coerce_to_target (struct value *arg1) |
| struct value * | value_coerce_to_target (struct value *arg1) |
| struct value * | value_coerce_array (struct value *arg1) |
| struct value * | value_coerce_function (struct value *arg1) |
| struct value * | value_ind (struct value *arg1) |
| struct value * | value_addr (struct value *arg1) |
| struct value * | value_ref (struct value *arg1, enum type_code refcode) |
| struct value * | value_assign (struct value *toval, struct value *fromval) |
| struct value * | value_pos (struct value *arg1) |
| struct value * | value_neg (struct value *arg1) |
| struct value * | value_complement (struct value *arg1) |
| struct value * | value_struct_elt (struct value **argp, struct value **args, const char *name, int *static_memfuncp, const char *err) |
| struct value * | value_struct_elt_bitpos (struct value **argp, int bitpos, struct type *field_type, const char *err) |
| struct value * | value_aggregate_elt (struct type *curtype, const char *name, struct type *expect_type, int want_address, enum noside noside) |
| struct value * | value_static_field (struct type *type, int fieldno) |
| int | find_overload_match (struct value **args, int nargs, const char *name, enum oload_search_type method, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl, enum noside noside) |
| struct value * | value_field (struct value *arg1, int fieldno) |
| struct value * | value_primitive_field (struct value *arg1, LONGEST offset, int fieldno, struct type *arg_type) |
| struct type * | value_rtti_indirect_type (struct value *, int *, LONGEST *, int *) |
| struct value * | value_full_object (struct value *, struct type *, int, int, int) |
| struct value * | value_cast_pointers (struct type *, struct value *, int) |
| struct value * | value_cast (struct type *type, struct value *arg2) |
| struct value * | value_reinterpret_cast (struct type *type, struct value *arg) |
| struct value * | value_dynamic_cast (struct type *type, struct value *arg) |
| struct value * | value_zero (struct type *type, enum lval_type lv) |
| struct value * | value_one (struct type *type) |
| struct value * | value_repeat (struct value *arg1, int count) |
| struct value * | value_subscript (struct value *array, LONGEST index) |
| struct value * | value_bitstring_subscript (struct type *type, struct value *bitstring, LONGEST index) |
| struct value * | register_value_being_returned (struct type *valtype, struct regcache *retbuf) |
| int | value_in (struct value *element, struct value *set) |
| int | value_bit_index (struct type *type, const gdb_byte *addr, int index) |
| enum return_value_convention | struct_return_convention (struct gdbarch *gdbarch, struct value *function, struct type *value_type) |
| int | using_struct_return (struct gdbarch *gdbarch, struct value *function, struct type *value_type) |
| struct value * | evaluate_expression (struct expression *exp) |
| struct value * | evaluate_type (struct expression *exp) |
| struct value * | evaluate_subexp (struct type *expect_type, struct expression *exp, int *pos, enum noside noside) |
| struct value * | evaluate_subexpression_type (struct expression *exp, int subexp) |
| value * | evaluate_var_value (enum noside noside, const block *blk, symbol *var) |
| value * | evaluate_var_msym_value (enum noside noside, struct objfile *objfile, minimal_symbol *msymbol) |
| value * | eval_skip_value (expression *exp) |
| void | fetch_subexp_value (struct expression *exp, int *pc, struct value **valp, struct value **resultp, struct value **val_chain, int preserve_errors) |
| char * | extract_field_op (struct expression *exp, int *subexp) |
| struct value * | evaluate_subexp_with_coercion (struct expression *, int *, enum noside) |
| struct value * | parse_and_eval (const char *exp) |
| struct value * | parse_to_comma_and_eval (const char **expp) |
| struct type * | parse_and_eval_type (char *p, int length) |
| CORE_ADDR | parse_and_eval_address (const char *exp) |
| LONGEST | parse_and_eval_long (const char *exp) |
| void | unop_promote (const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1) |
| void | binop_promote (const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1, struct value **arg2) |
| struct value * | access_value_history (int num) |
| struct value * | value_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var) |
| int | get_internalvar_integer (struct internalvar *var, LONGEST *l) |
| void | set_internalvar (struct internalvar *var, struct value *val) |
| void | set_internalvar_integer (struct internalvar *var, LONGEST l) |
| void | set_internalvar_string (struct internalvar *var, const char *string) |
| void | clear_internalvar (struct internalvar *var) |
| void | set_internalvar_component (struct internalvar *var, LONGEST offset, LONGEST bitpos, LONGEST bitsize, struct value *newvalue) |
| struct internalvar * | lookup_only_internalvar (const char *name) |
| struct internalvar * | create_internalvar (const char *name) |
| void | complete_internalvar (completion_tracker &tracker, const char *name) |
| struct internalvar * | create_internalvar_type_lazy (const char *name, const struct internalvar_funcs *funcs, void *data) |
| int | compile_internalvar_to_ax (struct internalvar *var, struct agent_expr *expr, struct axs_value *value) |
| struct internalvar * | lookup_internalvar (const char *name) |
| int | value_equal (struct value *arg1, struct value *arg2) |
| int | value_equal_contents (struct value *arg1, struct value *arg2) |
| int | value_less (struct value *arg1, struct value *arg2) |
| int | value_logical_not (struct value *arg1) |
| struct value * | value_of_this (const struct language_defn *lang) |
| struct value * | value_of_this_silent (const struct language_defn *lang) |
| struct value * | value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, enum exp_opcode otherop, enum noside noside) |
| struct value * | value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside) |
| struct value * | value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *type, LONGEST offset) |
| int | binop_types_user_defined_p (enum exp_opcode op, struct type *type1, struct type *type2) |
| int | binop_user_defined_p (enum exp_opcode op, struct value *arg1, struct value *arg2) |
| int | unop_user_defined_p (enum exp_opcode op, struct value *arg1) |
| int | destructor_name_p (const char *name, struct type *type) |
| void | value_incref (struct value *val) |
| void | value_free (struct value *val) |
| void | free_all_values (void) |
| void | free_value_chain (struct value *v) |
| void | release_value (struct value *val) |
| void | release_value_or_incref (struct value *val) |
| int | record_latest_value (struct value *val) |
| void | modify_field (struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize) |
| void | type_print (struct type *type, const char *varstring, struct ui_file *stream, int show) |
| std::string | type_to_string (struct type *type) |
| gdb_byte * | baseclass_addr (struct type *type, int index, gdb_byte *valaddr, struct value **valuep, int *errp) |
| void | print_longest (struct ui_file *stream, int format, int use_local, LONGEST val) |
| void | print_floating (const gdb_byte *valaddr, struct type *type, struct ui_file *stream) |
| void | value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options) |
| void | value_print_array_elements (struct value *val, struct ui_file *stream, int format, enum val_prettyformat pretty) |
| struct value * | value_release_to_mark (const struct value *mark) |
| void | val_print (struct type *type, LONGEST embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, const struct language_defn *language) |
| void | common_val_print (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language) |
| int | val_print_string (struct type *elttype, const char *encoding, CORE_ADDR addr, int len, struct ui_file *stream, const struct value_print_options *options) |
| void | print_variable_and_value (const char *name, struct symbol *var, struct frame_info *frame, struct ui_file *stream, int indent) |
| void | typedef_print (struct type *type, struct symbol *news, struct ui_file *stream) |
| char * | internalvar_name (const struct internalvar *var) |
| void | preserve_values (struct objfile *) |
| struct value * | value_copy (struct value *) |
| struct value * | value_non_lval (struct value *) |
| void | value_force_lval (struct value *, CORE_ADDR) |
| struct value * | make_cv_value (int, int, struct value *) |
| void | preserve_one_value (struct value *, struct objfile *, htab_t) |
| struct value * | varying_to_slice (struct value *) |
| struct value * | value_slice (struct value *, int, int) |
| struct value * | value_literal_complex (struct value *, struct value *, struct type *) |
| struct value * | find_function_in_inferior (const char *, struct objfile **) |
| struct value * | value_allocate_space_in_inferior (int) |
| struct value * | value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound) |
| void | add_internal_function (const char *name, const char *doc, internal_function_fn handler, void *cookie) |
| struct value * | call_internal_function (struct gdbarch *gdbarch, const struct language_defn *language, struct value *function, int argc, struct value **argv) |
| char * | value_internal_function_name (struct value *) |
| struct value * | value_of_xmethod (struct xmethod_worker *) |
| struct type * | result_type_of_xmethod (struct value *method, int argc, struct value **argv) |
| struct value * | call_xmethod (struct value *method, int argc, struct value **argv) |
| #define VALUE_FRAME_ID | ( | val | ) | (get_prev_frame_id_by_id (VALUE_NEXT_FRAME_ID (val))) |
Definition at line 447 of file value.h.
Referenced by value_assign(), and value_fetch_lazy().
| #define VALUE_INTERNALVAR | ( | val | ) | (*deprecated_value_internalvar_hack (val)) |
Definition at line 434 of file value.h.
Referenced by call_internal_function(), set_internalvar(), value_assign(), value_internal_function_name(), and value_of_internalvar().
| #define VALUE_LVAL | ( | val | ) | (*deprecated_value_lval_hack (val)) |
Definition at line 414 of file value.h.
Referenced by aarch64_pseudo_read_value(), ada_convert_actual(), ada_evaluate_subexp(), ada_evaluate_subexp_for_cast(), ada_value_assign(), ada_value_primitive_packed_val(), address_of_variable(), allocate_computed_value(), allocate_value_lazy(), amd64_pseudo_register_read_value(), c_get_string(), call_internal_function(), call_site_to_target_addr(), can_use_hardware_watchpoint(), check_condition(), convert_one_symbol(), regcache::cooked_read_value(), create_value(), default_read_var_value(), default_value_from_register(), do_compile_dwarf_expr_to_c(), dump_value_to_file(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), ensure_lval(), evaluate_subexp_for_address(), evaluate_subexp_for_cast(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), find_function_addr(), frame_register_unwind(), frame_unwind_got_optimized(), frame_unwind_register_value(), i386_pseudo_register_read_value(), info_frame_command(), num_memory_accesses(), print_formatted(), rank_one_type(), read_frame_register_value(), rust_evaluate_subexp(), rust_subscript(), set_internalvar(), set_value_component_location(), update_watchpoint(), value_addr(), value_assign(), value_cast(), value_coerce_array(), value_coerce_function(), value_copy(), value_fetch_lazy(), value_fn_field(), value_force_lval(), value_free(), value_from_component(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_from_register(), value_full_object(), value_ind(), value_internal_function_name(), value_must_coerce_to_target(), value_non_lval(), value_of_internalvar(), value_of_register_lazy(), value_one(), value_primitive_field(), value_ptradd(), value_repeat(), value_slice(), value_subscript(), value_x_binop(), value_x_unop(), value_zero(), varobj_editable_p(), and x_command().
| #define VALUE_NEXT_FRAME_ID | ( | val | ) | (*deprecated_value_next_frame_id_hack (val)) |
Definition at line 441 of file value.h.
Referenced by address_of_variable(), default_value_from_register(), frame_unwind_got_optimized(), sentinel_frame_prev_register(), value_fetch_lazy(), value_from_register(), and value_of_register_lazy().
| #define VALUE_REGNUM | ( | val | ) | (*deprecated_value_regnum_hack (val)) |
Definition at line 451 of file value.h.
Referenced by aarch64_pseudo_read_value(), address_of_variable(), amd64_pseudo_register_read_value(), regcache::cooked_read_value(), default_value_from_register(), frame_register_unwind(), frame_unwind_got_optimized(), frame_unwind_register_value(), i386_pseudo_register_read_value(), info_frame_command(), read_frame_register_unsigned(), read_frame_register_value(), value_assign(), value_fetch_lazy(), value_from_register(), and value_of_register_lazy().
| typedef std::unique_ptr<struct value, value_deleter> gdb_value_up |
| enum oload_search_type |
| struct value* access_value_history | ( | int | num | ) |
Definition at line 1927 of file value.c.
References _, error(), value_history_chunk::next, value_copy(), value_history_chain, VALUE_HISTORY_CHUNK, value_history_count, and value_history_chunk::values.
Referenced by dump_arc_instruction_command(), evaluate_subexp_standard(), gdbpy_history(), gdbscm_history_ref(), linespec_parse_variable(), print_command_1(), show_values(), value_from_history_ref(), and whatis_exp().
| void add_internal_function | ( | const char * | name, |
| const char * | doc, | ||
| internal_function_fn | handler, | ||
| void * | cookie | ||
| ) |
Definition at line 2571 of file value.c.
References add_cmd(), create_internal_function(), cmd_list_element::destroyer, function_command(), function_destroyer(), functionlist, lookup_internalvar(), name, no_class, and set_internalvar_function().
Referenced by _initialize_values(), and fnpy_init().
| CORE_ADDR address_from_register | ( | int | regnum, |
| struct frame_info * | frame | ||
| ) |
Definition at line 952 of file findvar.c.
References _, builtin_type::builtin_data_ptr, builtin_type(), error(), error_value_optimized_out(), gdbarch_convert_register_p(), gdbarch_num_pseudo_regs(), gdbarch_num_regs(), gdbarch_register_to_value(), gdbarch_value_from_register(), get_frame_arch(), null_frame_id, read_frame_register_value(), regnum, release_value(), TYPE_LENGTH, unpack_long(), value_as_address(), value_free(), and value_optimized_out().
Referenced by read_addr_from_reg(), and dwarf_evaluate_loc_desc::read_addr_from_reg().
Definition at line 1307 of file valops.c.
References _, error(), frame_find_by_id(), gdb_assert, gdbarch_register_name(), get_frame_arch(), lookup_pointer_type(), lval_memory, lval_register, SYMBOL_PRINT_NAME, SYMBOL_TYPE, TYPE_CODE, TYPE_CODE_FUNC, value_address(), value_from_pointer(), value_lazy(), VALUE_LVAL, VALUE_NEXT_FRAME_ID, value_of_variable(), VALUE_REGNUM, and value_type().
Referenced by evaluate_subexp_for_address(), evaluate_subexp_with_coercion(), and rust_evaluate_funcall().
| struct value* allocate_computed_value | ( | struct type * | type, |
| const struct lval_funcs * | funcs, | ||
| void * | closure | ||
| ) |
Definition at line 1061 of file value.c.
References allocate_value_lazy(), value::closure, value::computed, value::funcs, value::location, lval_computed, and VALUE_LVAL.
Referenced by create_value(), dwarf2_evaluate_loc_desc_full(), siginfo_make_value(), tlb_make_value(), and value_of_dwarf_reg_entry().
Definition at line 1077 of file value.c.
References allocate_value_lazy(), mark_value_bytes_optimized_out(), set_value_lazy(), and TYPE_LENGTH.
Referenced by default_read_var_value(), dwarf2_evaluate_loc_desc_full(), fetch_const_value_from_synthetic_pointer(), loclist_read_variable_at_entry(), read_frame_arg(), s390_unwind_pseudo_register(), typy_optimized_out(), and value_static_field().
Definition at line 1049 of file value.c.
References allocate_value(), current_language, lookup_array_range_type(), and language_defn::string_lower_bound.
Referenced by evaluate_subexp_standard(), and value_repeat().
Definition at line 1036 of file value.c.
References allocate_value_contents(), allocate_value_lazy(), and value::lazy.
Referenced by aarch64_pseudo_read_value(), ada_convert_actual(), ada_evaluate_subexp(), ada_promote_array_of_integrals(), ada_value_binop(), ada_value_primitive_packed_val(), allocate_repeat_value(), amd64_pseudo_register_read_value(), cast_into_complex(), coerce_unspec_val_to_type(), convert_value_from_python(), regcache::cooked_read_value(), create_value(), default_read_var_value(), default_value_from_register(), dwarf2_compute_name(), dwarf2_evaluate_loc_desc_full(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), empty_array(), eval_call(), evaluate_subexp_c(), evaluate_subexp_opencl(), evaluate_subexp_standard(), extract_bitfield_from_watchpoint_value(), gdbpy_invoke_xmethod(), gdbscm_value_to_real(), get_call_return_value(), get_return_value(), i386_pseudo_register_read_value(), lval_func_write(), make_array_descriptor(), opencl_logical_not(), rust_evaluate_subexp(), scalar_binop(), sdata_make_value(), siginfo_make_value(), tlb_make_value(), value_array(), value_cast(), value_complement(), value_copy(), value_cstring(), value_field_bitfield(), value_fn_field(), value_from_component(), value_from_contents(), value_from_longest(), value_from_pointer(), value_from_register(), value_from_ulongest(), value_literal_complex(), value_maybe_namespace_elt(), value_neg(), value_non_lval(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), value_of_internalvar(), value_of_xmethod(), value_one(), value_primitive_field(), value_slice(), value_string(), value_struct_elt_for_reference(), value_vector_widen(), value_zero(), vector_binop(), vector_relop(), vlscm_convert_number(), and vlscm_convert_typed_number().
Definition at line 916 of file value.c.
References value::address, all_values, value::bitpos, value::bitsize, check_typedef(), value::contents, value::embedded_offset, value::enclosing_type, value::initialized, value::lazy, value::location, value::modifiable, value::next, not_lval, value::offset, value::pointed_to_offset, value::reference_count, type, value::type, VALUE_LVAL, and XCNEW.
Referenced by allocate_computed_value(), allocate_optimized_out_value(), allocate_value(), coerce_unspec_val_to_type(), frame_unwind_got_optimized(), value_copy(), value_from_component(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_of_register_lazy(), value_primitive_field(), and value_slice().
| gdb_byte* baseclass_addr | ( | struct type * | type, |
| int | index, | ||
| gdb_byte * | valaddr, | ||
| struct value ** | valuep, | ||
| int * | errp | ||
| ) |
| void binop_promote | ( | const struct language_defn * | language, |
| struct gdbarch * | gdbarch, | ||
| struct value ** | arg1, | ||
| struct value ** | arg2 | ||
| ) |
Definition at line 452 of file eval.c.
References builtin_type::builtin_double, builtin_type::builtin_int, builtin_type::builtin_long, builtin_type::builtin_long_double, builtin_type::builtin_long_long, builtin_type(), builtin_type::builtin_unsigned_int, builtin_type::builtin_unsigned_long, builtin_type::builtin_unsigned_long_long, check_typedef(), coerce_ref(), gdbarch_double_bit(), gdbarch_long_bit(), HOST_CHAR_BIT, is_integral_type(), language_asm, language_c, language_cplus, language_objc, language_opencl, lookup_signed_typename(), lookup_unsigned_typename(), TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_DECFLOAT, TYPE_CODE_FLT, TYPE_LENGTH, TYPE_UNSIGNED, value_cast(), and value_type().
Referenced by ada_evaluate_subexp(), and evaluate_subexp_standard().
| int binop_types_user_defined_p | ( | enum exp_opcode | op, |
| struct type * | type1, | ||
| struct type * | type2 | ||
| ) |
Definition at line 224 of file valarith.c.
References check_typedef(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_IS_REFERENCE, and TYPE_TARGET_TYPE.
Referenced by binop_user_defined_p(), and gen_expr_binop_rest().
| int binop_user_defined_p | ( | enum exp_opcode | op, |
| struct value * | arg1, | ||
| struct value * | arg2 | ||
| ) |
Definition at line 249 of file valarith.c.
References binop_types_user_defined_p(), and value_type().
Referenced by evaluate_subexp_standard(), and valpy_binop_throw().
| struct value* call_internal_function | ( | struct gdbarch * | gdbarch, |
| const struct language_defn * | language, | ||
| struct value * | function, | ||
| int | argc, | ||
| struct value ** | argv | ||
| ) |
Definition at line 2533 of file value.c.
References gdb::argv, internal_function::cookie, func, gdb_assert, get_internalvar_function(), internal_function::handler, lval_internalvar, VALUE_INTERNALVAR, and VALUE_LVAL.
Referenced by ada_evaluate_subexp(), and eval_call().
Definition at line 2734 of file value.c.
References gdb::argv, gdb_assert, invoke_xmethod(), value::location, value::lval, lval_xcallable, TYPE_CODE, TYPE_CODE_XMETHOD, value_type(), and value::xm_worker.
Referenced by eval_call(), value_x_binop(), and value_x_unop().
| void clear_internalvar | ( | struct internalvar * | var | ) |
Definition at line 2475 of file value.c.
References internalvar_data::data, internalvar_funcs::destroy, internalvar_data::functions, INTERNALVAR_MAKE_VALUE, INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, internalvar_data::make_value, internalvar_data::string, internalvar::u, internalvar_data::value, value_free(), and xfree().
Referenced by clear_exit_convenience_vars(), set_internalvar(), set_internalvar_function(), set_internalvar_integer(), set_internalvar_string(), set_traceframe_context(), and x_command().
Definition at line 3780 of file value.c.
References language_defn::c_style_arrays, check_typedef(), coerce_ref(), current_language, type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_FUNC, TYPE_VECTOR, value_coerce_array(), value_coerce_function(), and value_type().
Referenced by evaluate_subexp_for_address(), value_as_address(), value_as_long(), value_assign(), value_equal(), value_find_oload_method_list(), value_ind(), value_less(), value_logical_not(), value_ptradd(), value_ptrdiff(), value_reinterpret_cast(), value_struct_elt(), value_struct_elt_bitpos(), and varobj_set_value().
Definition at line 3755 of file value.c.
References check_typedef(), coerce_ref_if_computed(), readjust_indirect_value_type(), TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, unpack_pointer(), value_at_lazy(), value_contents(), value_enclosing_type(), and value_type().
Referenced by ada_coerce_ref(), ada_evaluate_subexp(), ada_val_print_gnat_array(), ada_value_binop(), ada_value_struct_elt(), binop_promote(), coerce_array(), decode_constrained_packed_array(), evaluate_subexp_modula2(), evaluate_subexp_standard(), find_overload_match(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gnuv3_get_typeid(), gnuv3_print_vtable(), install_new_value(), opencl_value_cast(), pos_atr(), read_frame_arg(), scalar_binop(), unop_promote(), valpy_get_dynamic_type(), valpy_getitem(), valpy_referenced_value(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), value_complement(), value_neg(), value_pos(), value_rtti_indirect_type(), value_subscript(), value_x_binop(), value_x_unop(), varobj_value_has_mutated(), and x_command().
Definition at line 3719 of file value.c.
References check_typedef(), lval_funcs::coerce_ref, lval_computed, TYPE_IS_REFERENCE, value_computed_funcs(), value_lval_const(), and value_type().
Referenced by ada_val_print_ref(), coerce_ref(), generic_val_print_ref(), and valprint_check_validity().
| void common_val_print | ( | struct value * | val, |
| struct ui_file * | stream, | ||
| int | recurse, | ||
| const struct value_print_options * | options, | ||
| const struct language_defn * | language | ||
| ) |
Definition at line 1136 of file valprint.c.
References ada_to_fixed_value(), language_ada, val_print(), value_address(), value_check_printable(), value_embedded_offset(), value_fetch_lazy(), value_lazy(), and value_type().
Referenced by ada_val_print_ref(), ada_varobj_get_value_image(), cp_print_value_fields(), gdbscm_value_print(), generic_val_print_ref(), list_arg_or_local(), mi_cmd_data_evaluate_expression(), pascal_object_print_static_field(), pascal_object_print_value_fields(), pascal_val_print(), pascal_value_print(), ppscm_print_children(), ppscm_print_string_repr(), print_children(), print_frame_arg(), print_string_repr(), print_unpacked_pointer(), print_variable_and_value(), print_variable_at_address(), print_variable_or_computed(), py_print_value(), valpy_str(), varobj_value_get_print_value(), and vlscm_print_value_smob().
| int compile_internalvar_to_ax | ( | struct internalvar * | var, |
| struct agent_expr * | expr, | ||
| struct axs_value * | value | ||
| ) |
Definition at line 2192 of file value.c.
References internalvar_funcs::compile_to_ax, internalvar_data::data, internalvar_data::functions, INTERNALVAR_MAKE_VALUE, internalvar::kind, internalvar_data::make_value, and internalvar::u.
Referenced by gen_expr().
| void complete_internalvar | ( | completion_tracker & | tracker, |
| const char * | name | ||
| ) |
Definition at line 2138 of file value.c.
References completion_tracker::add_completion(), internalvars, name, internalvar::name, and internalvar::next.
Referenced by condition_completer().
| struct internalvar* create_internalvar | ( | const char * | name | ) |
Definition at line 2158 of file value.c.
References INTERNALVAR_VOID, internalvars, internalvar::kind, name, internalvar::name, internalvar::next, and XNEW.
Referenced by create_internalvar_type_lazy(), lookup_internalvar(), and write_dollar_variable().
| struct internalvar* create_internalvar_type_lazy | ( | const char * | name, |
| const struct internalvar_funcs * | funcs, | ||
| void * | data | ||
| ) |
Definition at line 2177 of file value.c.
References create_internalvar(), internalvar_data::data, internalvar_data::functions, INTERNALVAR_MAKE_VALUE, internalvar::kind, internalvar_data::make_value, name, and internalvar::u.
Referenced by _initialize_break_catch_throw(), _initialize_infrun(), _initialize_probe(), _initialize_thread(), _initialize_tracepoint(), _initialize_windows_tdep(), and initialize_inferiors().
| struct value* default_read_var_value | ( | struct symbol * | var, |
| const struct block * | var_block, | ||
| struct frame_info * | frame | ||
| ) |
Definition at line 587 of file findvar.c.
References _, allocate_optimized_out_value(), allocate_value(), BLOCK_START, BMSYMBOL_VALUE_ADDRESS, check_typedef(), error(), gdb_assert, gdb_assert_not_reached, gdbarch_byte_order(), gdbarch_iterate_over_objfiles_in_search_order(), get_frame_arch(), get_frame_args_address(), get_frame_locals_address(), get_hosting_frame(), get_type_arch(), is_dynamic_type(), LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNRESOLVED, lookup_pointer_type(), memset(), bound_minimal_symbol::minsym, minsym_lookup_iterator_cb(), MSYMBOL_OBJ_SECTION, MSYMBOL_VALUE_RAW_ADDRESS, minsym_lookup_data::name, not_lval, bound_minimal_symbol::objfile, obj_section::objfile, objfile_flavour_name(), overlay_debugging, resolve_dynamic_type(), minsym_lookup_data::result, store_signed_integer(), store_typed_address(), symbol_arch(), SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_LINKAGE_NAME, SYMBOL_NEEDS_FRAME, SYMBOL_NEEDS_REGISTERS, SYMBOL_OBJ_SECTION, symbol_objfile(), symbol_overlayed_address(), SYMBOL_PRINT_NAME, symbol_read_needs(), SYMBOL_REGISTER_OPS, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_BYTES, target_has_registers, target_translate_tls_address(), obj_section::the_bfd_section, TYPE_LENGTH, value_as_address(), value_at(), value_at_lazy(), value_contents_raw(), value_from_register(), and VALUE_LVAL.
Referenced by ada_read_var_value().
| struct value* default_value_from_register | ( | struct gdbarch * | gdbarch, |
| struct type * | type, | ||
| int | regnum, | ||
| struct frame_id | frame_id | ||
| ) |
Definition at line 821 of file findvar.c.
References allocate_value(), frame_find_by_id(), gdbarch_byte_order(), get_frame_id(), get_next_frame_sentinel_okay(), lval_register, null_frame_id, register_size(), regnum, set_value_offset(), TYPE_LENGTH, VALUE_LVAL, VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by gdbarch_alloc(), s390_value_from_register(), and spu_value_from_register().
Definition at line 1100 of file value.c.
References type, and value::type.
Referenced by ada_value_assign(), coerce_for_assign(), do_search_struct_field(), evaluate_subexp_standard(), gnuv2_virtual_fn_field(), make_cv_value(), readjust_indirect_value_type(), value_addr(), value_cast(), value_cast_pointers(), value_full_object(), value_nsstring(), and value_ref().
| struct internalvar** deprecated_value_internalvar_hack | ( | struct value * | ) |
Definition at line 1560 of file value.c.
References value::internalvar, and value::location.
Definition at line 1517 of file value.c.
References value::lval.
| int deprecated_value_modifiable | ( | const struct value * | value | ) |
Definition at line 1580 of file value.c.
References value::modifiable.
Referenced by ada_value_assign(), assign_aggregate(), can_use_hardware_watchpoint(), evaluate_subexp_opencl(), num_memory_accesses(), and value_assign().
Definition at line 1566 of file value.c.
References gdb_assert, value::location, value::lval, lval_register, and value::reg.
| int* deprecated_value_regnum_hack | ( | struct value * | ) |
Definition at line 1573 of file value.c.
References gdb_assert, value::location, value::lval, lval_register, and value::reg.
| int destructor_name_p | ( | const char * | name, |
| struct type * | type | ||
| ) |
| void error_value_optimized_out | ( | void | ) |
Definition at line 1225 of file value.c.
Referenced by address_from_register(), and require_not_optimized_out().
| value* eval_skip_value | ( | expression * | exp | ) |
Definition at line 761 of file eval.c.
References builtin_type::builtin_int, expression::gdbarch, and value_from_longest().
Referenced by ada_evaluate_subexp(), ada_evaluate_subexp_for_cast(), evaluate_funcall(), evaluate_subexp_for_cast(), and evaluate_subexp_standard().
| struct value* evaluate_expression | ( | struct expression * | exp | ) |
Definition at line 144 of file eval.c.
References EVAL_NORMAL, evaluate_subexp(), and NULL_TYPE.
Referenced by ada_read_renaming_var_value(), breakpoint_cond_eval(), do_one_display(), dump_arc_instruction_command(), encode_actions_1(), execute_control_command_1(), info_mach_region_command(), init_if_undefined_command(), mi_cmd_data_evaluate_expression(), output_command_const(), parse_and_eval(), parse_and_eval_address(), parse_and_eval_long(), parse_to_comma_and_eval(), print_command_1(), print_variable_or_computed(), return_command(), set_command(), should_stop_exception(), value_of_root_1(), varobj_create(), varobj_set_value(), and x_command().
| struct value* evaluate_subexp | ( | struct type * | expect_type, |
| struct expression * | exp, | ||
| int * | pos, | ||
| enum noside | noside | ||
| ) |
Definition at line 69 of file eval.c.
References do_cleanups(), enable_thread_stack_temporaries(), exp_descriptor::evaluate_exp, inferior_ptid, language_defn::la_exp_desc, language_defn::la_language, language_cplus, expression::language_defn, target_has_execution, thread_stack_temporaries_enabled_p(), value_in_thread_stack_temporaries(), and value_non_lval().
Referenced by ada_evaluate_subexp(), ada_evaluate_subexp_for_cast(), evaluate_expression(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_for_address(), evaluate_subexp_for_cast(), evaluate_subexp_for_sizeof(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_subexp_type(), evaluate_subexp_with_coercion(), evaluate_subexpression_type(), evaluate_type(), fetch_subexp_value(), gen_expr(), init_array_element(), print_object_command(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_range(), rust_subscript(), and value_f90_subarray().
| struct value* evaluate_subexp_with_coercion | ( | struct expression * | , |
| int * | , | ||
| enum | noside | ||
| ) |
| struct value* evaluate_subexpression_type | ( | struct expression * | exp, |
| int | subexp | ||
| ) |
Definition at line 166 of file eval.c.
References EVAL_AVOID_SIDE_EFFECTS, evaluate_subexp(), and NULL_TYPE.
Referenced by parse_expression_for_completion().
| struct value* evaluate_type | ( | struct expression * | exp | ) |
Definition at line 155 of file eval.c.
References EVAL_AVOID_SIDE_EFFECTS, evaluate_subexp(), and NULL_TYPE.
Referenced by gnuv3_get_type_from_type_info(), maintenance_print_type(), print_variable_or_computed(), varobj_create(), and whatis_exp().
| value* evaluate_var_msym_value | ( | enum noside | noside, |
| struct objfile * | objfile, | ||
| minimal_symbol * | msymbol | ||
| ) |
Definition at line 742 of file eval.c.
References value::address, EVAL_AVOID_SIDE_EFFECTS, find_minsym_type_and_address(), not_lval, value_at_lazy(), and value_zero().
Referenced by ada_evaluate_subexp_for_cast(), evaluate_subexp_for_address(), evaluate_subexp_for_cast(), evaluate_subexp_for_sizeof(), evaluate_subexp_standard(), and resolve_subexp().
Definition at line 709 of file eval.c.
References CATCH, END_CATCH, EVAL_AVOID_SIDE_EFFECTS, not_lval, RETURN_MASK_ERROR, SYMBOL_TYPE, throw_exception(), TRY, value_of_variable(), and value_zero().
Referenced by ada_evaluate_subexp_for_cast(), evaluate_subexp_for_cast(), and evaluate_subexp_standard().
| char* extract_field_op | ( | struct expression * | exp, |
| int * | subexp | ||
| ) |
Definition at line 276 of file eval.c.
References BYTES_TO_EXP_ELEM, expression::elts, exp_element::longconst, longest_to_int(), exp_element::opcode, and exp_element::string.
Referenced by parse_expression_for_completion().
| void fetch_subexp_value | ( | struct expression * | exp, |
| int * | pc, | ||
| struct value ** | valp, | ||
| struct value ** | resultp, | ||
| struct value ** | val_chain, | ||
| int | preserve_errors | ||
| ) |
Definition at line 195 of file eval.c.
References CATCH, END_CATCH, EVAL_NORMAL, evaluate_subexp(), MEMORY_ERROR, NULL_TYPE, RETURN_MASK_ALL, RETURN_MASK_ERROR, throw_exception(), TRY, value_fetch_lazy(), value_lazy(), value_mark(), and value_release_to_mark().
Referenced by check_condition(), update_watchpoint(), watch_command_1(), and watchpoint_check().
Definition at line 127 of file valops.c.
References _, BMSYMBOL_VALUE_ADDRESS, error(), get_objfile_arch(), LOC_BLOCK, lookup_bound_minimal_symbol(), lookup_function_type(), lookup_pointer_type(), lookup_symbol(), bound_minimal_symbol::minsym, name, bound_minimal_symbol::objfile, SYMBOL_CLASS, symbol_objfile(), target_has_execution, type, value_from_pointer(), value_of_variable(), and VAR_DOMAIN.
Referenced by call_target_sbrk(), checkpoint_command(), evaluate_subexp_standard(), inferior_call_waitpid(), linux_infcall_mmap(), linux_infcall_munmap(), lookup_child_selector(), lookup_objc_class(), print_object_command(), value_allocate_space_in_inferior(), and value_nsstring().
| int find_overload_match | ( | struct value ** | args, |
| int | nargs, | ||
| const char * | name, | ||
| enum oload_search_type | method, | ||
| struct value ** | objp, | ||
| struct symbol * | fsym, | ||
| struct value ** | valp, | ||
| struct symbol ** | symp, | ||
| int * | staticp, | ||
| const int | no_adl, | ||
| enum noside | noside | ||
| ) |
Definition at line 2465 of file valops.c.
References _, all_cleanups(), BOTH, check_typedef(), classify_oload_match(), clone_xmethod_worker(), coerce_ref(), compare_badness(), cp_func_name(), do_cleanups(), error(), EVAL_AVOID_SIDE_EFFECTS, find_oload_champ(), find_oload_champ_namespace(), free_xmethod_worker_vec(), gdb_assert, gdb_assert_not_reached, INCOMPATIBLE, make_cleanup(), METHOD, name, NON_METHOD, NON_STANDARD, NOT_FOUND_ERROR, null_cleanup(), oload_method_static_p(), search_struct_field(), STANDARD, SYMBOL_NATURAL_NAME, SYMBOL_TYPE, throw_error(), TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_FN_FIELD_VIRTUAL_P, TYPE_IS_REFERENCE, TYPE_NAME, TYPE_SELF_TYPE, value_addr(), value_find_oload_method_list(), value_fn_field(), value_ind(), value_of_xmethod(), value_type(), value_virtual_fn_field(), VEC, VEC_index, VEC_length, warning(), and xfree().
Referenced by evaluate_funcall(), and value_user_defined_cpp_op().
| void free_all_values | ( | void | ) |
Definition at line 1660 of file value.c.
References all_values, value::next, value::released, and value_free().
| void free_value_chain | ( | struct value * | v | ) |
Definition at line 1678 of file value.c.
References value::next, value_free(), and value_next().
Referenced by check_condition().
| int get_internalvar_integer | ( | struct internalvar * | var, |
| LONGEST * | l | ||
| ) |
Definition at line 2313 of file value.c.
References check_typedef(), internalvar_data::integer, INTERNALVAR_INTEGER, INTERNALVAR_VALUE, internalvar::kind, TYPE_CODE, TYPE_CODE_INT, internalvar::u, internalvar_data::val, internalvar_data::value, value_as_long(), and value_type().
Referenced by get_number_trailer(), and linespec_parse_variable().
Definition at line 343 of file value.c.
References get_type_arch(), and value_type().
Referenced by read_value_memory(), set_internalvar_component(), value_contents_copy_raw(), value_contents_raw(), and value_primitive_field().
| char* internalvar_name | ( | const struct internalvar * | var | ) |
Definition at line 2502 of file value.c.
References internalvar::name.
Referenced by dump_subexp_body_standard(), gen_expr(), and print_subexp_standard().
| bool is_floating_value | ( | struct value * | val | ) |
Definition at line 2942 of file value.c.
References _, check_typedef(), error(), is_floating_type(), target_float_is_valid(), value_contents(), and value_type().
Referenced by gdbscm_value_to_real(), scalar_binop(), valpy_float(), valpy_nonzero(), value_cast(), value_equal(), value_less(), value_logical_not(), and value_pos().
| struct internalvar* lookup_internalvar | ( | const char * | name | ) |
Definition at line 2212 of file value.c.
References create_internalvar(), lookup_only_internalvar(), and name.
Referenced by add_internal_function(), clear_exit_convenience_vars(), core_open(), find_command(), forward_search_command(), get_number_trailer(), handle_inferior_event_1(), reverse_search_command(), set_breakpoint_count(), set_next_address(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), set_tracepoint_num(), and x_command().
| struct internalvar* lookup_only_internalvar | ( | const char * | name | ) |
Definition at line 2123 of file value.c.
References internalvars, name, internalvar::name, and internalvar::next.
Referenced by linespec_parse_variable(), lookup_internalvar(), write_dollar_variable(), and yylex().
Definition at line 1802 of file value.c.
References deprecated_set_value_type(), value::enclosing_type, make_cv_type(), set_value_enclosing_type(), value_copy(), value_enclosing_type(), and value_type().
Referenced by valpy_const_value().
Definition at line 1458 of file value.c.
References insert_into_bit_range_vector(), and offset.
Referenced by mark_value_bytes_optimized_out(), and rw_pieced_value().
Definition at line 594 of file value.c.
References insert_into_bit_range_vector(), range::length, and offset.
Referenced by mark_value_bytes_unavailable(), read_value_memory(), and rw_pieced_value().
| void mark_value_bytes_optimized_out | ( | struct value * | value, |
| int | offset, | ||
| int | length | ||
| ) |
Definition at line 1448 of file value.c.
References mark_value_bits_optimized_out(), offset, and TARGET_CHAR_BIT.
Referenced by allocate_optimized_out_value(), frame_unwind_got_optimized(), and value_from_register().
Definition at line 601 of file value.c.
References range::length, mark_value_bits_unavailable(), offset, and TARGET_CHAR_BIT.
Referenced by aarch64_pseudo_read_value(), amd64_pseudo_register_read_value(), regcache::cooked_read_value(), dwarf2_evaluate_loc_desc_full(), i386_pseudo_register_read_into_value(), and value_from_register().
| void modify_field | ( | struct type * | type, |
| gdb_byte * | addr, | ||
| LONGEST | fieldval, | ||
| LONGEST | bitpos, | ||
| LONGEST | bitsize | ||
| ) |
Definition at line 3403 of file value.c.
References _, value::bitpos, value::bitsize, extract_unsigned_integer(), gdbarch_bits_big_endian(), gdbarch_byte_order(), get_type_arch(), plongest(), store_unsigned_integer(), and warning().
Referenced by evaluate_struct_tuple(), make_array_descriptor(), set_internalvar_component(), and value_assign().
Definition at line 3450 of file value.c.
References _, check_typedef(), error(), gdbarch_byte_order(), get_type_arch(), store_signed_integer(), store_typed_address(), target_float_from_longest(), TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_DECFLOAT, TYPE_CODE_ENUM, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_RVALUE_REF, and TYPE_LENGTH.
Referenced by emit_numeric_character(), frame_unwind_got_address(), generic_emit_char(), linux_make_mappings_callback(), linux_make_mappings_corefile_notes(), and value_from_longest().
| struct value* parse_and_eval | ( | const char * | exp | ) |
Definition at line 119 of file eval.c.
References evaluate_expression(), and parse_expression().
Referenced by ada_exception_message_1(), dump_value_to_file(), gdbpy_parse_and_eval(), gdbscm_parse_and_eval(), ignore_command(), info_task(), info_vtbl_command(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), parse_frame_specification(), print_ada_task_info(), quit_command(), task_command_1(), and trace_variable_command().
| CORE_ADDR parse_and_eval_address | ( | const char * | exp | ) |
Definition at line 101 of file eval.c.
References evaluate_expression(), parse_expression(), and value_as_address().
Referenced by ada_exception_name_addr_1(), ada_unhandled_exception_name_addr(), ada_unhandled_exception_name_addr_from_raise(), add_symbol_file_command(), add_symbol_file_from_memory_command(), adi_assign_command(), adi_examine_command(), bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), disassemble_command(), dump_memory_to_file(), go32_pte_for_address(), i386_mpx_info_bounds(), info_symbol_command(), maintenance_print_psymbols(), maintenance_print_symbols(), maintenance_translate_address(), mem_command(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), mi_cmd_data_write_memory(), mi_cmd_data_write_memory_bytes(), mi_cmd_data_write_register_values(), mi_cmd_disassemble(), mi_cmd_trace_find(), remove_symbol_file_command(), restore_command(), set_section_command(), set_task_exc_port_cmd(), set_thread_exc_port_cmd(), tfind_outside_command(), tfind_pc_command(), tfind_range_command(), and unwind_command().
| LONGEST parse_and_eval_long | ( | const char * | exp | ) |
Definition at line 111 of file eval.c.
References evaluate_expression(), parse_expression(), and value_as_long().
Referenced by add_inferior_command(), adi_assign_command(), backtrace_command_1(), breakpoint_1(), call_lseek(), clone_inferior_command(), continue_command(), delete_checkpoint_command(), detach_checkpoint_command(), display_selectors(), do_set_command(), down_silently_base(), go32_pde(), go32_pte(), go32_sgdt(), go32_sidt(), go32_sldt(), i386_linux_handle_segmentation_fault(), inferior_command(), info_checkpoints_command(), info_signals_command(), maintenance_info_program_spaces_command(), queue_signal_command(), record_goto(), restart_command(), restore_command(), set_radix(), show_commands(), show_values(), signal_command(), sparc64_linux_handle_segmentation_fault(), step_1(), tfind_command_1(), tfind_tracepoint_command(), and up_silently_base().
| struct type* parse_and_eval_type | ( | char * | p, |
| int | length | ||
| ) |
Definition at line 3264 of file eval.c.
References _, error(), type::length, and parse_expression().
Referenced by safe_parse_type().
| struct value* parse_to_comma_and_eval | ( | const char ** | expp | ) |
Definition at line 131 of file eval.c.
References evaluate_expression(), and parse_exp_1().
Referenced by disassemble_command(), i386_mpx_set_bounds(), info_port_rights(), linespec_expression_to_pc(), parse_find_args(), ui_printf(), and watch_command_1().
Definition at line 2590 of file value.c.
References copy_type_recursive(), value::enclosing_type, value::type, and TYPE_OBJFILE.
Referenced by gdbpy_preserve_values(), gdbscm_preserve_values(), preserve_one_internalvar(), and preserve_values().
| void preserve_values | ( | struct objfile * | ) |
Definition at line 2629 of file value.c.
References create_copied_types_hash(), internalvars, value_history_chunk::next, internalvar::next, preserve_ext_lang_values(), preserve_one_internalvar(), preserve_one_value(), value_history_chain, VALUE_HISTORY_CHUNK, and value_history_chunk::values.
Referenced by reread_symbols(), and objfile::~objfile().
| int print_address_demangle | ( | const struct value_print_options * | , |
| struct gdbarch * | , | ||
| CORE_ADDR | , | ||
| struct ui_file * | , | ||
| int | |||
| ) |
Definition at line 736 of file printcmd.c.
References frame_info::addr, value_print_options::addressprint, fputs_filtered(), paddress(), and print_address_symbolic().
Referenced by f_val_print(), generic_val_print_func(), gnuv3_print_method_ptr(), pascal_val_print(), print_function_pointer_address(), and print_unpacked_pointer().
Definition at line 1361 of file valprint.c.
References fputs_filtered(), string, and target_float_to_string().
Referenced by ada_print_floating(), dump_subexp_body_standard(), generic_val_print_complex(), generic_val_print_float(), and print_scalar_formatted().
Definition at line 1303 of file valprint.c.
References _, value_print_options::format, fputs_filtered(), int_string(), and internal_error().
Referenced by ada_print_scalar(), ada_val_print_enum(), ax_print(), dump_raw_expression(), generic_val_print_bool(), generic_val_print_enum_1(), gnuv3_print_method_ptr(), h8300_print_register(), m68hc11_print_register(), mt_registers_info(), print_type_scalar(), and val_print_type_code_flags().
| void print_variable_and_value | ( | const char * | name, |
| struct symbol * | var, | ||
| struct frame_info * | frame, | ||
| struct ui_file * | stream, | ||
| int | indent | ||
| ) |
Definition at line 2173 of file printcmd.c.
References CATCH, common_val_print(), current_language, value_print_options::deref_ref, END_CATCH, fprintf_filtered(), get_user_print_options(), n_spaces(), name, read_var_value(), RETURN_MASK_ERROR, SYMBOL_PRINT_NAME, and TRY.
Referenced by do_print_variable_and_value().
| void read_frame_register_value | ( | struct value * | value, |
| struct frame_info * | frame | ||
| ) |
Definition at line 862 of file findvar.c.
References check_typedef(), gdb_assert, get_frame_arch(), get_frame_register_value(), lval_register, offset, reg_offset, register_size(), regnum, type_length_units(), value_contents_copy(), VALUE_LVAL, value_offset(), VALUE_REGNUM, and value_type().
Referenced by address_from_register(), and value_from_register().
| void read_value_memory | ( | struct value * | val, |
| LONGEST | bit_offset, | ||
| int | stack, | ||
| CORE_ADDR | memaddr, | ||
| gdb_byte * | buffer, | ||
| size_t | length | ||
| ) |
Definition at line 950 of file valops.c.
References target_ops::beneath, current_target, gdbarch_addressable_memory_unit_size(), get_value_arch(), HOST_CHAR_BIT, mark_value_bits_unavailable(), memory_error(), QUIT, status, TARGET_OBJECT_MEMORY, TARGET_OBJECT_STACK_MEMORY, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, target_xfer_partial, and TARGET_XFER_UNAVAILABLE.
Referenced by get_call_return_value(), rw_pieced_value(), value_fetch_lazy(), and value_repeat().
| struct value* read_var_value | ( | struct symbol * | var, |
| const struct block * | var_block, | ||
| struct frame_info * | frame | ||
| ) |
Definition at line 807 of file findvar.c.
References gdb_assert, language_defn::la_read_var_value, language_def(), and SYMBOL_LANGUAGE.
Referenced by bpfinishpy_init(), convert_one_symbol(), do_compile_dwarf_expr_to_c(), enumerate_locals(), finish_command_fsm_should_stop(), frapy_read_var(), gdbscm_frame_read_var(), gdbscm_symbol_value(), insert_exception_resume_breakpoint(), print_variable_and_value(), read_frame_arg(), read_frame_local(), return_command(), sympy_value(), value_of_this(), value_of_variable(), and value_struct_elt_for_reference().
| struct value* readjust_indirect_value_type | ( | struct value * | value, |
| struct type * | enc_type, | ||
| const struct type * | original_type, | ||
| const struct value * | original_val | ||
| ) |
Definition at line 3739 of file value.c.
References deprecated_set_value_type(), set_value_embedded_offset(), set_value_enclosing_type(), TYPE_TARGET_TYPE, value_full_object(), and value_pointed_to_offset().
Referenced by coerce_ref(), and value_ind().
| int record_latest_value | ( | struct value * | val | ) |
Definition at line 1884 of file value.c.
References value::modifiable, value_history_chunk::next, release_value_or_incref(), value_fetch_lazy(), value_history_chain, VALUE_HISTORY_CHUNK, value_history_count, value_lazy(), value_history_chunk::values, and XCNEW.
Referenced by dump_arc_instruction_command(), finish_command_fsm_should_stop(), gdbscm_history_append_x(), and print_value().
| void release_value | ( | struct value * | val | ) |
Definition at line 1693 of file value.c.
References all_values, value::next, and value::released.
Referenced by address_from_register(), alpha_register_to_value(), bpstats::bpstats(), do_examine(), regcache::dump(), dwarf2_compute_name(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), info_frame_command(), m68hc11_frame_prev_register(), m88k_frame_prev_register(), mep_frame_prev_register(), put_frame_register_bytes(), register_changed_p(), release_value_or_incref(), set_internalvar(), update_watchpoint(), value_of_dwarf_reg_entry(), watch_command_1(), and watchpoint_check().
| void release_value_or_incref | ( | struct value * | val | ) |
Definition at line 1723 of file value.c.
References release_value(), value::released, and value_incref().
Referenced by record_latest_value(), update_dynamic_varobj_children(), valpy_new(), value_to_value_object(), and vlscm_scm_from_value().
Definition at line 2722 of file value.c.
References gdb::argv, gdb_assert, get_xmethod_result_type(), value::location, value::lval, lval_xcallable, TYPE_CODE, TYPE_CODE_XMETHOD, value_type(), and value::xm_worker.
Referenced by eval_call(), value_x_binop(), and value_x_unop().
| void set_internalvar | ( | struct internalvar * | var, |
| struct value * | val | ||
| ) |
Definition at line 2381 of file value.c.
References _, internalvar_data::canonical, check_typedef(), clear_internalvar(), DYN_PROP_DATA_LOCATION, error(), internalvar_data::fn, internalvar_data::function, gdb_assert, get_internalvar_function(), INTERNALVAR_FUNCTION, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, lval_internalvar, value::modifiable, internalvar::name, release_value(), remove_dyn_prop(), TYPE_CODE, TYPE_CODE_INTERNAL_FUNCTION, TYPE_CODE_VOID, internalvar::u, internalvar_data::val, internalvar_data::value, value_copy(), value_fetch_lazy(), VALUE_INTERNALVAR, value_lazy(), VALUE_LVAL, and value_type().
Referenced by find_command(), set_next_address(), value_assign(), and x_command().
| void set_internalvar_component | ( | struct internalvar * | var, |
| LONGEST | offset, | ||
| LONGEST | bitpos, | ||
| LONGEST | bitsize, | ||
| struct value * | newvalue | ||
| ) |
Definition at line 2351 of file value.c.
References _, gdbarch_addressable_memory_unit_size(), get_value_arch(), internal_error(), INTERNALVAR_VALUE, internalvar::kind, modify_field(), offset, TYPE_LENGTH, internalvar::u, internalvar_data::value, value_as_long(), value_contents(), value_contents_writeable(), and value_type().
Referenced by value_assign().
| void set_internalvar_integer | ( | struct internalvar * | var, |
| LONGEST | l | ||
| ) |
Definition at line 2442 of file value.c.
References clear_internalvar(), internalvar_data::integer, INTERNALVAR_INTEGER, internalvar::kind, internalvar_data::type, internalvar::u, and internalvar_data::val.
Referenced by core_open(), find_command(), forward_search_command(), handle_inferior_event_1(), reverse_search_command(), set_breakpoint_count(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), and set_tracepoint_num().
| void set_internalvar_string | ( | struct internalvar * | var, |
| const char * | string | ||
| ) |
Definition at line 2453 of file value.c.
References clear_internalvar(), INTERNALVAR_STRING, internalvar::kind, internalvar_data::string, and internalvar::u.
Referenced by set_traceframe_context().
Definition at line 1553 of file value.c.
References value::address, gdb_assert, value::location, value::lval, and lval_memory.
Referenced by coerce_unspec_val_to_type(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), ensure_lval(), set_value_component_location(), value_fn_field(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), and value_repeat().
Definition at line 1122 of file value.c.
References bit, and value::bitpos.
Referenced by ada_value_primitive_packed_val(), and coerce_unspec_val_to_type().
Definition at line 1133 of file value.c.
References bit, and value::bitsize.
Referenced by ada_value_primitive_packed_val(), and coerce_unspec_val_to_type().
Definition at line 1849 of file value.c.
References value::computed, lval_funcs::copy_closure, gdb_assert, value::location, value::lval, lval_computed, lval_internalvar, lval_internalvar_component, lval_xcallable, PROP_CONST, set_value_address(), type, TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, VALUE_LVAL, and value_type().
Referenced by ada_value_primitive_packed_val(), coerce_unspec_val_to_type(), value_from_component(), value_primitive_field(), value_ptradd(), and value_slice().
Definition at line 1483 of file value.c.
References value::embedded_offset.
Referenced by do_search_struct_field(), readjust_indirect_value_type(), value_full_object(), and value_non_lval().
Definition at line 3010 of file value.c.
References check_type_length_before_alloc(), value::contents, value::enclosing_type, TYPE_LENGTH, value_enclosing_type(), and xrealloc().
Referenced by make_cv_value(), readjust_indirect_value_type(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), and value_full_object().
| void set_value_initialized | ( | struct value * | , |
| int | |||
| ) |
Definition at line 3838 of file value.c.
References value::initialized, and status.
Referenced by dwarf2_evaluate_loc_desc_full().
| void set_value_lazy | ( | struct value * | value, |
| int | val | ||
| ) |
Definition at line 1389 of file value.c.
References value::lazy.
Referenced by allocate_optimized_out_value(), frame_unwind_got_optimized(), gnuv2_virtual_fn_field(), value_assign(), value_fetch_lazy(), and value_of_dwarf_reg_entry().
Definition at line 1111 of file value.c.
References offset, and value::offset.
Referenced by ada_value_primitive_packed_val(), default_value_from_register(), dwarf2_evaluate_loc_desc_full(), gnuv2_virtual_fn_field(), s390_value_from_register(), spu_value_from_register(), and value_slice().
Definition at line 1147 of file value.c.
References value::parent, value_free(), and value_incref().
Referenced by ada_value_primitive_packed_val(), value_copy(), and value_primitive_field().
Definition at line 1495 of file value.c.
References value::pointed_to_offset.
Referenced by value_addr(), value_assign(), value_cast(), value_cast_pointers(), and value_non_lval().
| void set_value_stack | ( | struct value * | value, |
| int | val | ||
| ) |
Definition at line 1401 of file value.c.
References value::stack.
Referenced by dwarf2_evaluate_loc_desc_full(), and frame_unwind_got_memory().
| enum return_value_convention struct_return_convention | ( | struct gdbarch * | gdbarch, |
| struct value * | function, | ||
| struct type * | value_type | ||
| ) |
Definition at line 3805 of file value.c.
References _, code, error(), gdbarch_return_value(), TYPE_CODE, TYPE_CODE_ERROR, and value_type().
Referenced by return_command(), and using_struct_return().
| enum symbol_needs_kind symbol_read_needs | ( | struct symbol * | ) |
Definition at line 351 of file findvar.c.
References _, gdb_assert_not_reached, LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_NEEDS_FRAME, and SYMBOL_NEEDS_NONE.
Referenced by default_read_var_value(), and symbol_read_needs_frame().
| int symbol_read_needs_frame | ( | struct symbol * | ) |
Definition at line 392 of file findvar.c.
References SYMBOL_NEEDS_FRAME, and symbol_read_needs().
Referenced by convert_one_symbol(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), get_hosting_frame(), sympy_needs_frame(), sympy_value(), update_innermost_block(), value_of_variable(), write_var_from_sym(), and yyparse().
Definition at line 358 of file typeprint.c.
References default_ptype_flags, and LA_PRINT_TYPE.
Referenced by ada_dump_subexp_body(), ada_print_subexp(), ada_val_print_num(), ada_value_print(), c_print_typedef(), c_value_print(), disassemble_dwarf_expression(), dump_subexp_body_standard(), generic_val_print_func(), inspect_type(), list_arg_or_local(), m2_print_typedef(), pascal_print_typedef(), pascal_type_print_base(), pascal_value_print(), print_subexp_standard(), print_symbol_info(), print_variable_or_computed(), py_print_type(), rust_dump_subexp_body(), rust_print_subexp(), rust_print_typedef(), type_as_string(), type_to_string(), and whatis_exp().
| std::string type_to_string | ( | struct type * | type | ) |
Definition at line 368 of file typeprint.c.
References CATCH, END_CATCH, RETURN_MASK_ALL, string_file::string(), TRY, and type_print().
Referenced by c_get_string(), c_watch_location_expression(), convert_ast_to_type(), convert_name(), gnuv3_get_typeid(), lookup_struct_elt_type(), print_return_value_1(), rust_watch_location_expression(), update_type_if_necessary(), and varobj_get_type().
Definition at line 336 of file typeprint.c.
References LA_PRINT_TYPEDEF.
Referenced by print_symbol_info().
| void unop_promote | ( | const struct language_defn * | language, |
| struct gdbarch * | gdbarch, | ||
| struct value ** | arg1 | ||
| ) |
Definition at line 419 of file eval.c.
References builtin_type::builtin_int, builtin_type(), check_typedef(), coerce_ref(), is_integral_type(), TYPE_LENGTH, value_cast(), and value_type().
Referenced by ada_evaluate_subexp(), and evaluate_subexp_standard().
| int unop_user_defined_p | ( | enum exp_opcode | op, |
| struct value * | arg1 | ||
| ) |
Definition at line 262 of file valarith.c.
References check_typedef(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, and value_type().
Referenced by evaluate_funcall(), evaluate_subexp_for_address(), and evaluate_subexp_standard().
Definition at line 3318 of file value.c.
References TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_TYPE, and unpack_bits_as_long().
Referenced by dynamic_array_type(), and m2_print_unbounded_array().
Definition at line 2880 of file value.c.
References _, gdbarch::byte_order, check_typedef(), code, error(), extract_signed_integer(), extract_typed_address(), extract_unsigned_integer(), gdbarch_byte_order(), get_type_arch(), target_float_to_longest(), TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_DECFLOAT, TYPE_CODE_ENUM, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_RVALUE_REF, TYPE_CODE_TYPEDEF, TYPE_LENGTH, TYPE_UNSIGNED, and unpack_long().
Referenced by aarch64_store_return_value(), ada_val_print_enum(), ada_val_print_num(), address_from_register(), alpha_store_return_value(), arm_store_return_value(), avr_integer_to_address(), c_val_print_int(), do_ppc_sysv_return_value(), evaluate_subexp_c(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_enum(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value_base(), ppc_sysv_abi_push_dummy_call(), print_scalar_formatted(), rs6000_lynx178_return_value(), rs6000_return_value(), rust_get_disr_info(), spu_integer_to_address(), unpack_long(), unpack_pointer(), val_print_type_code_flags(), value_as_address(), value_as_long(), and value_concat().
Definition at line 2934 of file value.c.
References unpack_long().
Referenced by ada_val_print_ref(), c_val_print_ptr(), coerce_ref(), dynamic_array_type(), f_val_print(), generic_val_print_ptr(), generic_val_print_ref(), gnuv2_baseclass_offset(), m2_print_unbounded_array(), m2_val_print(), pascal_val_print(), print_scalar_formatted(), print_unpacked_pointer(), print_variable_at_address(), pyuw_value_obj_to_pointer(), and rust_val_print().
| void unpack_value_bitfield | ( | struct value * | dest_val, |
| LONGEST | bitpos, | ||
| LONGEST | bitsize, | ||
| const gdb_byte * | valaddr, | ||
| LONGEST | embedded_offset, | ||
| const struct value * | val | ||
| ) |
Definition at line 3336 of file value.c.
References gdbarch_byte_order(), get_type_arch(), store_signed_integer(), TARGET_CHAR_BIT, TYPE_LENGTH, unpack_bits_as_long(), value_contents_raw(), value_ranges_copy_adjusted(), and value_type().
Referenced by extract_bitfield_from_watchpoint_value(), value_fetch_lazy(), and value_field_bitfield().
| int unpack_value_field_as_long | ( | struct type * | type, |
| const gdb_byte * | valaddr, | ||
| LONGEST | embedded_offset, | ||
| int | fieldno, | ||
| const struct value * | val, | ||
| LONGEST * | result | ||
| ) |
Definition at line 3293 of file value.c.
References gdb_assert, TARGET_CHAR_BIT, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_TYPE, unpack_bits_as_long(), value_bits_any_optimized_out(), and value_bits_available().
Referenced by print_go_string().
| int using_struct_return | ( | struct gdbarch * | gdbarch, |
| struct value * | function, | ||
| struct type * | value_type | ||
| ) |
Definition at line 3823 of file value.c.
References RETURN_VALUE_REGISTER_CONVENTION, struct_return_convention(), TYPE_CODE, TYPE_CODE_VOID, and value_type().
Referenced by call_function_by_hand_dummy(), evaluate_subexp_standard(), and sparc32_push_dummy_code().
| void val_print | ( | struct type * | type, |
| LONGEST | embedded_offset, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream, | ||
| int | recurse, | ||
| struct value * | val, | ||
| const struct value_print_options * | options, | ||
| const struct language_defn * | language | ||
| ) |
Definition at line 1015 of file valprint.c.
References _, apply_ext_lang_val_pretty_printer(), CATCH, check_typedef(), END_CATCH, fprintf_filtered(), gdb_flush(), value_print_options::prettyformat, value_print_options::prettyformat_structs, QUIT, value_print_options::raw, RETURN_MASK_ERROR, value_print_options::summary, TRY, TYPE_STUB, Val_no_prettyformat, Val_prettyformat, Val_prettyformat_default, val_print_scalar_type_p(), and valprint_check_validity().
Referenced by ada_val_print_1(), ada_val_print_flt(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ptr(), ada_val_print_ref(), ada_value_print(), c_value_print(), common_val_print(), cp_print_static_field(), cp_print_value_fields(), default_print_one_register_info(), f77_print_array_1(), f_val_print(), mt_registers_info(), output_register(), pascal_object_print_value_fields(), print_field_values(), rust_val_print(), sh64_do_register(), val_print_array_elements(), val_print_packed_array_elements(), val_print_scalar_formatted(), and val_print_struct().
| int val_print_string | ( | struct type * | elttype, |
| const char * | encoding, | ||
| CORE_ADDR | addr, | ||
| int | len, | ||
| struct ui_file * | stream, | ||
| const struct value_print_options * | options | ||
| ) |
Definition at line 2795 of file valprint.c.
References gdbarch::byte_order, do_cleanups(), err, extract_unsigned_integer(), fprintf_filtered(), fputs_filtered(), gdb_flush(), gdbarch_byte_order(), get_type_arch(), LA_PRINT_STRING, make_cleanup(), memory_error_message(), value_print_options::print_max, read_string(), string, target_read_memory(), TARGET_XFER_E_IO, TYPE_LENGTH, and xfree().
Referenced by f_val_print(), fprint_auxv_entry(), lsscm_val_print_lazy_string(), m2_print_array_contents(), pascal_val_print(), print_children(), print_formatted(), print_go_string(), print_string_repr(), print_unpacked_pointer(), rust_val_print(), rust_val_print_str(), and varobj_value_get_print_value().
| int valprint_check_validity | ( | struct ui_file * | stream, |
| struct type * | type, | ||
| LONGEST | embedded_offset, | ||
| const struct value * | val | ||
| ) |
Definition at line 290 of file valprint.c.
References _, check_typedef(), coerce_ref_if_computed(), value::embedded_offset, fputs_filtered(), lval_memory, TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_LENGTH, type_not_allocated(), type_not_associated(), val_print_not_allocated(), val_print_not_associated(), val_print_optimized_out(), val_print_unavailable(), value_bits_any_optimized_out(), value_bits_synthetic_pointer(), value_bytes_available(), and value_lval_const().
Referenced by cp_print_value_fields(), and val_print().
| struct type* value_actual_type | ( | struct value * | value, |
| int | resolve_simple_types, | ||
| int * | real_type_found | ||
| ) |
Definition at line 1183 of file value.c.
References check_typedef(), get_user_print_options(), value_print_options::objectprint, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, value_enclosing_type(), value_optimized_out(), value_rtti_indirect_type(), and value_type().
Referenced by adjust_value_for_child_access(), create_child_with_value(), update_type_if_necessary(), and varobj_create().
Definition at line 1462 of file valops.c.
References _, check_typedef(), coerce_ref(), deprecated_set_value_type(), error(), lookup_pointer_type(), lval_memory, set_value_enclosing_type(), set_value_pointed_to_offset(), TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_FUNC, TYPE_IS_REFERENCE, TYPE_LENGTH, TYPE_TARGET_TYPE, value_address(), value_bits_synthetic_pointer(), value_coerce_function(), value_coerce_to_target(), value_copy(), value_embedded_offset(), value_enclosing_type(), value_from_pointer(), VALUE_LVAL, and value_type().
Referenced by ada_convert_actual(), ada_evaluate_subexp(), amd64_windows_adjust_args_passed_by_pointer(), c_value_print(), call_function_by_hand_dummy(), evaluate_subexp_for_address(), find_function_addr(), find_overload_match(), gdbscm_value_address(), get_value_addr_contents(), gnuv2_virtual_fn_field(), gnuv3_get_virtual_fn(), gnuv3_print_vtable(), gnuv3_rtti_type(), make_array_descriptor(), print_one_vtable(), rust_evaluate_funcall(), rust_subscript(), valpy_get_address(), value_cast_pointers(), value_dynamic_cast(), value_fn_field(), value_maybe_namespace_elt(), value_ref(), value_reinterpret_cast(), value_struct_elt_for_reference(), value_x_binop(), value_x_unop(), and watch_command_1().
Definition at line 1529 of file value.c.
References value::address, gdb_assert, value::location, value::lval, lval_memory, value::offset, value::parent, PROP_CONST, TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, value_address(), and value_type().
Referenced by ada_exception_message_1(), ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value(), ada_val_print_gnat_array(), ada_val_print_ref(), ada_value_assign(), ada_value_primitive_packed_val(), ada_value_print(), ada_value_struct_elt(), address_of_variable(), c_value_print(), call_function_by_hand_dummy(), call_site_to_target_addr(), can_use_hardware_watchpoint(), check_condition(), coerce_unspec_val_to_type(), common_val_print(), compare_value_and_voffset(), convert_one_symbol(), cp_print_static_field(), cp_print_value(), desc_bounds(), do_compile_dwarf_expr_to_c(), do_search_struct_field(), dump_value_to_file(), encode_actions_1(), eq_value_and_voffset(), evaluate_funcall(), evaluate_subexp_standard(), f77_print_array_1(), f_val_print(), find_function_addr(), find_method_list(), frame_register_unwind(), frame_unwind_register_value(), frv_push_dummy_call(), gdbscm_value_to_lazy_string(), gnuv2_value_rtti_type(), gnuv3_get_typeid(), gnuv3_rtti_type(), hash_value_and_voffset(), info_frame_command(), is_unique_ancestor(), locexpr_get_frame_base(), loclist_get_frame_base(), m32r_push_dummy_call(), mips_eabi_push_dummy_call(), mn10300_push_dummy_call(), msp430_push_dummy_call(), or1k_push_dummy_call(), pascal_object_print_static_field(), print_formatted(), print_one_vtable(), read_fat_string_value(), rust_evaluate_subexp(), search_struct_method(), thin_data_pntr(), unwrap_value(), update_watchpoint(), v850_push_dummy_call(), valpy_lazy_string(), value_addr(), value_address(), value_as_address(), value_assign(), value_assign_to_component(), value_cast(), value_cast_structs(), value_coerce_array(), value_coerce_function(), value_dynamic_cast(), value_fetch_lazy(), value_full_object(), value_pointer(), value_primitive_field(), value_print(), value_repeat(), value_struct_elt_for_reference(), value_subscripted_rvalue(), and x_command().
| struct value* value_aggregate_elt | ( | struct type * | curtype, |
| const char * | name, | ||
| struct type * | expect_type, | ||
| int | want_address, | ||
| enum noside | noside | ||
| ) |
Definition at line 3224 of file valops.c.
References _, enum_constant_from_type(), internal_error(), name, TYPE_CODE, TYPE_CODE_ENUM, TYPE_CODE_NAMESPACE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, value_namespace_elt(), and value_struct_elt_for_reference().
Referenced by evaluate_subexp_for_address(), evaluate_subexp_standard(), and value_struct_elt_for_reference().
| struct value* value_allocate_space_in_inferior | ( | int | ) |
Definition at line 185 of file valops.c.
References _, call_function_by_hand(), error(), find_function_in_inferior(), get_objfile_arch(), target_has_execution, value_from_longest(), and value_logical_not().
Referenced by allocate_space_in_inferior(), ensure_lval(), find_func_descr(), rust_evaluate_subexp(), rust_range(), and rust_subscript().
Definition at line 1604 of file valops.c.
References _, allocate_value(), language_defn::c_style_arrays, current_language, error(), lookup_array_range_type(), type_length_units(), value_contents_copy(), and value_enclosing_type().
Referenced by evaluate_subexp_standard(), and rust_evaluate_subexp().
Definition at line 2762 of file value.c.
References coerce_array(), gdbarch_addr_bits_remove(), gdbarch_integer_to_address(), gdbarch_integer_to_address_p(), get_type_arch(), TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_IS_REFERENCE, unpack_long(), value_address(), value_as_long(), value_contents(), and value_type().
Referenced by ada_evaluate_subexp(), ada_tag_name_from_tsd(), ada_value_slice_from_ptr(), ada_varobj_ind(), address_from_register(), c_get_string(), c_value_print(), call_site_to_target_addr(), default_read_var_value(), disassemble_command(), do_one_display(), dump_arc_instruction_command(), dwarf2_evaluate_loc_desc_full(), dwarf2_evaluate_property(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), evaluate_subexp_standard(), find_function_addr(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), get_addr_from_python(), gnuv2_value_rtti_type(), gnuv3_get_typename_from_type_info(), gnuv3_get_virtual_fn(), gnuv3_get_vtable(), gnuv3_print_vtable(), gnuv3_rtti_type(), hppa_linux_find_global_pointer(), hppabsd_find_global_pointer(), i386_mpx_set_bounds(), info_mach_region_command(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), linespec_expression_to_pc(), linux_infcall_mmap(), parse_and_eval_address(), parse_find_args(), parse_frame_specification(), ppc64_sysv_abi_push_dummy_call(), print_one_vtable(), printf_c_string(), printf_wide_c_string(), process_event_stop_test(), ptid_from_atcb_common(), read_atcb(), read_known_tasks_list(), rust_get_trait_object_pointer(), rust_val_print_str(), svr4_handle_solib_event(), valpy_lazy_string(), value_equal(), value_ind(), value_less(), value_ptradd(), watch_command_1(), and x_command().
Definition at line 2749 of file value.c.
References coerce_array(), unpack_long(), value_contents(), and value_type().
Referenced by ada_array_bound(), ada_array_length(), ada_evaluate_subexp(), ada_tag_value_at_base_address(), ada_type_of_array(), ada_value_binop(), ada_which_variant_applies(), dwarf_expr_context::add_piece(), aggregate_assign_from_choices(), allocate_space_in_inferior(), call_target_sbrk(), check_condition(), checkpoint_command(), desc_bounds(), dwarf2_evaluate_loc_desc_full(), ensure_lval(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_modula2(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), execute_stack_op(), find_func_descr(), find_function_addr(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_real(), gen_expr(), gen_repeat(), get_int_var_value(), get_internalvar_integer(), get_number_trailer(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_rtti_type(), ignore_command(), inferior_call_waitpid(), info_port_rights(), info_task(), init_array_element(), linespec_parse_variable(), linux_infcall_munmap(), lookup_child_selector(), lookup_objc_class(), m68hc11_frame_prev_register(), m88k_frame_prev_register(), mep_frame_prev_register(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), msp430_prev_register(), parse_and_eval_long(), parse_find_args(), parse_frame_specification(), pos_atr(), print_ada_task_info(), print_object_command(), printf_pointer(), ptid_from_atcb_common(), quit_command(), rank_one_type(), read_atcb(), read_fat_string_value(), rl78_prev_register(), rust_compute_range(), rust_evaluate_subexp(), rust_range(), rust_subscript(), rust_val_print_str(), s390_unwind_pseudo_register(), scalar_binop(), scan_discrim_bound(), set_internalvar_component(), task_command_1(), trace_variable_command(), ui_printf(), valpy_binop_throw(), valpy_getitem(), valpy_int(), valpy_long(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_assign(), value_cast(), value_complement(), value_concat(), value_dynamic_cast(), value_equal(), value_f90_subarray(), value_in(), value_less(), value_ptrdiff(), value_struct_elt_for_reference(), value_val_atr(), and vlscm_binop().
Definition at line 993 of file valops.c.
References _, check_typedef(), coerce_array(), coerce_ref(), current_target, deprecated_safe_get_selected_frame(), deprecated_value_modifiable(), error(), frame_find_by_id(), gdb_assert, gdbarch_convert_register_p(), gdbarch_value_to_register(), get_frame_arch(), get_frame_id(), get_frame_register_bytes(), get_type_arch(), HOST_CHAR_BIT, lval_computed, lval_internalvar, lval_internalvar_component, lval_memory, lval_register, modify_field(), NOT_AVAILABLE_ERROR, observer_notify_register_changed(), observer_notify_target_changed(), offset, OPTIMIZED_OUT_ERROR, value::parent, put_frame_register_bytes(), read_memory(), select_frame(), set_internalvar(), set_internalvar_component(), set_value_enclosing_type(), set_value_lazy(), set_value_pointed_to_offset(), throw_error(), type, TYPE_CODE, TYPE_CODE_PTR, TYPE_LENGTH, type_length_units(), TYPE_UNSIGNED, value_address(), value_as_long(), value_bitpos(), value_bitsize(), value_cast(), value_computed_funcs(), value_contents(), value_contents_raw(), value_copy(), value_enclosing_type(), VALUE_FRAME_ID, value_from_longest(), VALUE_INTERNALVAR, VALUE_LVAL, value_must_coerce_to_target(), value_of_internalvar(), value_offset(), value_parent(), value_pointed_to_offset(), VALUE_REGNUM, value_type(), lval_funcs::write, and write_memory_with_notification().
Referenced by ada_value_assign(), evaluate_subexp_opencl(), evaluate_subexp_standard(), lval_func_write(), rust_evaluate_subexp(), rust_range(), rust_subscript(), and varobj_set_value().
Definition at line 933 of file valops.c.
References get_value_at().
Referenced by ada_value_primitive_packed_val(), default_read_var_value(), dwarf2_evaluate_property(), dynamic_array_type(), generic_val_print_ref(), gnuv3_get_vtable(), pascal_val_print(), print_unpacked_pointer(), print_variable_at_address(), value_cast_structs(), and value_dynamic_cast().
Definition at line 944 of file valops.c.
References get_value_at().
Referenced by ada_evaluate_subexp(), ada_value_slice_from_ptr(), ada_value_struct_elt(), coerce_ref(), default_read_var_value(), do_examine(), do_search_struct_field(), dwarf2_evaluate_loc_desc_full(), dynamic_cast_check_1(), dynamic_cast_check_2(), evaluate_subexp_standard(), evaluate_var_msym_value(), frame_unwind_got_memory(), gnuv3_get_typeid(), gnuv3_get_vtable(), lsscm_safe_lazy_string_to_value(), m2_print_unbounded_array(), print_subexp_standard(), rust_evaluate_subexp(), rust_range(), rust_subscript(), stpy_convert_to_value(), value_cast(), value_cast_structs(), value_coerce_to_target(), value_dynamic_cast(), value_full_object(), value_ind(), and value_static_field().
| struct value* value_binop | ( | struct value * | arg1, |
| struct value * | arg2, | ||
| enum exp_opcode | op | ||
| ) |
Definition at line 1379 of file valarith.c.
References _, check_typedef(), error(), is_integral_type(), scalar_binop(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_DECFLOAT, TYPE_CODE_FLT, TYPE_VECTOR, value_type(), value_vector_widen(), and vector_binop().
Referenced by ada_delta(), ada_evaluate_subexp(), ada_scaling_factor(), ada_val_print_num(), ada_value_binop(), cast_from_fixed(), cast_to_fixed(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), valpy_binop_throw(), value_equal(), value_less(), value_neg(), vector_binop(), and vlscm_binop().
Definition at line 1714 of file valarith.c.
References extract_unsigned_integer(), gdbarch_bits_big_endian(), gdbarch_byte_order(), get_discrete_bounds(), get_type_arch(), TARGET_CHAR_BIT, and TYPE_INDEX_TYPE.
Referenced by m2_print_long_set(), m2_val_print(), pascal_val_print(), and value_in().
Definition at line 1117 of file value.c.
References value::bitpos.
Referenced by ada_value_assign(), ada_value_primitive_packed_val(), check_pieced_synthetic_pointer(), coerce_unspec_val_to_type(), indirect_pieced_value(), rw_pieced_value(), update_watchpoint(), value_assign(), value_assign_to_component(), value_fetch_lazy(), and watch_command_1().
| int value_bits_any_optimized_out | ( | const struct value * | value, |
| int | bit_offset, | ||
| int | bit_length | ||
| ) |
Definition at line 366 of file value.c.
References gdb_assert, value::lazy, and ranges_contain().
Referenced by c_val_print_array(), cp_print_value_fields_rtti(), dynamic_array_type(), unpack_value_field_as_long(), val_print_scalar_formatted(), valprint_check_validity(), and value_contents_copy_raw().
Definition at line 349 of file value.c.
References gdb_assert, value::lazy, offset, and ranges_contain().
Referenced by unpack_value_field_as_long(), and value_bytes_available().
Definition at line 1465 of file value.c.
References value::computed, value::location, value::lval, lval_computed, and offset.
Referenced by coerce_pieced_ref(), cp_print_value_fields(), generic_val_print_ref(), lval_func_check_synthetic_pointer(), pascal_object_print_value_fields(), valprint_check_validity(), and value_addr().
Definition at line 1128 of file value.c.
References value::bitsize.
Referenced by ada_value_assign(), check_pieced_synthetic_pointer(), coerce_unspec_val_to_type(), indirect_pieced_value(), rw_pieced_value(), update_watchpoint(), value_assign(), value_assign_to_component(), value_fetch_lazy(), and watch_command_1().
| struct value* value_bitstring_subscript | ( | struct type * | type, |
| struct value * | bitstring, | ||
| LONGEST | index | ||
| ) |
Definition at line 357 of file value.c.
References offset, TARGET_CHAR_BIT, and value_bits_available().
Referenced by c_val_print_array(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gnuv2_baseclass_offset(), list_arg_or_local(), val_print_scalar_formatted(), valprint_check_validity(), and value_contents_copy_raw().
Definition at line 351 of file valops.c.
References _, allocate_value(), language_defn::c_style_arrays, cast_into_complex(), check_typedef(), coerce_ref(), cplus_make_method_ptr(), create_array_type(), create_static_range_type(), current_language, deprecated_set_value_type(), error(), extract_unsigned_integer(), gdb_assert, gdbarch_addr_bit(), gdbarch_byte_order(), get_discrete_bounds(), get_type_arch(), HOST_CHAR_BIT, is_floating_type(), is_floating_value(), lval_memory, not_lval, set_value_enclosing_type(), set_value_pointed_to_offset(), target_float_convert(), type, TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_COMPLEX, TYPE_CODE_DECFLOAT, TYPE_CODE_ENUM, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHODPTR, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_INDEX_TYPE, TYPE_IS_REFERENCE, TYPE_LENGTH, TYPE_NAME, TYPE_TARGET_TYPE, TYPE_UNSIGNED, TYPE_VECTOR, value_address(), value_as_long(), value_at_lazy(), value_cast(), value_cast_pointers(), value_cast_structs(), value_coerce_array(), value_coerce_function(), value_contents(), value_contents_raw(), value_contents_writeable(), value_copy(), value_from_longest(), value_from_ulongest(), VALUE_LVAL, value_ref(), value_type(), value_zero(), and warning().
Referenced by aarch64_push_dummy_call(), ada_coerce_to_simple_array_ptr(), ada_evaluate_subexp(), ada_get_tsd_from_tag(), ada_promote_array_of_integrals(), ada_tag_value_at_base_address(), ada_val_print_num(), ada_value_assign(), ada_value_cast(), ada_value_ptr_subscript(), ada_value_slice(), adjust_value_for_child_access(), alpha_push_dummy_call(), binop_promote(), BP_MANIPULATION(), cast_from_fixed(), cast_to_fixed(), compute_exception(), cplus_describe_child(), desc_bounds(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_for_address(), evaluate_subexp_for_cast(), evaluate_subexp_modula2(), evaluate_subexp_standard(), evaluate_subexp_with_coercion(), dwarf_expr_context::execute_stack_op(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_get_virtual_fn(), gnuv3_method_ptr_to_value(), gnuv3_virtual_fn_field(), hppa64_push_dummy_call(), m88k_store_arguments(), opencl_value_cast(), printf_floating(), return_command(), rust_get_trait_object_pointer(), s390_unwind_pseudo_register(), sparc64_store_arguments(), thin_data_pntr(), unop_promote(), valpy_do_cast(), valpy_getitem(), value_arg_coerce(), value_assign(), value_assign_to_component(), value_cast(), value_dynamic_cast(), value_fn_field(), value_literal_complex(), value_reinterpret_cast(), value_vector_widen(), varobj_create(), vlscm_do_cast(), and xtensa_push_dummy_call().
Definition at line 306 of file valops.c.
References check_typedef(), coerce_ref(), deprecated_set_value_type(), gdb_assert, set_value_enclosing_type(), set_value_pointed_to_offset(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, value_addr(), value_cast_structs(), value_copy(), value_ind(), value_logical_not(), and value_type().
Referenced by ada_convert_actual(), evaluate_subexp_standard(), value_arg_coerce(), value_cast(), and value_struct_elt_for_reference().
Definition at line 1426 of file valops.c.
References _, check_typedef(), error(), lookup_pointer_type(), lval_memory, TYPE_TARGET_TYPE, value_address(), value_coerce_to_target(), value_from_pointer(), VALUE_LVAL, and value_type().
Referenced by coerce_array(), lookup_child_selector(), lookup_objc_class(), typecmp(), value_cast(), value_nsstring(), and value_subscript().
Definition at line 1446 of file valops.c.
References _, error(), lookup_pointer_type(), lval_memory, value_address(), value_from_pointer(), VALUE_LVAL, and value_type().
Referenced by coerce_array(), value_addr(), and value_cast().
Definition at line 1388 of file valops.c.
References allocate_space_in_inferior(), check_typedef(), TYPE_LENGTH, value_at_lazy(), value_contents(), value_must_coerce_to_target(), value_type(), and write_memory().
Referenced by value_addr(), value_arg_coerce(), and value_coerce_array().
Definition at line 1675 of file valarith.c.
References _, allocate_value(), check_typedef(), coerce_ref(), error(), get_array_bounds(), is_integral_type(), type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_LENGTH, TYPE_TARGET_TYPE, TYPE_VECTOR, value_as_long(), value_complement(), value_contents_all(), value_contents_writeable(), value_from_longest(), value_subscript(), and value_type().
Referenced by evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), rust_evaluate_subexp(), valpy_invert(), value_complement(), and vlscm_unop().
| void* value_computed_closure | ( | const struct value * | value | ) |
Definition at line 1509 of file value.c.
References value::computed, gdb_assert, value::location, value::lval, and lval_computed.
Referenced by check_pieced_synthetic_pointer(), coerce_pieced_ref(), copy_pieced_value_closure(), entry_data_value_coerce_ref(), entry_data_value_copy_closure(), entry_data_value_free_closure(), free_pieced_value_closure(), indirect_pieced_value(), lval_func_check_synthetic_pointer(), lval_func_copy_closure(), lval_func_free_closure(), lval_func_read(), lval_func_write(), and rw_pieced_value().
| const struct lval_funcs* value_computed_funcs | ( | const struct value * | ) |
Definition at line 1501 of file value.c.
References value::computed, gdb_assert, value::location, lval_computed, and value_lval_const().
Referenced by coerce_ref_if_computed(), value_assign(), value_fetch_lazy(), and value_ind().
Definition at line 653 of file valarith.c.
References _, check_typedef(), error(), longest_to_int(), TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_INT, TYPE_CODE_STRING, TYPE_LENGTH, TYPE_TARGET_TYPE, unpack_long(), value_as_long(), value_contents(), value_string(), and value_type().
Referenced by evaluate_subexp_standard().
Definition at line 1407 of file value.c.
References require_available(), require_not_optimized_out(), and value_contents_writeable().
Referenced by aarch64_push_dummy_call(), ada_convert_actual(), ada_val_print_num(), ada_value_assign(), ada_value_equal(), ada_value_primitive_field(), ada_value_primitive_packed_val(), alpha_push_dummy_call(), amd64_push_arguments(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_push_arguments(), amd64_windows_store_arg_in_reg(), arc_push_dummy_call(), arm_push_dummy_call(), avr_push_dummy_call(), bfin_push_dummy_call(), BP_MANIPULATION(), c_get_string(), cast_into_complex(), coerce_ref(), create_value(), cris_push_dummy_call(), dump_value_to_file(), ensure_lval(), evaluate_struct_tuple(), evaluate_subexp_standard(), dwarf_expr_context::fetch_address(), frame_unwind_register_value(), frv_push_dummy_call(), gdbscm_value_to_bytevector(), gdbscm_value_to_real(), gnuv3_method_ptr_to_value(), h8300_push_dummy_call(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), i387_print_float_info(), ia64_push_dummy_call(), indirect_pieced_value(), init_array_element(), iq2000_push_dummy_call(), is_floating_value(), lval_func_read(), lval_func_write(), m32c_push_dummy_call(), m32r_push_dummy_call(), m68hc11_push_dummy_call(), m88k_store_arguments(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mn10300_push_dummy_call(), mt_push_dummy_call(), nds32_push_dummy_call(), nios2_push_dummy_call(), or1k_push_dummy_call(), parse_find_args(), pass_in_v_or_stack(), pass_in_x(), pass_on_stack(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_abi_push_dummy_call(), print_fixed_point_type(), printf_floating(), push_large_arguments(), pyuw_sniffer(), pyuw_value_obj_to_pointer(), read_frame_register_unsigned(), return_command(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rust_evaluate_subexp(), rw_pieced_value(), s390_handle_arg(), score_push_dummy_call(), set_internalvar_component(), sh64_push_dummy_call(), sh_justify_value_in_reg(), sparc32_store_arguments(), sparc64_store_arguments(), spu_push_dummy_call(), store_regs(), tic6x_push_dummy_call(), tilegx_push_dummy_call(), to_fixed_variant_branch_type(), ui_printf(), v850_push_dummy_call(), valpy_float(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_as_long(), value_as_string(), value_assign(), value_assign_to_component(), value_cast(), value_coerce_to_target(), value_concat(), value_equal(), value_equal_contents(), value_fetch_lazy(), value_in(), value_literal_complex(), value_logical_not(), value_pos(), value_primitive_field(), value_strcmp(), xstormy16_push_dummy_call(), and xtensa_push_dummy_call().
Definition at line 1265 of file value.c.
References require_available(), require_not_optimized_out(), and value_contents_for_printing().
Referenced by ada_promote_array_of_integrals(), alpha_register_to_value(), regcache::dump(), dwarf2_evaluate_loc_desc_full(), evaluate_subexp_opencl(), dwarf_expr_context::execute_stack_op(), find_thread_by_handle(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), hppa_frame_prev_register_helper(), i386_darwin_push_dummy_call(), i386_push_dummy_call(), ia64_frame_prev_register(), info_frame_command(), m68k_push_dummy_call(), msp430_push_dummy_call(), print_gp_register_row(), rl78_push_dummy_call(), rw_pieced_value(), rx_frame_prev_register(), rx_push_dummy_call(), value_complement(), value_neg(), value_non_lval(), value_one(), value_vector_widen(), vax_store_arguments(), and vector_binop().
Definition at line 1168 of file value.c.
References allocate_value_contents(), and value::contents.
Referenced by siginfo_value_read(), siginfo_value_write(), value_contents_copy_raw(), value_copy(), value_fetch_lazy(), value_non_lval(), and value_repeat().
| void value_contents_copy | ( | struct value * | dst, |
| LONGEST | dst_offset, | ||
| struct value * | src, | ||
| LONGEST | src_offset, | ||
| LONGEST | length | ||
| ) |
Definition at line 1373 of file value.c.
References value::lazy, value_contents_copy_raw(), and value_fetch_lazy().
Referenced by dwarf2_evaluate_loc_desc_full(), read_frame_register_value(), value_array(), value_fetch_lazy(), value_from_component(), and value_slice().
| void value_contents_copy_raw | ( | struct value * | dst, |
| LONGEST | dst_offset, | ||
| struct value * | src, | ||
| LONGEST | src_offset, | ||
| LONGEST | length | ||
| ) |
Definition at line 1326 of file value.c.
References gdb_assert, gdbarch_addressable_memory_unit_size(), get_value_arch(), HOST_CHAR_BIT, value::lazy, TARGET_CHAR_BIT, value_bits_any_optimized_out(), value_bytes_available(), value_contents_all_raw(), and value_ranges_copy_adjusted().
Referenced by coerce_unspec_val_to_type(), value_contents_copy(), and value_primitive_field().
| bool value_contents_eq | ( | const struct value * | val1, |
| LONGEST | offset1, | ||
| const struct value * | val2, | ||
| LONGEST | offset2, | ||
| LONGEST | length | ||
| ) |
Definition at line 874 of file value.c.
References offset1, TARGET_CHAR_BIT, and value_contents_bits_eq().
Referenced by read_frame_arg(), register_changed_p(), val_print_array_elements(), and val_print_packed_array_elements().
Definition at line 1250 of file value.c.
References value::contents, value::lazy, and value_fetch_lazy().
Referenced by ada_val_print_1(), c_val_print(), cp_print_value(), cp_print_value_fields(), default_print_one_register_info(), do_search_struct_field(), dynamic_array_type(), extract_bitfield_from_watchpoint_value(), f77_print_array_1(), f_val_print(), find_method_list(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_complex(), generic_val_print_enum(), generic_val_print_flags(), generic_val_print_float(), generic_val_print_ptr(), generic_val_print_ref(), is_unique_ancestor(), m2_print_unbounded_array(), m2_val_print(), pascal_object_print_static_field(), pascal_val_print(), print_go_string(), rust_val_print(), search_struct_method(), val_print_scalar_formatted(), value_contents_all(), value_dynamic_cast(), and value_fetch_lazy().
Definition at line 1258 of file value.c.
References value::contents, gdb_assert, and value::lazy.
Referenced by f77_print_array_1(), and get_value_addr_contents().
Definition at line 1158 of file value.c.
References allocate_value_contents(), value::contents, value::embedded_offset, gdbarch_addressable_memory_unit_size(), and get_value_arch().
Referenced by aarch64_pseudo_read_value(), ada_convert_actual(), ada_value_assign(), ada_value_binop(), amd64_pseudo_register_read_value(), cast_into_complex(), convert_value_from_python(), regcache::cooked_read(), regcache::cooked_read_value(), default_read_var_value(), do_search_struct_field(), dwarf2_evaluate_loc_desc_full(), elf_gnu_ifunc_resolver_return_stop(), evaluate_subexp_c(), evaluate_subexp_standard(), frame_unwind_got_bytes(), gdbscm_value_to_real(), get_call_return_value(), get_return_value(), i386_pseudo_register_read_into_value(), init_array_element(), lval_func_read(), put_frame_register_bytes(), rw_pieced_value(), scalar_binop(), sdata_make_value(), tlb_value_read(), unpack_value_bitfield(), value_assign(), value_cast(), value_contents_writeable(), value_cstring(), value_force_lval(), value_from_contents(), value_from_longest(), value_from_pointer(), value_from_register(), value_from_ulongest(), value_literal_complex(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), value_of_dwarf_reg_entry(), value_string(), vlscm_convert_number(), and vlscm_convert_typed_number().
Definition at line 1416 of file value.c.
References value::lazy, value_contents_raw(), and value_fetch_lazy().
Referenced by ada_promote_array_of_integrals(), ada_value_primitive_packed_val(), create_value(), dummy_frame_prev_register(), dwarf2_compute_name(), evaluate_struct_tuple(), evaluate_subexp_opencl(), frame_unwind_got_address(), frame_unwind_got_constant(), lval_func_write(), make_array_descriptor(), opencl_logical_not(), put_frame_register_bytes(), set_internalvar_component(), value_assign_to_component(), value_cast(), value_complement(), value_contents(), value_neg(), value_one(), value_struct_elt_for_reference(), value_vector_widen(), vector_binop(), and vector_relop().
Definition at line 1757 of file value.c.
References allocate_value(), allocate_value_lazy(), value::bitpos, value::bitsize, value::computed, lval_funcs::copy_closure, value::embedded_offset, value::lazy, value::location, lval_computed, value::modifiable, value::offset, value::parent, value::pointed_to_offset, set_value_parent(), value::type, TYPE_LENGTH, value_contents_all_raw(), value_embedded_offset(), value_enclosing_type(), value_lazy(), VALUE_LVAL, and VEC_copy.
Referenced by access_value_history(), ada_coerce_to_simple_array_ptr(), ada_value_assign(), ada_value_ptr_subscript(), bpstats::bpstats(), convert_value_from_python(), do_search_struct_field(), gdbpy_get_varobj_pretty_printer(), make_cv_value(), set_internalvar(), thin_data_pntr(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), value_full_object(), value_of_internalvar(), and vlscm_convert_typed_value_from_scheme().
Definition at line 1652 of file valops.c.
References allocate_value(), current_language, lookup_array_range_type(), language_defn::string_lower_bound, TYPE_LENGTH, and value_contents_raw().
Referenced by convert_value_from_python(), evaluate_subexp_c(), value_of_internalvar(), and vlscm_convert_typed_value_from_scheme().
Definition at line 724 of file valops.c.
References _, check_typedef(), class_types_same_p(), dynamic_cast_check_1(), dynamic_cast_check_2(), error(), is_ancestor(), is_public_ancestor(), is_unique_ancestor(), not_lval, TYPE_CODE, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_CODE_VOID, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, value_addr(), value_address(), value_as_long(), value_at(), value_at_lazy(), value_cast(), value_contents_for_printing(), value_embedded_offset(), value_ind(), value_ref(), value_rtti_type(), value_type(), and value_zero().
Referenced by evaluate_subexp_standard(), valpy_do_cast(), and vlscm_do_cast().
Definition at line 1477 of file value.c.
References value::embedded_offset.
Referenced by ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ref(), ada_value_print(), c_value_print(), coerce_pieced_ref(), common_val_print(), compare_value_and_voffset(), cp_print_static_field(), default_print_one_register_info(), do_search_struct_field(), dynamic_array_type(), eq_value_and_voffset(), evaluate_funcall(), f77_print_array_1(), f_val_print(), gnuv3_get_typeid(), gnuv3_rtti_type(), hash_value_and_voffset(), is_unique_ancestor(), list_arg_or_local(), m2_print_unbounded_array(), mips_print_register(), output_register(), pascal_object_print_static_field(), print_field_values(), print_formatted(), print_one_vtable(), rust_evaluate_subexp(), val_print_packed_array_elements(), value_addr(), value_cast_structs(), value_copy(), value_dynamic_cast(), value_fetch_lazy(), value_from_component(), value_full_object(), value_non_lval(), value_primitive_field(), and value_print().
Definition at line 1175 of file value.c.
References value::enclosing_type.
Referenced by ada_array_bound(), ada_array_length(), ada_value_print(), ada_value_ptr_subscript(), bfin_push_dummy_call(), c_value_print(), coerce_ref(), cp_print_static_field(), do_search_struct_field(), gnuv3_rtti_type(), i386_darwin_push_dummy_call(), i386_push_dummy_call(), m68k_push_dummy_call(), make_cv_value(), rl78_push_dummy_call(), rw_pieced_value(), set_value_enclosing_type(), tilegx_push_dummy_call(), value_actual_type(), value_addr(), value_array(), value_assign(), value_copy(), value_entirely_covered_by_range_vector(), value_fetch_lazy(), value_full_object(), value_ind(), value_non_lval(), value_primitive_field(), value_repeat(), vax_store_arguments(), and xstormy16_push_dummy_call().
| int value_entirely_available | ( | struct value * | value | ) |
Definition at line 374 of file value.c.
References value::lazy, value_fetch_lazy(), and VEC_empty.
Referenced by alpha_register_to_value(), c_value_print(), regcache::cooked_read(), default_print_one_register_info(), regcache::dump(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), i387_print_float_info(), info_frame_command(), output_register(), print_gp_register_row(), read_frame_register_unsigned(), sh64_do_register(), and store_regs().
| int value_entirely_optimized_out | ( | struct value * | value | ) |
Definition at line 419 of file value.c.
References value_entirely_covered_by_range_vector().
Referenced by cp_print_static_field(), pascal_object_print_static_field(), and value_check_printable().
| int value_entirely_unavailable | ( | struct value * | value | ) |
Definition at line 413 of file value.c.
References value_entirely_covered_by_range_vector().
Referenced by list_arg_or_local(), and value_check_printable().
Definition at line 1474 of file valarith.c.
References _, check_typedef(), coerce_array(), error(), is_floating_value(), is_integral_type(), longest_to_int(), target_float_compare(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRING, TYPE_LENGTH, value_args_as_target_float(), value_as_address(), value_as_long(), value_binop(), value_contents(), value_strcmp(), and value_type().
Referenced by ada_evaluate_subexp(), ada_value_equal(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), gdbscm_value_to_real(), print_fixed_point_type(), scalar_relop(), valpy_richcompare_throw(), value_vector_widen(), vlscm_equal_p_value_smob(), and vlscm_rich_compare().
Definition at line 1549 of file valarith.c.
References check_typedef(), TYPE_CODE, TYPE_LENGTH, value_contents(), and value_type().
Referenced by watchpoint_check().
| void value_fetch_lazy | ( | struct value * | val | ) |
Definition at line 3860 of file value.c.
References _, allocate_value_contents(), check_typedef(), fprintf_unfiltered(), frame_debug, frame_find_by_id(), frame_id_eq(), frame_relative_level(), frame_unwind_register_value(), gdb_assert, gdb_stdlog, gdbarch_convert_register_p(), get_frame_arch(), internal_error(), lval_computed, lval_memory, lval_register, paddress(), value::parent, read(), lval_funcs::read, read_value_memory(), register_size(), regnum, set_value_lazy(), TYPE_LENGTH, type_length_units(), unpack_value_bitfield(), user_reg_map_regnum_to_name(), val_print_optimized_out(), value_address(), value_bitpos(), value_bitsize(), value_computed_funcs(), value_contents(), value_contents_all_raw(), value_contents_copy(), value_contents_for_printing(), value_embedded_offset(), value_enclosing_type(), value_fetch_lazy(), VALUE_FRAME_ID, value_free_to_mark(), value_lazy(), VALUE_LVAL, value_mark(), VALUE_NEXT_FRAME_ID, value_offset(), value_optimized_out(), value_parent(), VALUE_REGNUM, value_stack(), value_type(), and VEC_empty.
Referenced by ada_evaluate_subexp_for_cast(), ada_val_print_ref(), common_val_print(), evaluate_subexp_for_cast(), fetch_subexp_value(), gdbscm_value_fetch_lazy_x(), get_value_at(), gnuv2_virtual_fn_field(), install_new_value(), read_frame_arg(), record_latest_value(), return_command(), set_internalvar(), valpy_fetch_lazy(), value_contents_copy(), value_contents_for_printing(), value_contents_writeable(), value_entirely_available(), value_entirely_covered_by_range_vector(), value_fetch_lazy(), value_of_internalvar(), value_of_register(), value_optimized_out(), and value_primitive_field().
Definition at line 3152 of file value.c.
References value_primitive_field(), and value_type().
Referenced by ada_varobj_struct_elt(), compute_vtable_size(), f_val_print(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_get_typeid(), gnuv3_get_virtual_fn(), gnuv3_rtti_type(), print_one_vtable(), ptid_from_atcb_common(), read_atcb(), read_fat_string_value(), read_known_tasks_list(), rust_compute_range(), rust_get_trait_object_pointer(), and rust_subscript().
| struct value* value_field_bitfield | ( | struct type * | type, |
| int | fieldno, | ||
| const gdb_byte * | valaddr, | ||
| LONGEST | embedded_offset, | ||
| const struct value * | val | ||
| ) |
Definition at line 3381 of file value.c.
References allocate_value(), value::bitpos, value::bitsize, value::embedded_offset, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_TYPE, and unpack_value_bitfield().
Referenced by cp_print_value_fields(), and pascal_object_print_value_fields().
| struct value* value_fn_field | ( | struct value ** | arg1p, |
| struct fn_field * | f, | ||
| int | j, | ||
| struct type * | type, | ||
| LONGEST | offset | ||
| ) |
Definition at line 3165 of file value.c.
References allocate_value(), BLOCK_START, BMSYMBOL_VALUE_ADDRESS, current_target, gdb_assert, gdbarch_convert_from_func_ptr_addr(), get_objfile_arch(), lookup_bound_minimal_symbol(), lookup_pointer_type(), lookup_symbol(), lval_memory, memset(), bound_minimal_symbol::minsym, bound_minimal_symbol::objfile, set_value_address(), block_symbol::symbol, SYMBOL_BLOCK_VALUE, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_TYPE, value_addr(), value_cast(), value_ind(), VALUE_LVAL, value_type(), and VAR_DOMAIN.
Referenced by find_overload_match(), and search_struct_method().
Definition at line 1839 of file value.c.
References value::address, gdb_assert, value::location, value::lval, lval_memory, not_lval, TYPE_LENGTH, value_contents_raw(), VALUE_LVAL, value_type(), and write_memory().
Referenced by get_call_return_value().
| void value_free | ( | struct value * | val | ) |
Definition at line 1608 of file value.c.
References value::computed, value::contents, lval_funcs::free_closure, free_xmethod_worker(), gdb_assert, value::location, lval_computed, lval_xcallable, value::parent, value::reference_count, value_free(), VALUE_LVAL, VEC_free, xfree(), and value::xm_worker.
Referenced by address_from_register(), alpha_register_to_value(), bpstat_clear_actions(), breakpoint_init_inferior(), clear_internalvar(), do_examine(), regcache::dump(), dwarf2_compute_name(), entry_data_value_free_closure(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), free_all_values(), free_pieced_value_closure(), free_value_chain(), get_frame_register_bytes(), info_frame_command(), install_new_value(), invalidate_bp_value_on_memory_change(), lval_func_free_closure(), m68hc11_frame_prev_register(), m88k_frame_prev_register(), mep_frame_prev_register(), value_deleter::operator()(), put_frame_register_bytes(), register_changed_p(), set_value_parent(), update_watchpoint(), valpy_dealloc(), value_free(), value_free_to_mark(), varobj_clear_saved_item(), vlscm_free_value_smob(), bpstats::~bpstats(), varobj::~varobj(), and watchpoint::~watchpoint().
| void value_free_to_mark | ( | const struct value * | mark | ) |
Definition at line 1641 of file value.c.
References all_values, value::next, value::released, and value_free().
Referenced by ada_template_to_fixed_record_type_1(), ada_val_print_gnat_array(), assign_component(), bpstat_check_breakpoint_conditions(), breakpoint_cond_eval(), regcache::cooked_read(), do_value_free_to_mark(), execute_control_command_1(), scoped_value_mark::free_to_mark(), handle_inferior_event(), info_port_rights(), lval_func_write(), should_stop_exception(), to_record_with_fixed_variant_part(), val_print_packed_array_elements(), value_fetch_lazy(), vector_binop(), watch_command_1(), and watchpoint_check().
Definition at line 3699 of file value.c.
References allocate_value(), allocate_value_lazy(), lval_memory, offset, value::offset, set_value_component_location(), type_length_units(), value_contents_copy(), value_embedded_offset(), value_lazy(), VALUE_LVAL, and value_offset().
Referenced by gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), and value_subscripted_rvalue().
Definition at line 3623 of file value.c.
References allocate_value(), value::contents, TYPE_LENGTH, and value_contents_raw().
Referenced by ada_val_print_num(), dwarf2_evaluate_property(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), fetch_const_value_from_synthetic_pointer(), print_subexp_standard(), printf_floating(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_pos(), and vlscm_convert_bytevector().
Definition at line 3599 of file value.c.
References value::address, allocate_value_lazy(), check_typedef(), lval_memory, PROP_CONST, resolve_dynamic_type(), set_value_address(), TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, value_from_contents(), and VALUE_LVAL.
Referenced by ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value_create(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ptr(), amd64_windows_adjust_args_passed_by_pointer(), cp_print_value(), cp_print_value_fields_rtti(), dwarf_expr_context::execute_stack_op(), f77_print_array_1(), gdbscm_make_lazy_value(), get_call_return_value(), get_value_at(), read_atcb(), read_known_tasks_list(), search_struct_method(), to_record_with_fixed_variant_part(), and value_tag_from_contents_and_address().
| struct value* value_from_contents_and_address_unresolved | ( | struct type * | , |
| const gdb_byte * | , | ||
| CORE_ADDR | |||
| ) |
Definition at line 3578 of file value.c.
References value::address, allocate_value_lazy(), lval_memory, set_value_address(), value_from_contents(), and VALUE_LVAL.
Referenced by ada_template_to_fixed_record_type_1(), and ada_which_variant_applies().
| struct value* value_from_history_ref | ( | const char * | , |
| const char ** | |||
| ) |
Definition at line 3637 of file value.c.
References access_value_history().
Referenced by get_number_trailer().
Definition at line 3534 of file value.c.
References allocate_value(), pack_long(), and value_contents_raw().
Referenced by ada_array_length(), ada_delta(), ada_evaluate_subexp(), ada_scaling_factor(), ada_value_ptr_subscript(), ada_varobj_simple_array_elt(), assign_component(), call_target_sbrk(), checkpoint_command(), compute_probe_arg(), const_expr(), const_var_ref(), convert_value_from_python(), desc_bounds(), dwarf2_compute_name(), elf_gnu_ifunc_resolve_addr(), enum_constant_from_type(), eval_skip_value(), evaluate_funcall(), evaluate_subexp_c(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), gdbscm_value_to_real(), inferior_call_waitpid(), inferior_id_make_value(), isvoid_internal_fn(), linux_infcall_mmap(), maybe_print_array_index(), opencl_logical_not(), opencl_relop(), print_scalar_formatted(), print_subexp_standard(), rust_evaluate_subexp(), rust_range(), rust_subscript(), s390_unwind_pseudo_register(), thin_data_pntr(), thread_num_make_value_helper(), valpy_binop_throw(), value_allocate_space_in_inferior(), value_assign(), value_cast(), value_complement(), value_neg(), value_nsstring(), value_of_internalvar(), value_one(), value_pos_atr(), value_struct_elt_for_reference(), value_val_atr(), value_x_unop(), vlscm_binop(), vlscm_convert_number(), vlscm_convert_typed_number(), vlscm_convert_typed_value_from_scheme(), and vlscm_unop().
Definition at line 3560 of file value.c.
References allocate_value(), check_typedef(), store_typed_address(), and value_contents_raw().
Referenced by aarch64_push_dummy_call(), ada_val_print_ref(), address_of_variable(), alpha_push_dummy_call(), c_value_print(), call_function_by_hand_dummy(), compile_object_run(), const_var_ref(), do_module_cleanup(), dwarf2_evaluate_loc_desc_full(), evaluate_funcall(), evaluate_subexp_standard(), find_command(), find_function_in_inferior(), flush_ea_cache(), gnuv3_method_ptr_to_value(), inferior_call_waitpid(), linux_infcall_mmap(), linux_infcall_munmap(), lsscm_safe_lazy_string_to_value(), s390_unwind_pseudo_register(), set_next_address(), sparc32_store_arguments(), sparc64_store_arguments(), stpy_convert_to_value(), value_addr(), value_coerce_array(), value_coerce_function(), value_ptradd(), value_struct_elt_for_reference(), and x_command().
| struct value* value_from_register | ( | struct type * | type, |
| int | regnum, | ||
| struct frame_info * | frame | ||
| ) |
Definition at line 902 of file findvar.c.
References allocate_value(), check_typedef(), gdbarch_convert_register_p(), gdbarch_register_to_value(), gdbarch_value_from_register(), get_frame_arch(), get_frame_id(), get_next_frame_sentinel_okay(), lval_register, mark_value_bytes_optimized_out(), mark_value_bytes_unavailable(), read_frame_register_value(), regnum, TYPE_LENGTH, value_contents_raw(), VALUE_LVAL, VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by default_read_var_value(), dwarf2_evaluate_loc_desc_full(), dwarf_expr_executor::get_reg_value(), dwarf_evaluate_loc_desc::get_reg_value(), set_gdbarch_value_from_register(), and store_regs().
Definition at line 3546 of file value.c.
References allocate_value(), pack_unsigned_long(), and value_contents_raw().
Referenced by convert_value_from_python(), dwarf_expr_context::execute_stack_op(), gdbscm_value_to_real(), linux_infcall_mmap(), linux_infcall_munmap(), dwarf_expr_context::push_address(), and value_cast().
Definition at line 3662 of file valops.c.
References _, deprecated_set_value_type(), lval_memory, set_value_embedded_offset(), set_value_enclosing_type(), TYPE_LENGTH, TYPE_NAME, value_address(), value_at_lazy(), value_copy(), value_embedded_offset(), value_enclosing_type(), VALUE_LVAL, value_rtti_type(), value_type(), and warning().
Referenced by c_value_print(), gnuv3_print_vtable(), readjust_indirect_value_type(), and value_cast_structs().
Definition at line 1736 of file valarith.c.
References _, check_typedef(), error(), TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_INT, TYPE_CODE_RANGE, TYPE_CODE_SET, TYPE_TARGET_TYPE, value_as_long(), value_bit_index(), value_contents(), and value_type().
| void value_incref | ( | struct value * | val | ) |
Definition at line 1598 of file value.c.
References value::reference_count.
Referenced by allocate_lval_closure(), allocate_piece_closure(), dwarf2_evaluate_loc_desc_full(), entry_data_value_coerce_ref(), entry_data_value_copy_closure(), install_new_value(), release_value_or_incref(), and set_value_parent().
Definition at line 1542 of file valops.c.
References _, check_typedef(), coerce_array(), error(), find_function_addr(), value::funcs, lval_funcs::indirect, lval_computed, readjust_indirect_value_type(), TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_PTR, TYPE_TARGET_TYPE, value_as_address(), value_at_lazy(), value_computed_funcs(), value_enclosing_type(), VALUE_LVAL, value_pointed_to_offset(), and value_type().
Referenced by ada_array_bound(), ada_array_length(), ada_coerce_to_simple_array(), ada_evaluate_subexp(), ada_get_tsd_from_tag(), ada_tag_value_at_base_address(), ada_value_ind(), ada_value_ptr_subscript(), ada_value_struct_elt(), adjust_value_for_child_access(), c_describe_child(), c_value_print(), compute_exception(), decode_constrained_packed_array(), do_module_cleanup(), evaluate_funcall(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_standard(), find_overload_match(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_method_ptr_to_value(), gnuv3_print_vtable(), info_mach_region_command(), read_fat_string_value(), rust_evaluate_funcall(), rust_evaluate_subexp(), valpy_dereference(), valpy_get_dynamic_type(), valpy_referenced_value(), value_cast_pointers(), value_dynamic_cast(), value_find_oload_method_list(), value_fn_field(), value_reinterpret_cast(), value_rtti_indirect_type(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_subscript(), and value_user_defined_cpp_op().
| int value_initialized | ( | const struct value * | ) |
Definition at line 3846 of file value.c.
References value::initialized.
Referenced by c_value_print().
| char* value_internal_function_name | ( | struct value * | ) |
Definition at line 2520 of file value.c.
References gdb_assert, get_internalvar_function(), lval_internalvar, internal_function::name, VALUE_INTERNALVAR, and VALUE_LVAL.
Referenced by value_check_printable().
| int value_lazy | ( | const struct value * | ) |
Definition at line 1383 of file value.c.
References value::lazy.
Referenced by ada_evaluate_subexp_for_cast(), ada_val_print_ref(), ada_value_primitive_packed_val(), address_of_variable(), c_value_of_variable(), can_use_hardware_watchpoint(), coerce_unspec_val_to_type(), common_val_print(), evaluate_subexp_for_cast(), fetch_subexp_value(), frame_unwind_register_value(), gdbscm_value_fetch_lazy_x(), gdbscm_value_lazy_p(), gnuv2_virtual_fn_field(), install_new_value(), num_memory_accesses(), read_frame_arg(), record_latest_value(), return_command(), set_internalvar(), update_watchpoint(), valpy_fetch_lazy(), valpy_get_is_lazy(), value_copy(), value_fetch_lazy(), value_from_component(), value_of_internalvar(), value_primitive_field(), value_slice(), varobj_set_display_format(), varobj_set_value(), and x_command().
Definition at line 1566 of file valarith.c.
References _, check_typedef(), coerce_array(), error(), is_floating_value(), is_integral_type(), longest_to_int(), target_float_compare(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRING, TYPE_LENGTH, value_args_as_target_float(), value_as_address(), value_as_long(), value_binop(), value_strcmp(), and value_type().
Referenced by ada_evaluate_subexp(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), scalar_relop(), valpy_absolute(), valpy_richcompare_throw(), vlscm_rich_compare(), and vlscm_unop().
Definition at line 3838 of file valops.c.
References allocate_value(), TYPE_LENGTH, TYPE_TARGET_TYPE, value_cast(), value_contents(), and value_contents_raw().
Referenced by cast_into_complex(), and evaluate_subexp_standard().
| int value_logical_not | ( | struct value * | arg1 | ) |
Definition at line 1416 of file valarith.c.
References check_typedef(), coerce_array(), is_floating_value(), target_float_is_zero(), TYPE_LENGTH, value_contents(), and value_type().
Referenced by evaluate_subexp_opencl(), evaluate_subexp_standard(), opencl_logical_not(), rust_evaluate_subexp(), scalar_relop(), value_allocate_space_in_inferior(), value_cast_pointers(), value_true(), and vlscm_unop().
Definition at line 1523 of file value.c.
References value::lval.
Referenced by coerce_ref_if_computed(), get_value_addr_contents(), gnuv3_get_typeid(), val_print_optimized_out(), valprint_check_validity(), and value_computed_funcs().
| struct value* value_mark | ( | void | ) |
Definition at line 1589 of file value.c.
References all_values.
Referenced by ada_template_to_fixed_record_type_1(), ada_val_print_gnat_array(), assign_component(), bpstat_check_breakpoint_conditions(), breakpoint_cond_eval(), regcache::cooked_read(), execute_control_command_1(), fetch_subexp_value(), gdbscm_make_lazy_value(), gdbscm_make_value(), gdbscm_parse_and_eval(), gdbscm_value_address(), gdbscm_value_call(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_field(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_lazy_string(), handle_inferior_event(), info_port_rights(), lval_func_write(), should_stop_exception(), to_record_with_fixed_variant_part(), val_print_packed_array_elements(), value_fetch_lazy(), vector_binop(), vlscm_binop(), vlscm_do_cast(), vlscm_rich_compare(), vlscm_unop(), watch_command_1(), watchpoint_check(), and yyparse().
| int value_must_coerce_to_target | ( | struct value * | arg1 | ) |
Definition at line 1360 of file valops.c.
References check_typedef(), lval_internalvar, lval_xcallable, not_lval, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRING, TYPE_VECTOR, VALUE_LVAL, and value_type().
Referenced by evaluate_subexp_for_address(), value_assign(), and value_coerce_to_target().
Definition at line 1640 of file valarith.c.
References _, allocate_value(), check_typedef(), coerce_ref(), error(), get_array_bounds(), is_floating_type(), is_integral_type(), type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_LENGTH, TYPE_TARGET_TYPE, TYPE_VECTOR, value_binop(), value_contents_all(), value_contents_writeable(), value_from_longest(), value_neg(), value_subscript(), and value_type().
Referenced by ada_evaluate_subexp(), const_expr(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), valpy_negative(), value_neg(), and vlscm_unop().
Definition at line 1089 of file value.c.
References value::next.
Referenced by can_use_hardware_watchpoint(), free_value_chain(), num_memory_accesses(), and update_watchpoint().
Definition at line 1819 of file value.c.
References allocate_value(), not_lval, set_value_embedded_offset(), set_value_pointed_to_offset(), value::type, TYPE_LENGTH, value_contents_all(), value_contents_all_raw(), value_embedded_offset(), value_enclosing_type(), VALUE_LVAL, and value_pointed_to_offset().
Referenced by evaluate_subexp(), and evaluate_subexp_standard().
| struct value* value_of_internalvar | ( | struct gdbarch * | gdbarch, |
| struct internalvar * | var | ||
| ) |
Definition at line 2227 of file value.c.
References _, allocate_value(), internalvar_data::data, find_trace_state_variable(), internalvar_data::functions, internalvar_data::integer, internal_error(), INTERNALVAR_FUNCTION, INTERNALVAR_INTEGER, INTERNALVAR_MAKE_VALUE, INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lval, lval_computed, lval_internalvar, internalvar_funcs::make_value, internalvar_data::make_value, internalvar::name, trace_state_variable::number, internalvar_data::string, target_get_trace_state_variable_value, internalvar_data::type, internalvar::u, internalvar_data::val, trace_state_variable::value, internalvar_data::value, value_copy(), value_cstring(), value_fetch_lazy(), value_from_longest(), VALUE_INTERNALVAR, trace_state_variable::value_known, value_lazy(), and VALUE_LVAL.
Referenced by evaluate_subexp_standard(), show_convenience(), value_assign(), and yyparse().
| struct value* value_of_register | ( | int | regnum, |
| struct frame_info * | frame | ||
| ) |
Definition at line 263 of file findvar.c.
References gdbarch_num_pseudo_regs(), gdbarch_num_regs(), get_frame_arch(), regnum, value_fetch_lazy(), value_of_register_lazy(), and value_of_user_reg().
Referenced by default_print_registers_info(), evaluate_subexp_standard(), frapy_read_register(), gdbscm_frame_read_register(), output_register(), pending_framepy_read_register(), value_of_aarch64_user_reg(), value_of_arm_user_reg(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), value_of_builtin_frame_ps_reg(), value_of_builtin_frame_sp_reg(), value_of_mips_user_reg(), and value_of_nds32_reg().
| struct value* value_of_register_lazy | ( | struct frame_info * | frame, |
| int | regnum | ||
| ) |
Definition at line 284 of file findvar.c.
References allocate_value_lazy(), frame_id_p(), gdb_assert, gdbarch_num_pseudo_regs(), gdbarch_num_regs(), get_frame_arch(), get_frame_id(), get_next_frame_sentinel_okay(), lval_register, register_type(), regnum, VALUE_LVAL, VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by frame_unwind_got_register(), and value_of_register().
| struct value* value_of_this | ( | const struct language_defn * | lang | ) |
Definition at line 3732 of file valops.c.
References _, block_symbol::block, error(), get_frame_block(), get_selected_frame(), language_defn::la_name_of_this, lookup_language_this(), read_var_value(), and block_symbol::symbol.
Referenced by evaluate_subexp_standard(), and value_of_this_silent().
| struct value* value_of_this_silent | ( | const struct language_defn * | lang | ) |
Definition at line 3757 of file valops.c.
References CATCH, END_CATCH, RETURN_MASK_ERROR, TRY, and value_of_this().
Referenced by value_struct_elt_for_reference(), and yyparse().
Definition at line 1296 of file valops.c.
References _, get_selected_frame(), read_var_value(), and symbol_read_needs_frame().
Referenced by address_of_variable(), evaluate_funcall(), evaluate_subexp_standard(), evaluate_var_value(), find_function_in_inferior(), get_var_value(), info_common_command_for_block(), typy_template_argument(), value_maybe_namespace_elt(), value_static_field(), and value_user_defined_cpp_op().
| struct value* value_of_xmethod | ( | struct xmethod_worker * | ) |
Definition at line 2703 of file value.c.
References allocate_value(), value::location, value::lval, lval_xcallable, value::modifiable, target_gdbarch(), xmethod_worker::value, and value::xm_worker.
Referenced by find_overload_match().
Definition at line 1106 of file value.c.
References value::offset.
Referenced by check_pieced_synthetic_pointer(), extract_bitfield_from_watchpoint_value(), find_method_list(), gnuv2_virtual_fn_field(), indirect_pieced_value(), lval_func_read(), lval_func_write(), read_frame_register_value(), rw_pieced_value(), siginfo_value_read(), siginfo_value_write(), value_assign(), value_fetch_lazy(), value_from_component(), value_primitive_field(), and value_slice().
Definition at line 858 of file valops.c.
References _, allocate_value(), check_typedef(), error(), gdb_assert, get_array_bounds(), is_floating_type(), is_integral_type(), not_lval, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_LENGTH, TYPE_TARGET_TYPE, TYPE_VECTOR, value_contents_all(), value_contents_writeable(), value_from_longest(), VALUE_LVAL, and value_one().
Referenced by evaluate_subexp_standard(), and value_one().
| int value_optimized_out | ( | struct value * | value | ) |
Definition at line 1424 of file value.c.
References CATCH, END_CATCH, value::lazy, RETURN_MASK_ERROR, TRY, value_fetch_lazy(), and VEC_empty.
Referenced by address_from_register(), alpha_register_to_value(), default_print_one_register_info(), regcache::dump(), dwarf2_evaluate_loc_desc_full(), dwarf2_evaluate_property(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), frame_unwind_register_value(), gdbscm_value_optimized_out_p(), get_frame_register_bytes(), info_frame_command(), insert_exception_resume_breakpoint(), print_gp_register_row(), read_frame_arg(), read_frame_register_unsigned(), s390_unwind_pseudo_register(), sh64_do_register(), store_regs(), valpy_get_is_optimized_out(), value_actual_type(), and value_fetch_lazy().
Definition at line 1139 of file value.c.
References value::parent.
Referenced by rw_pieced_value(), value_assign(), and value_fetch_lazy().
Definition at line 1489 of file value.c.
References value::pointed_to_offset.
Referenced by readjust_indirect_value_type(), value_assign(), value_ind(), and value_non_lval().
Definition at line 1622 of file valarith.c.
References _, check_typedef(), coerce_ref(), error(), is_floating_value(), is_integral_type(), type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_VECTOR, value_contents(), value_from_contents(), and value_type().
Referenced by evaluate_subexp_standard().
| struct value* value_primitive_field | ( | struct value * | arg1, |
| LONGEST | offset, | ||
| int | fieldno, | ||
| struct type * | arg_type | ||
| ) |
Definition at line 3028 of file value.c.
References allocate_value(), allocate_value_lazy(), baseclass_offset(), BASETYPE_VIA_VIRTUAL, value::bitpos, value::bitsize, check_typedef(), value::embedded_offset, gdb_assert, gdbarch_addressable_memory_unit_size(), get_value_arch(), HOST_CHAR_BIT, lval_register, offset, value::offset, PROP_CONST, set_value_component_location(), set_value_parent(), type, value::type, TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_KIND, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_TYPE, TYPE_LENGTH, type_length_units(), TYPE_N_BASECLASSES, value_address(), value_contents(), value_contents_copy_raw(), value_embedded_offset(), value_enclosing_type(), value_fetch_lazy(), value_lazy(), VALUE_LVAL, and value_offset().
Referenced by aarch64_push_dummy_call(), ada_value_primitive_field(), do_search_struct_field(), gnuv2_virtual_fn_field(), rust_evaluate_subexp(), value_field(), value_struct_element_index(), and value_struct_elt_bitpos().
| void value_print | ( | struct value * | val, |
| struct ui_file * | stream, | ||
| const struct value_print_options * | options | ||
| ) |
Definition at line 1163 of file valprint.c.
References apply_ext_lang_val_pretty_printer(), current_language, LA_VALUE_PRINT, value_print_options::raw, value_address(), value_check_printable(), value_embedded_offset(), and value_type().
Referenced by dwarf2_compute_name(), info_common_command_for_block(), print_formatted(), print_return_value_1(), print_scalar_formatted(), print_subexp_standard(), show_convenience(), show_values(), unwind_infopy_str(), and watchpoint_value_print().
| void value_print_array_elements | ( | struct value * | val, |
| struct ui_file * | stream, | ||
| int | format, | ||
| enum val_prettyformat | pretty | ||
| ) |
Definition at line 80 of file valarith.c.
References check_typedef(), coerce_array(), find_size_for_pointer_math(), lval_internalvar, set_value_component_location(), value_as_address(), value_from_pointer(), VALUE_LVAL, and value_type().
Referenced by ada_get_tsd_from_tag(), ada_tag_value_at_base_address(), ada_value_ptr_subscript(), evaluate_subexp_modula2(), evaluate_subexp_standard(), gnuv2_virtual_fn_field(), gnuv3_method_ptr_to_value(), valpy_binop_throw(), value_subscript(), and vlscm_binop().
Definition at line 101 of file valarith.c.
References _, check_typedef(), coerce_array(), error(), gdb_assert, TYPE_CODE, TYPE_CODE_PTR, TYPE_LENGTH, type_length_units(), TYPE_TARGET_TYPE, value_as_long(), value_type(), and warning().
Referenced by evaluate_subexp_standard(), valpy_binop_throw(), and vlscm_binop().
Definition at line 1545 of file value.c.
References value::address, value::location, value::lval, and lval_memory.
Definition at line 1521 of file valops.c.
References check_typedef(), deprecated_set_value_type(), gdb_assert, lookup_reference_type(), TYPE_CODE, TYPE_CODE_REF, TYPE_CODE_RVALUE_REF, value_addr(), and value_type().
Referenced by ada_evaluate_subexp(), c_value_print(), print_stack_unless_memory_error(), typecmp(), valpy_reference_value(), value_arg_coerce(), value_cast(), value_dynamic_cast(), and value_reinterpret_cast().
Definition at line 577 of file valops.c.
References _, check_typedef(), coerce_array(), error(), lookup_pointer_type(), type, TYPE_CODE, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHODPTR, TYPE_CODE_PTR, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, value_addr(), value_cast(), value_ind(), value_ref(), and value_type().
Referenced by evaluate_subexp_standard(), valpy_do_cast(), and vlscm_do_cast().
Definition at line 1733 of file value.c.
References all_values, value::next, and value::released.
Referenced by fetch_subexp_value(), and yyparse().
Definition at line 1274 of file valops.c.
References _, allocate_repeat_value(), error(), lval_memory, read_value_memory(), set_value_address(), type_length_units(), value_address(), value_contents_all_raw(), value_enclosing_type(), VALUE_LVAL, and value_stack().
Referenced by evaluate_subexp_standard().
Definition at line 3595 of file valops.c.
References _, CATCH, check_typedef(), coerce_ref(), END_CATCH, internal_error(), lookup_pointer_type(), lookup_reference_type(), make_cv_type(), MEMORY_ERROR, RETURN_MASK_ERROR, throw_exception(), TRY, type, TYPE_CODE, TYPE_CODE_PTR, TYPE_CONST, TYPE_IS_REFERENCE, TYPE_VOLATILE, value_ind(), value_rtti_type(), and value_type().
Referenced by c_value_print(), evaluate_subexp_standard(), value_actual_type(), and whatis_exp().
Definition at line 3778 of file valops.c.
References _, allocate_value(), allocate_value_lazy(), check_typedef(), create_array_type(), create_static_range_type(), error(), get_discrete_bounds(), type::length, lval_memory, offset, set_value_component_location(), set_value_offset(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRING, TYPE_INDEX_TYPE, TYPE_LENGTH, type_length_units(), TYPE_TARGET_TYPE, value_contents_copy(), value_lazy(), VALUE_LVAL, value_offset(), and value_type().
Referenced by ada_value_slice(), evaluate_subexp_standard(), and value_f90_subarray().
| int value_stack | ( | const struct value * | ) |
Definition at line 1395 of file value.c.
References value::stack.
Referenced by value_fetch_lazy(), and value_repeat().
Definition at line 2961 of file value.c.
References allocate_optimized_out_value(), block_symbol::block, BMSYMBOL_VALUE_ADDRESS, FIELD_LOC_KIND_PHYSADDR, FIELD_LOC_KIND_PHYSNAME, gdb_assert_not_reached, lookup_minimal_symbol(), lookup_symbol(), bound_minimal_symbol::minsym, block_symbol::symbol, TYPE_FIELD_LOC_KIND, TYPE_FIELD_STATIC_PHYSADDR, TYPE_FIELD_STATIC_PHYSNAME, TYPE_FIELD_TYPE, value_at_lazy(), value_of_variable(), and VAR_DOMAIN.
Referenced by cp_print_value_fields(), do_search_struct_field(), value_struct_element_index(), and value_struct_elt_for_reference().
Definition at line 1675 of file valops.c.
References allocate_value(), current_language, lookup_string_range_type(), language_defn::string_lower_bound, TYPE_LENGTH, and value_contents_raw().
Referenced by evaluate_subexp_standard(), lookup_child_selector(), lookup_objc_class(), value_concat(), and value_nsstring().
| struct value* value_struct_elt | ( | struct value ** | argp, |
| struct value ** | args, | ||
| const char * | name, | ||
| int * | static_memfuncp, | ||
| const char * | err | ||
| ) |
Definition at line 2133 of file valops.c.
References _, check_typedef(), coerce_array(), err, error(), name, NOT_FOUND_ERROR, search_struct_field(), search_struct_method(), throw_error(), TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_IS_REFERENCE, TYPE_NFN_FIELDS, value_ind(), and value_type().
Referenced by desc_bounds(), desc_data(), desc_one_bound(), evaluate_funcall(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), gdbscm_value_field(), rust_evaluate_subexp(), rust_range(), rust_subscript(), rust_val_print_str(), valpy_getitem(), and value_user_defined_op().
| struct value* value_struct_elt_bitpos | ( | struct value ** | argp, |
| int | bitpos, | ||
| struct type * | field_type, | ||
| const char * | err | ||
| ) |
Definition at line 2222 of file valops.c.
References _, check_typedef(), coerce_array(), err, error(), field_is_static(), TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_FIELD, TYPE_FIELD_BITPOS, TYPE_FIELD_TYPE, TYPE_IS_REFERENCE, TYPE_N_BASECLASSES, TYPE_NFIELDS, types_equal(), value_ind(), value_primitive_field(), and value_type().
Referenced by valpy_getitem().
Definition at line 142 of file valarith.c.
References _, language_defn::c_style_arrays, check_typedef(), coerce_ref(), current_language, error(), get_discrete_bounds(), lval_memory, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRING, TYPE_INDEX_TYPE, value_coerce_array(), value_ind(), VALUE_LVAL, value_ptradd(), value_subscripted_rvalue(), value_type(), and warning().
Referenced by ada_promote_array_of_integrals(), ada_value_subscript(), c_describe_child(), create_value(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), f77_print_array_1(), gdbscm_value_subscript(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_get_virtual_fn(), lval_func_write(), opencl_logical_not(), print_one_vtable(), read_atcb(), rust_subscript(), valpy_getitem(), value_complement(), value_neg(), vector_binop(), and vector_relop().
Definition at line 187 of file valarith.c.
References _, check_typedef(), error(), is_dynamic_type(), resolve_dynamic_type(), TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, type_length_units(), type_not_allocated(), type_not_associated(), TYPE_TARGET_TYPE, value_address(), value_from_component(), and value_type().
Referenced by evaluate_subexp_standard(), and value_subscript().
Definition at line 1095 of file value.c.
References value::type.
Referenced by aarch64_pseudo_read_value(), aarch64_push_dummy_call(), ada_args_match(), ada_array_bound(), ada_array_length(), ada_coerce_ref(), ada_coerce_to_simple_array(), ada_coerce_to_simple_array_ptr(), ada_convert_actual(), ada_evaluate_subexp(), ada_exception_message_1(), ada_get_decoded_value(), ada_promote_array_of_integrals(), ada_tag_name(), ada_tag_type(), ada_tag_value_at_base_address(), ada_template_to_fixed_record_type_1(), ada_to_fixed_type_1(), ada_to_fixed_value(), ada_type_of_array(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ref(), ada_value_assign(), ada_value_binop(), ada_value_cast(), ada_value_equal(), ada_value_ind(), ada_value_is_changeable_p(), ada_value_ptr_subscript(), ada_value_slice(), ada_value_struct_elt(), ada_value_subscript(), ada_varobj_adjust_for_child_access(), ada_varobj_decode_var(), ada_varobj_ind(), ada_varobj_simple_array_elt(), ada_varobj_struct_elt(), address_of_variable(), aggregate_assign_from_choices(), alpha_push_dummy_call(), amd64_pseudo_register_read_value(), amd64_push_arguments(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_push_arguments(), amd64_windows_store_arg_in_reg(), arc_push_dummy_call(), arm_push_dummy_call(), arm_return_value(), assign_aggregate(), assign_component(), avr_push_dummy_call(), bfin_push_dummy_call(), binop_promote(), binop_user_defined_p(), BP_MANIPULATION(), bpfinishpy_pre_stop_hook(), c_get_string(), c_value_print(), call_function_by_hand_dummy(), call_xmethod(), can_use_hardware_watchpoint(), cast_from_fixed(), cast_into_complex(), cast_to_fixed(), check_condition(), coerce_array(), coerce_for_assign(), coerce_pieced_ref(), coerce_ref(), coerce_ref_if_computed(), coerce_unspec_val_to_type(), common_val_print(), compute_vtable_size(), convert_value_from_python(), regcache::cooked_read_value(), cp_print_value(), cp_print_value_fields_rtti(), create_value(), cris_push_dummy_call(), decode_constrained_packed_array(), default_print_one_register_info(), desc_bounds(), desc_data(), do_search_struct_field(), dump_value_to_file(), dwarf2_evaluate_loc_desc_full(), dynamic_array_type(), elf_gnu_ifunc_resolver_return_stop(), ensure_lval(), entry_data_value_coerce_ref(), eval_call(), evaluate_funcall(), evaluate_struct_tuple(), evaluate_subexp_for_address(), evaluate_subexp_for_sizeof(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), dwarf_expr_context::execute_stack_op(), extract_bitfield_from_watchpoint_value(), f77_print_array_1(), f_val_print(), dwarf_expr_context::fetch_address(), find_function_addr(), find_oload_champ_namespace_loop(), find_overload_match(), find_thread_by_handle(), frame_register_unwind(), frv_push_dummy_call(), gdbarch_push_dummy_code(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbscm_value_call(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_type(), gen_expr(), gen_repeat(), get_internalvar_integer(), get_number_trailer(), get_return_value(), get_value_arch(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_get_type_from_type_info(), gnuv3_get_typeid(), gnuv3_get_typename_from_type_info(), gnuv3_get_virtual_fn(), gnuv3_method_ptr_to_value(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), h8300_push_dummy_call(), h8300_use_struct_convention(), h8300h_use_struct_convention(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), i386_pseudo_register_read_into_value(), ia64_push_dummy_call(), indirect_pieced_value(), info_mach_region_command(), init_array_element(), install_new_value(), iq2000_push_dummy_call(), is_floating_value(), is_unique_ancestor(), isvoid_internal_fn(), linespec_parse_variable(), list_arg_or_local(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_print_unbounded_array(), m32c_push_dummy_call(), m32r_push_dummy_call(), m68hc11_push_dummy_call(), m68k_push_dummy_call(), m88k_store_arguments(), maintenance_print_type(), make_array_descriptor(), make_cv_value(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_print_register(), mn10300_push_dummy_call(), msp430_push_dummy_call(), mt_push_dummy_call(), nds32_push_dummy_call(), new_call_thread_fsm(), nios2_push_dummy_call(), opencl_component_ref(), opencl_logical_not(), opencl_relop(), opencl_value_cast(), or1k_push_dummy_call(), output_command_const(), output_register(), parse_expression_for_completion(), parse_find_args(), pascal_object_print_static_field(), pascal_value_print(), pos_atr(), possible_user_operator_p(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_return_value(), ppc_sysv_abi_broken_return_value(), ppc_sysv_abi_push_dummy_call(), ppc_sysv_abi_return_value(), print_command_1(), print_fixed_point_type(), print_formatted(), print_frame_arg(), print_one_vtable(), print_value(), print_variable_or_computed(), printf_floating(), printf_wide_c_string(), push_dummy_code(), push_large_arguments(), py_print_single_arg(), py_print_type(), py_print_value(), pyuw_sniffer(), pyuw_value_obj_to_pointer(), rank_function(), rank_one_type(), read_atcb(), read_fat_string_value(), read_frame_arg(), read_frame_register_value(), resolve_subexp(), result_type_of_xmethod(), return_command(), rl78_push_dummy_call(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_get_trait_object_pointer(), rust_range(), rust_subscript(), rust_val_print_str(), rw_pieced_value(), rx_push_dummy_call(), s390_handle_arg(), s390_push_dummy_call(), scalar_binop(), scan_discrim_bound(), score_push_dummy_call(), set_internalvar(), set_internalvar_component(), set_value_component_location(), sh64_push_dummy_call(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_return_value_fpu(), sh_return_value_nofpu(), sh_stack_allocsize(), siginfo_value_read(), siginfo_value_write(), sparc32_push_dummy_code(), sparc32_store_arguments(), sparc64_store_arguments(), spu_push_dummy_call(), spu_return_value(), struct_return_convention(), thin_data_pntr(), tic6x_push_dummy_call(), tlb_value_read(), to_fixed_variant_branch_type(), to_record_with_fixed_variant_part(), typecmp(), ui_printf(), unop_promote(), unop_user_defined_p(), unpack_value_bitfield(), unwind_infopy_add_saved_register(), unwrap_value(), update_watchpoint(), using_struct_return(), v850_push_dummy_call(), val_print_packed_array_elements(), valpy_absolute(), valpy_binop_throw(), valpy_call(), valpy_float(), valpy_get_dynamic_type(), valpy_get_type(), valpy_getitem(), valpy_int(), valpy_lazy_string(), valpy_long(), valpy_nonzero(), valpy_referenced_value(), value_actual_type(), value_addr(), value_address(), value_arg_coerce(), value_args_as_target_float(), value_as_address(), value_as_long(), value_assign(), value_assign_to_component(), value_binop(), value_cast(), value_cast_pointers(), value_cast_structs(), value_check_printable(), value_coerce_array(), value_coerce_function(), value_coerce_to_target(), value_complement(), value_concat(), value_dynamic_cast(), value_equal(), value_equal_contents(), value_f90_subarray(), value_fetch_lazy(), value_field(), value_find_oload_method_list(), value_fn_field(), value_force_lval(), value_full_object(), value_has_field(), value_in(), value_ind(), value_less(), value_logical_not(), value_must_coerce_to_target(), value_neg(), value_of_root(), value_pos(), value_print(), value_ptradd(), value_ptrdiff(), value_ref(), value_reinterpret_cast(), value_rtti_indirect_type(), value_slice(), value_strcmp(), value_struct_element_index(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_subscript(), value_subscript_packed(), value_subscripted_rvalue(), value_val_atr(), value_vector_widen(), value_x_binop(), value_x_unop(), varobj_create(), varobj_get_value_type(), varobj_update(), varobj_value_get_print_value(), vector_binop(), vector_relop(), vlscm_binop(), vlscm_convert_number(), vlscm_convert_typed_number(), vlscm_unop(), watch_command_1(), whatis_exp(), x_command(), xtensa_push_dummy_call(), and yyparse().
Definition at line 1289 of file valarith.c.
References _, allocate_value(), check_typedef(), error(), gdb_assert, get_array_bounds(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_LENGTH, TYPE_TARGET_TYPE, TYPE_VECTOR, value_cast(), value_contents_all(), value_contents_writeable(), value_equal(), and value_type().
Referenced by opencl_value_cast(), and value_binop().
| struct value* value_x_binop | ( | struct value * | arg1, |
| struct value * | arg2, | ||
| enum exp_opcode | op, | ||
| enum exp_opcode | otherop, | ||
| enum noside | noside | ||
| ) |
Definition at line 341 of file valarith.c.
References _, call_function_by_hand(), call_xmethod(), check_typedef(), coerce_ref(), error(), EVAL_AVOID_SIDE_EFFECTS, gdb_assert, NOT_FOUND_ERROR, result_type_of_xmethod(), throw_error(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_XMETHOD, TYPE_TARGET_TYPE, value_addr(), VALUE_LVAL, value_type(), value_user_defined_op(), and value_zero().
Referenced by evaluate_subexp_standard(), and valpy_binop_throw().
| struct value* value_x_unop | ( | struct value * | arg1, |
| enum exp_opcode | op, | ||
| enum noside | noside | ||
| ) |
Definition at line 521 of file valarith.c.
References _, call_function_by_hand(), call_xmethod(), check_typedef(), coerce_ref(), error(), EVAL_AVOID_SIDE_EFFECTS, gdb_assert, get_type_arch(), NOT_FOUND_ERROR, result_type_of_xmethod(), throw_error(), TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_XMETHOD, TYPE_TARGET_TYPE, value_addr(), value_from_longest(), VALUE_LVAL, value_type(), value_user_defined_op(), and value_zero().
Referenced by evaluate_funcall(), evaluate_subexp_for_address(), and evaluate_subexp_standard().
Definition at line 847 of file valops.c.
References allocate_value(), lval_computed, not_lval, and VALUE_LVAL.
Referenced by ada_evaluate_subexp(), ada_evaluate_subexp_for_cast(), cast_into_complex(), create_value(), dummy_frame_prev_register(), eval_call(), evaluate_funcall(), evaluate_subexp_for_address(), evaluate_subexp_for_cast(), evaluate_subexp_modula2(), evaluate_subexp_opencl(), evaluate_subexp_standard(), evaluate_var_msym_value(), evaluate_var_value(), dwarf_expr_context::execute_stack_op(), frame_unwind_got_address(), frame_unwind_got_bytes(), frame_unwind_got_constant(), symbol_needs_eval_context::get_reg_value(), rust_evaluate_funcall(), rust_evaluate_subexp(), rust_range(), rust_subscript(), valpy_absolute(), value_cast(), value_cast_structs(), value_dynamic_cast(), value_x_binop(), value_x_unop(), and vlscm_unop().
1.8.14