GDB (xrefs)
|
#include "frame.h"
#include "extension.h"
#include "gdbsupport/gdb_ref_ptr.h"
#include "gmp-utils.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
Go to the source code of this file.
Classes | |
struct | range |
struct | value_ref_policy |
struct | value |
struct | lval_funcs |
class | scoped_value_mark |
struct | internalvar_funcs |
struct | scoped_array_length_limiting |
Namespaces | |
namespace | expr |
Macros | |
#define | VALUE_INTERNALVAR(val) (*((val)->deprecated_internalvar_hack ())) |
#define | VALUE_NEXT_FRAME_ID(val) (*((val)->deprecated_next_frame_id_hack ())) |
#define | VALUE_REGNUM(val) (*((val)->deprecated_regnum_hack ())) |
Typedefs | |
typedef gdb::ref_ptr< struct value, value_ref_policy > | value_ref_ptr |
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 type * | value_actual_type (struct value *value, int resolve_simple_types, int *real_type_found) |
void | error_value_optimized_out (void) |
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, struct value *original_val, CORE_ADDR original_value_address) |
struct value * | coerce_ref (struct value *value) |
struct value * | coerce_array (struct value *value) |
void | read_value_memory (struct value *val, LONGEST bit_offset, bool 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) |
gdb_mpz | value_as_mpz (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) |
LONGEST | unpack_bits_as_long (struct type *field_type, const gdb_byte *valaddr, LONGEST bitpos, LONGEST bitsize) |
int | unpack_value_field_as_long (struct type *type, const gdb_byte *valaddr, LONGEST embedded_offset, int fieldno, const struct value *val, LONGEST *result) |
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_host_double (struct type *type, double d) |
struct value * | value_from_history_ref (const char *, const char **) |
struct value * | value_from_component (struct value *, struct type *, LONGEST) |
struct value * | value_from_mpz (struct type *type, const gdb_mpz &v) |
struct value * | value_at (struct type *type, CORE_ADDR addr) |
struct value * | value_at_lazy (struct type *type, CORE_ADDR addr, frame_info_ptr frame=nullptr) |
struct value * | value_at_non_lval (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, frame_info_ptr frame=nullptr) |
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, frame_info_ptr frame) |
struct value * | value_from_register (struct type *type, int regnum, frame_info_ptr frame) |
CORE_ADDR | address_from_register (int regnum, frame_info_ptr 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, frame_info_ptr frame) |
struct value * | value_of_register_lazy (frame_info_ptr 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, frame_info_ptr frame) |
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 gdb_byte *ptr, ssize_t count, struct type *char_type) |
struct value * | value_cstring (const char *ptr, ssize_t count, struct type *char_type) |
struct value * | value_string (const gdb_byte *ptr, ssize_t count, struct type *char_type) |
struct value * | value_string (const char *ptr, ssize_t count, struct type *char_type) |
struct value * | value_array (int lowbound, gdb::array_view< 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) |
bool | 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, gdb::optional< gdb::array_view< 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 (gdb::array_view< value * > args, 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 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_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_to_array (struct value *val) |
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_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) |
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) |
void | fetch_subexp_value (struct expression *exp, expr::operation *op, struct value **valp, struct value **resultp, std::vector< value_ref_ptr > *val_chain, bool preserve_errors) |
struct value * | parse_and_eval (const char *exp, parser_flags flags=0) |
struct value * | parse_to_comma_and_eval (const char **expp) |
struct type * | parse_and_eval_type (const 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) |
ULONGEST | value_history_count () |
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) |
bool | value_logical_not (struct value *arg1) |
static bool | value_true (struct value *val) |
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) |
value_ref_ptr | release_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) |
std::vector< value_ref_ptr > | value_release_to_mark (const struct value *mark) |
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, frame_info_ptr frame, struct ui_file *stream, int indent) |
void | typedef_print (struct type *type, struct symbol *news, struct ui_file *stream) |
const char * | internalvar_name (const struct internalvar *var) |
void | preserve_values (struct objfile *) |
struct value * | make_cv_value (int, int, struct value *) |
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 * | value_real_part (struct value *value) |
struct value * | value_imaginary_part (struct value *value) |
struct value * | find_function_in_inferior (const char *, struct objfile **) |
struct value * | value_allocate_space_in_inferior (int) |
void | add_internal_function (const char *name, const char *doc, internal_function_fn handler, void *cookie) |
void | add_internal_function (gdb::unique_xmalloc_ptr< char > &&name, gdb::unique_xmalloc_ptr< 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) |
const char * | value_internal_function_name (struct value *) |
void | finalize_values () |
gdb_mpq | value_to_gdb_mpq (struct value *value) |
bool | exceeds_max_value_size (ULONGEST length) |
Variables | |
bool | overload_resolution |
#define VALUE_INTERNALVAR | ( | val | ) | (*((val)->deprecated_internalvar_hack ())) |
Definition at line 953 of file value.h.
Referenced by call_internal_function(), set_internalvar(), value_assign(), value_internal_function_name(), and value_of_internalvar().
#define VALUE_NEXT_FRAME_ID | ( | val | ) | (*((val)->deprecated_next_frame_id_hack ())) |
Definition at line 959 of file value.h.
Referenced by address_of_variable(), default_value_from_register(), value::fetch_lazy_register(), sentinel_frame_prev_register(), value_assign(), value_from_register(), and value_of_register_lazy().
#define VALUE_REGNUM | ( | val | ) | (*((val)->deprecated_regnum_hack ())) |
Definition at line 962 of file value.h.
Referenced by aarch64_pseudo_read_value(), address_of_variable(), amd64_pseudo_register_read_value(), readable_regcache::cooked_read_value(), default_value_from_register(), value::fetch_lazy_register(), frame_register_unwind(), frame_unwind_register_value(), i386_pseudo_register_read_value(), info_frame_command_core(), read_frame_register_unsigned(), read_frame_register_value(), unwind_infopy_add_saved_register(), value_assign(), value_from_register(), and value_of_register_lazy().
typedef gdb::ref_ptr<struct value, value_ref_policy> value_ref_ptr |
enum oload_search_type |
|
extern |
Definition at line 1709 of file value.c.
References value_history.
Referenced by dump_arc_instruction_command(), expr::last_operation::evaluate(), gdbpy_history(), gdbscm_history_ref(), linespec_parse_variable(), process_print_command_args(), show_values(), value_from_history_ref(), and whatis_exp().
|
extern |
Definition at line 2360 of file value.c.
References do_add_internal_function(), and name.
Referenced by fnpy_init().
|
extern |
Definition at line 2369 of file value.c.
References do_add_internal_function(), cmd_list_element::doc_allocated, name, and cmd_list_element::name_allocated.
|
extern |
Definition at line 883 of file findvar.c.
References builtin_type::builtin_data_ptr, builtin_type(), error_value_optimized_out(), gdbarch_convert_register_p(), gdbarch_num_cooked_regs(), gdbarch_register_to_value(), gdbarch_value_from_register(), get_frame_arch(), type::length(), null_frame_id, value::optimized_out(), read_frame_register_value(), regnum, release_value(), unpack_long(), value, and value_as_address().
Referenced by read_addr_from_reg().
Definition at line 1397 of file valops.c.
References value::address, type::code(), frame_find_by_id(), gdbarch_register_name(), get_frame_arch(), value::lazy(), lookup_pointer_type(), value::lval(), lval_memory, lval_register, general_symbol_info::print_name(), symbol::type(), value::type(), value_from_pointer(), VALUE_NEXT_FRAME_ID, value_of_variable(), and VALUE_REGNUM.
Referenced by expr::var_value_operation::evaluate_for_address(), expr::rust_structop::evaluate_funcall(), and expr::var_value_operation::evaluate_with_coercion().
Definition at line 966 of file value.c.
References value::allocate(), current_language, lookup_array_range_type(), and language_defn::string_lower_bound().
Referenced by eval_op_repeat(), and value_repeat().
|
extern |
|
extern |
Definition at line 255 of file eval.c.
References builtin_type::builtin_double, builtin_type::builtin_int, builtin_type::builtin_int128, builtin_type::builtin_long, builtin_type::builtin_long_double, builtin_type::builtin_long_long, builtin_type(), builtin_type::builtin_uint128, builtin_type::builtin_unsigned_int, builtin_type::builtin_unsigned_long, builtin_type::builtin_unsigned_long_long, check_typedef(), type::code(), coerce_ref(), gdbarch_double_bit(), is_fixed_point_type(), is_integral_type(), type::is_unsigned(), language_asm, language_c, language_cplus, language_objc, language_opencl, type::length(), lookup_signed_typename(), lookup_unsigned_typename(), and value_cast().
Referenced by ada_binop_exp(), ada_binop_in_bounds(), ada_binop_minmax(), ada_equal_binop(), ada_mult_binop(), ada_unop_in_range(), eval_binop_assign_modify(), eval_op_add(), eval_op_binary(), eval_op_equal(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_op_notequal(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_sub(), eval_ternop_in_range(), and expr::ada_binop_addsub_operation::evaluate().
|
extern |
Definition at line 279 of file valarith.c.
References check_typedef(), type::code(), type::target_type(), and TYPE_IS_REFERENCE.
Referenced by binop_user_defined_p(), and gen_expr_binop_rest().
|
extern |
Definition at line 304 of file valarith.c.
References binop_types_user_defined_p(), and value::type().
Referenced by eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_binary(), eval_op_equal(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_op_notequal(), eval_op_sub(), eval_op_subscript(), expr::logical_and_operation::evaluate(), expr::logical_or_operation::evaluate(), 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 2318 of file value.c.
References internal_function::cookie, func, get_internalvar_function(), internal_function::handler, lval_internalvar, and VALUE_INTERNALVAR.
Referenced by expr::ada_funcall_operation::evaluate(), and evaluate_subexp_do_call().
|
extern |
Definition at line 2265 of file value.c.
References INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, and xfree().
Referenced by clear_exit_convenience_vars(), exit_status_set_internal_vars(), gdbpy_set_convenience_variable(), set_internalvar(), set_internalvar_function(), set_internalvar_integer(), set_internalvar_string(), set_traceframe_context(), ada_catchpoint::should_stop_exception(), and x_command().
Definition at line 3776 of file value.c.
References language_defn::c_style_arrays_p(), check_typedef(), type::code(), coerce_ref(), current_language, type::is_vector(), value::type(), value_coerce_array(), and value_coerce_function().
Referenced by expr::unop_ind_base_operation::evaluate_for_address(), value_as_address(), value_as_long(), value_as_mpz(), 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 3752 of file value.c.
References check_typedef(), coerce_ref_if_computed(), value::contents(), value::enclosing_type(), readjust_indirect_value_type(), type::target_type(), value::type(), TYPE_IS_REFERENCE, unpack_pointer(), and value_at_lazy().
Referenced by ada_coerce_ref(), ada_ternop_slice(), ada_value_binop(), ada_value_print_inner(), ada_value_struct_elt(), binop_promote(), coerce_array(), decode_constrained_packed_array(), eval_multi_subscript(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_subscript(), expr::ada_funcall_operation::evaluate(), find_overload_match(), gdbscm_value_dynamic_type(), 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 3707 of file value.c.
References check_typedef(), lval_funcs::coerce_ref, value::computed_funcs(), value::funcs, value::lval(), lval_computed, value::type(), and TYPE_IS_REFERENCE.
Referenced by ada_val_print_ref(), coerce_ref(), generic_val_print_ref(), and valprint_check_validity().
|
extern |
Definition at line 1033 of file valprint.c.
References ada_to_fixed_value(), apply_ext_lang_val_pretty_printer(), check_typedef(), value::fetch_lazy(), fprintf_styled(), gdb_printf(), type::is_stub(), language_ada, value::lazy(), metadata_style, value_print_options::prettyformat, value_print_options::prettyformat_structs, QUIT, value_print_options::raw, cli_style_option::style(), value_print_options::summary, value::type(), Val_no_prettyformat, Val_prettyformat, Val_prettyformat_default, val_print_check_max_depth(), val_print_scalar_or_string_type_p(), val_print_scalar_type_p(), and valprint_check_validity().
Referenced by ada_val_print_ref(), ada_value_print(), ada_value_print_inner(), ada_value_print_num(), ada_value_print_ptr(), ada_varobj_get_value_image(), c_value_print(), common_val_print_checked(), cp_print_static_field(), cp_print_value_fields(), default_print_one_register_info(), gdbscm_value_print(), generic_val_print_ref(), list_arg_or_local(), mi_cmd_data_evaluate_expression(), output_register(), pascal_object_print_static_field(), pascal_object_print_value_fields(), ppscm_print_children(), ppscm_print_string_repr(), print_children(), rust_language::print_enum(), print_field_values(), print_string_repr(), print_unpacked_pointer(), print_variable_at_address(), print_variable_or_computed(), fortran_array_printer_impl::process_element(), py_print_value(), riscv_print_one_register_info(), val_print_packed_array_elements(), rust_language::val_print_struct(), valpy_format_string(), valpy_str(), pascal_language::value_print(), rust_language::value_print(), value_print_array_elements(), f_language::value_print_inner(), pascal_language::value_print_inner(), value_print_scalar_formatted(), varobj_value_get_print_value(), and vlscm_print_value_smob().
|
extern |
Definition at line 1981 of file value.c.
References INTERNALVAR_MAKE_VALUE, and internalvar::kind.
Referenced by expr::internalvar_operation::do_generate_ax().
|
extern |
Definition at line 1931 of file value.c.
References completion_tracker::add_completion(), internalvars, name, and internalvar::name.
Referenced by condition_completer().
|
extern |
Definition at line 1950 of file value.c.
References internalvars, and name.
Referenced by create_internalvar_type_lazy(), init_main(), lookup_internalvar(), and parser_state::push_dollar().
|
extern |
Definition at line 1966 of file value.c.
References create_internalvar(), value::funcs, INTERNALVAR_MAKE_VALUE, internalvar::kind, and name.
Referenced by _initialize_windows_tdep(), and initialize_inferiors().
|
extern |
Definition at line 752 of file findvar.c.
References value::allocate(), frame_find_by_id(), get_frame_id(), get_next_frame_sentinel_okay(), type::length(), lval_register, null_frame_id, register_size(), regnum, value::set_lval(), value::set_offset(), type_byte_order(), value, VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by s390_value_from_register().
|
extern |
Definition at line 3366 of file valops.c.
References name, and type_name_or_error().
Referenced by yyparse().
|
extern |
Definition at line 1074 of file value.c.
Referenced by address_from_register(), and value::require_not_optimized_out().
|
extern |
Definition at line 569 of file eval.c.
References EVAL_AVOID_SIDE_EFFECTS, find_minsym_type_and_address(), type::is_gnu_ifunc(), not_lval, value_at_lazy(), and value::zero().
Referenced by eval_op_var_msym_value(), expr::var_msym_value_operation::evaluate_for_address(), expr::ada_var_msym_value_operation::evaluate_for_cast(), expr::var_msym_value_operation::evaluate_for_cast(), and expr::var_msym_value_operation::evaluate_for_sizeof().
Definition at line 520 of file eval.c.
References EVAL_AVOID_SIDE_EFFECTS, not_lval, symbol::type(), value_of_variable(), and value::zero().
Referenced by eval_op_func_static_var(), expr::var_value_operation::evaluate(), expr::adl_func_operation::evaluate(), expr::ada_var_value_operation::evaluate_for_cast(), expr::var_value_operation::evaluate_for_cast(), and expr::var_value_operation::evaluate_funcall().
|
extern |
Definition at line 821 of file value.c.
References max_value_size.
Referenced by check_type_length_before_alloc(), printf_c_string(), and printf_wide_c_string().
|
extern |
Definition at line 143 of file eval.c.
References EVAL_NORMAL, expr::operation::evaluate(), value::fetch_lazy(), value::lazy(), value_mark(), and value_release_to_mark().
Referenced by ppc_linux_nat_target::check_condition(), update_watchpoint(), watch_command_1(), and watchpoint_check().
|
extern |
Definition at line 117 of file valops.c.
References symbol::aclass(), objfile::arch(), block_symbol::block, LOC_BLOCK, lookup_bound_minimal_symbol(), lookup_function_type(), lookup_pointer_type(), lookup_symbol(), bound_minimal_symbol::minsym, name, bound_minimal_symbol::objfile, symbol::objfile(), block_symbol::symbol, target_has_execution(), type, bound_minimal_symbol::value_address(), value_from_pointer(), value_of_variable(), and VAR_DOMAIN.
Referenced by call_function_by_hand_dummy(), call_target_sbrk(), checkpoint_command(), eval_op_objc_msgcall(), 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().
|
extern |
Definition at line 2710 of file valops.c.
References BOTH, check_typedef(), classify_oload_match(), type::code(), coerce_ref(), compare_badness(), cp_func_name(), EVAL_AVOID_SIDE_EFFECTS, find_oload_champ(), find_oload_champ_namespace(), value::from_xmethod(), INCOMPATIBLE, incomplete_type_hint(), type::is_pointer_or_reference(), METHOD, name, type::name(), general_symbol_info::natural_name(), NON_METHOD, NON_STANDARD, oload_method_static_p(), search_struct_field(), STANDARD, symbol::type(), value::type(), TYPE_FN_FIELD_VIRTUAL_P, TYPE_SELF_TYPE, value_addr(), value_find_oload_method_list(), value_fn_field(), value_ind(), and value_virtual_fn_field().
Referenced by call_function_by_hand_dummy(), expr::adl_func_operation::evaluate(), expr::scope_operation::evaluate_funcall(), expr::var_value_operation::evaluate_funcall(), expr::structop_base_operation::evaluate_funcall(), and value_user_defined_cpp_op().
|
extern |
Definition at line 2103 of file value.c.
References check_typedef(), type::code(), INTERNALVAR_INTEGER, INTERNALVAR_VALUE, internalvar::kind, and value_as_long().
Referenced by get_number_trailer(), get_ulongest(), and linespec_parse_variable().
|
extern |
Definition at line 2287 of file value.c.
References internalvar::name.
Referenced by expr::internalvar_operation::do_generate_ax(), expr::assign_operation::do_generate_ax(), expr::assign_modify_operation::do_generate_ax(), and expr::dump_for_expression().
|
extern |
Definition at line 2851 of file value.c.
References check_typedef(), value::contents(), is_floating_type(), target_float_is_valid(), and value::type().
Referenced by gdbscm_value_to_real(), scalar_binop(), valpy_float(), valpy_long(), valpy_nonzero(), value_cast(), value_equal(), value_less(), value_logical_not(), and value_pos().
|
extern |
Definition at line 2001 of file value.c.
References create_internalvar(), lookup_only_internalvar(), and name.
Referenced by clear_exit_convenience_vars(), core_target_open(), do_add_internal_function(), exit_status_set_internal_vars(), find_command(), gdbpy_set_convenience_variable(), get_number_trailer(), get_ulongest(), handle_inferior_event(), search_command_helper(), set_breakpoint_count(), set_hit_convenience_vars(), set_next_address(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), set_tracepoint_num(), ada_catchpoint::should_stop_exception(), and x_command().
|
extern |
Definition at line 1918 of file value.c.
References internalvars, and name.
Referenced by gdbpy_convenience_variable(), gdbpy_set_convenience_variable(), linespec_parse_variable(), lookup_internalvar(), parser_state::push_dollar(), and yyparse().
Definition at line 1555 of file value.c.
References value::copy(), value::deprecated_set_type(), value::enclosing_type(), value::m_enclosing_type, make_cv_type(), value::set_enclosing_type(), and value::type().
Referenced by gdbscm_value_const_value(), and valpy_const_value().
|
extern |
Definition at line 3280 of file value.c.
References value::bitpos(), value::bitsize(), extract_unsigned_integer(), store_unsigned_integer(), and type_byte_order().
Referenced by expr::array_operation::evaluate_struct_tuple(), make_array_descriptor(), set_internalvar_component(), and value_assign().
|
extern |
Definition at line 3327 of file value.c.
References range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), type::length(), store_signed_integer(), store_typed_address(), target_float_from_longest(), and type_byte_order().
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().
|
extern |
Definition at line 70 of file eval.c.
References flags, and parse_expression().
Referenced by ada_exception_message_1(), frame_command_helper< FPTR >::address(), dump_value_to_file(), gdbscm_parse_and_eval(), ignore_command(), info_task(), info_vtbl_command(), frame_command_helper< FPTR >::level(), maintenance_print_frame_id(), maintenance_print_record_instruction(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), parse_frame_specification(), print_ada_task_info(), quit_command(), ada_catchpoint::should_stop_exception(), task_command_1(), trace_variable_command(), and frame_command_helper< FPTR >::view().
|
extern |
Definition at line 52 of file eval.c.
References 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(), symbol_file_command(), tfind_outside_command(), tfind_pc_command(), tfind_range_command(), and unwind_command().
|
extern |
Definition at line 62 of file eval.c.
References parse_expression(), and value_as_long().
Referenced by aarch64_linux_report_signal_info(), 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(), down_silently_base(), fbsd_report_signal_info(), go32_pde(), go32_pte(), go32_sgdt(), go32_sidt(), go32_sldt(), i386_linux_report_signal_info(), inferior_command(), info_checkpoints_command(), info_signals_command(), maintenance_info_program_spaces_command(), parse_cli_var_integer(), queue_signal_command(), record_goto(), restart_command(), restore_command(), set_radix(), show_commands(), show_values(), signal_command(), sparc64_linux_report_signal_info(), step_1(), tfind_command_1(), tfind_tracepoint_command(), and up_silently_base().
|
extern |
Definition at line 2877 of file eval.c.
References expr::unop_cast_operation::get_type(), type::length(), and parse_expression().
Referenced by safe_parse_type().
|
extern |
Definition at line 82 of file eval.c.
References parse_exp_1(), and PARSER_COMMA_TERMINATES.
Referenced by disassemble_command(), i386_mpx_set_bounds(), info_port_rights(), linespec_expression_to_pc(), parse_find_args(), ui_printf(), and watch_command_1().
|
extern |
Definition at line 2441 of file value.c.
References all_root_varobjs(), create_copied_types_hash(), internalvars, preserve_ext_lang_values(), preserve_one_internalvar(), preserve_one_varobj(), and value_history.
Referenced by reread_symbols(), and objfile::~objfile().
|
extern |
Definition at line 769 of file printcmd.c.
References address_style, fputs_styled(), paddress(), print_address_symbolic(), and cli_style_option::style().
Referenced by generic_val_print_func(), gnuv3_print_method_ptr(), print_function_pointer_address(), print_unpacked_pointer(), print_unpacked_pointer(), f_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 1392 of file valprint.c.
References gdb_puts(), and target_float_to_string().
Referenced by ada_print_floating(), expr::float_const_operation::dump(), generic_val_print_float(), and print_scalar_formatted().
|
extern |
Definition at line 1335 of file valprint.c.
References value_print_options::format, and gdb_puts().
Referenced by ada_print_scalar(), ada_val_print_enum(), ax_print(), generic_val_print_enum_1(), generic_value_print_bool(), gnuv3_print_method_ptr(), h8300_print_register(), m68hc11_print_register(), print_type_scalar(), and val_print_type_code_flags().
|
extern |
Definition at line 2397 of file printcmd.c.
References common_val_print_checked(), current_language, fprintf_styled(), gdb_printf(), get_user_print_options(), metadata_style, name, general_symbol_info::print_name(), read_var_value(), cli_style_option::style(), styled_string(), and variable_name_style.
Referenced by print_variable_and_value_data::operator()().
|
extern |
Definition at line 793 of file findvar.c.
References check_typedef(), value::contents_copy(), get_frame_arch(), get_frame_register_value(), value::lval(), lval_register, value::offset(), reg_offset, register_size(), regnum, value::type(), type_length_units(), and VALUE_REGNUM.
Referenced by address_from_register(), and value_from_register().
|
extern |
Definition at line 1042 of file valops.c.
References value::arch(), current_inferior(), gdbarch_addressable_memory_unit_size(), value::mark_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 value::fetch_lazy_memory(), rw_pieced_value(), and value_repeat().
|
extern |
Definition at line 739 of file findvar.c.
References general_symbol_info::language(), language_def(), and language_defn::read_var_value().
Referenced by bpfinishpy_init(), convert_one_symbol(), convert_one_symbol(), do_compile_dwarf_expr_to_c(), enumerate_locals(), finish_command(), frapy_read_var(), gdbscm_frame_read_var(), gdbscm_symbol_value(), insert_exception_resume_breakpoint(), print_variable_and_value(), read_frame_arg(), read_frame_local(), finish_command_fsm::should_stop(), sympy_value(), value_of_this(), value_of_variable(), and value_struct_elt_for_reference().
|
extern |
Definition at line 3727 of file value.c.
References value::deprecated_set_type(), type::is_pointer_or_reference(), value::pointed_to_offset(), resolve_dynamic_type(), value::set_embedded_offset(), value::set_enclosing_type(), type::target_type(), and value_full_object().
Referenced by coerce_ref(), and value_ind().
|
extern |
|
extern |
Definition at line 1450 of file value.c.
References all_values.
Referenced by address_from_register(), alpha_register_to_value(), bpstat::bpstat(), create_child(), do_examine(), dwarf2_compute_name(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), info_frame_command_core(), m68hc11_frame_prev_register(), mep_frame_prev_register(), py_varobj_iter::next(), put_frame_register_bytes(), value::record_latest(), register_changed_p(), set_internalvar(), update_watchpoint(), valpy_init(), value_of_dwarf_reg_entry(), vlscm_scm_from_value(), watch_command_1(), and watchpoint_check().
|
extern |
Definition at line 2171 of file value.c.
References check_typedef(), clear_internalvar(), type::code(), value::copy(), DYN_PROP_DATA_LOCATION, internalvar_data::fn, internalvar_data::function, get_internalvar_function(), INTERNALVAR_FUNCTION, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lval(), lval_internalvar, internalvar::name, release_value(), type::remove_dyn_prop(), value::set_modifiable(), value::type(), internalvar_data::value, and VALUE_INTERNALVAR.
Referenced by find_command(), gdbpy_set_convenience_variable(), set_next_address(), ada_catchpoint::should_stop_exception(), value_assign(), and x_command().
|
extern |
Definition at line 2141 of file value.c.
References value::bitpos(), value::bitsize(), value::contents(), gdbarch_addressable_memory_unit_size(), INTERNALVAR_VALUE, internalvar::kind, type::length(), modify_field(), value::offset(), value::type(), and value_as_long().
Referenced by value_assign().
|
extern |
Definition at line 2232 of file value.c.
References clear_internalvar(), INTERNALVAR_INTEGER, and internalvar::kind.
Referenced by core_target_open(), exit_status_set_internal_vars(), find_command(), handle_inferior_event(), init_main(), search_command_helper(), set_breakpoint_count(), set_hit_convenience_vars(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), and set_tracepoint_num().
|
extern |
Definition at line 2243 of file value.c.
References clear_internalvar(), INTERNALVAR_STRING, and internalvar::kind.
Referenced by set_traceframe_context().
|
extern |
Definition at line 3801 of file value.c.
References code, type::code(), and gdbarch_return_value_as_value().
Referenced by using_struct_return().
|
extern |
Definition at line 347 of file findvar.c.
References symbol::aclass(), 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_COMPUTED_OPS, SYMBOL_NEEDS_FRAME, and SYMBOL_NEEDS_NONE.
Referenced by language_defn::read_var_value(), and symbol_read_needs_frame().
|
extern |
Definition at line 388 of file findvar.c.
References SYMBOL_NEEDS_FRAME, and symbol_read_needs().
Referenced by convert_one_symbol(), convert_one_symbol(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), get_hosting_frame(), maybe_overload(), parser_state::push_symbol(), sympy_needs_frame(), sympy_value(), rust_parser::update_innermost_block(), value_of_variable(), write_var_from_sym(), and yyparse().
|
extern |
Definition at line 388 of file typeprint.c.
References current_language, default_ptype_flags, and language_defn::print_type().
Referenced by ada_value_print(), ada_value_print_num(), c_print_typedef(), c_value_print(), disassemble_dwarf_expression(), expr::dump_for_expression(), generic_val_print_func(), list_arg_or_local(), output_debug_symbol(), m2_language::print_typedef(), pascal_language::print_typedef(), rust_language::print_typedef(), print_variable_or_computed(), py_print_type(), rust_internal_print_type(), rust_val_print_slice(), symbol_to_info_string(), type_as_string(), pascal_language::type_print_base(), type_to_string(), pascal_language::value_print(), rust_language::value_print(), and whatis_exp().
|
extern |
Definition at line 399 of file typeprint.c.
References string_file::release(), and type_print().
Referenced by c_get_string(), gnuv3_get_typeid(), lookup_struct_elt(), rust_parser::parse_path(), rust_parser::parse_tuple_type(), print_return_value_1(), treg_matches_sym_type_name(), update_type_if_necessary(), expr::fortran_undetermined::value_subarray(), varobj_get_type(), language_defn::watch_location_expression(), ada_language::watch_location_expression(), and rust_language::watch_location_expression().
Definition at line 375 of file typeprint.c.
References current_language, and language_defn::print_typedef().
Referenced by symbol_to_info_string().
|
extern |
Definition at line 222 of file eval.c.
References builtin_type::builtin_int, builtin_type(), check_typedef(), coerce_ref(), is_integral_type(), type::length(), and value_cast().
Referenced by ada_abs(), ada_binop_exp(), ada_unop_neg(), eval_binop_assign_modify(), eval_op_binary(), eval_op_complement(), eval_op_neg(), and eval_op_plus().
|
extern |
Definition at line 317 of file valarith.c.
References check_typedef(), type::code(), type::target_type(), value::type(), and TYPE_IS_REFERENCE.
Referenced by eval_op_complement(), eval_op_ind(), eval_op_lognot(), eval_op_neg(), eval_op_plus(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_structop_ptr(), expr::unop_ind_base_operation::evaluate_for_address(), and expr::structop_base_operation::evaluate_funcall().
|
extern |
Definition at line 3119 of file value.c.
References value::bitpos(), value::bitsize(), check_typedef(), extract_unsigned_integer(), type::is_unsigned(), type::length(), read_offset(), and type_byte_order().
Referenced by compute_variant_fields_inner(), value::unpack_bitfield(), unpack_field_as_long(), unpack_long(), and unpack_value_field_as_long().
|
extern |
Definition at line 3203 of file value.c.
References value::bitpos(), field::bitsize(), value::bitsize(), type::field(), field::loc_bitpos(), field::type(), and unpack_bits_as_long().
Referenced by compute_variant_fields_inner(), dynamic_array_type(), m2_print_unbounded_array(), and selftests::unpack::unpack_field_as_long_tests().
|
extern |
Definition at line 2753 of file value.c.
References gdb_mpz::as_integer(), gdb_mpq::as_integer(), range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), code, type::code(), extract_signed_integer(), extract_typed_address(), extract_unsigned_integer(), type::fixed_point_scaling_factor(), type::fixed_point_type_base_type(), is_fixed_point_type(), type::is_unsigned(), type::length(), gdb_mpq::read_fixed_point(), target_float_to_longest(), type_byte_order(), unpack_bits_as_long(), and unpack_long().
Referenced by aarch64_store_return_value(), ada_val_print_enum(), ada_value_print_num(), address_from_register(), alpha_store_return_value(), arm_store_return_value(), avr_integer_to_address(), c_value_print_int(), do_ppc_sysv_return_value(), expr::c_string_operation::evaluate(), generic_val_print_enum(), generic_value_print_bool(), generic_value_print_char(), 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_push_dummy_call(), rs6000_return_value(), unpack_long(), unpack_pointer(), val_print_type_code_flags(), and value_as_long().
|
extern |
Definition at line 2843 of file value.c.
References unpack_long().
Referenced by ada_val_print_ref(), c_value_print_ptr(), coerce_ref(), dynamic_array_type(), generic_val_print_ref(), generic_value_print_ptr(), gnuv2_baseclass_offset(), m2_print_unbounded_array(), print_unpacked_pointer(), print_variable_at_address(), value_as_address(), f_language::value_print_inner(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 3178 of file value.c.
References value::bitpos(), value::bits_any_optimized_out(), value::bits_available(), field::bitsize(), value::bitsize(), value::embedded_offset(), type::field(), field::loc_bitpos(), field::type(), and unpack_bits_as_long().
Referenced by print_go_string().
|
extern |
Definition at line 3819 of file value.c.
References type::code(), RETURN_VALUE_REGISTER_CONVENTION, and struct_return_convention().
Referenced by call_function_by_hand_dummy(), eval_op_objc_msgcall(), and sparc32_push_dummy_code().
|
extern |
Definition at line 2643 of file valprint.c.
References type::arch(), current_language, err, extract_unsigned_integer(), gdb_printf(), get_print_max_chars(), type::length(), memory_error_message(), metadata_style, language_defn::printstr(), cli_style_option::style(), styled_string(), target_read_memory(), target_read_string(), TARGET_XFER_E_IO, and type_byte_order().
Referenced by fprint_auxv_entry(), lsscm_val_print_lazy_string(), m2_print_array_contents(), print_children(), print_formatted(), print_go_string(), print_string_repr(), print_unpacked_pointer(), print_unpacked_pointer(), rust_val_print_slice(), stpy_str(), f_language::value_print_inner(), pascal_language::value_print_inner(), rust_language::value_print_inner(), and varobj_value_get_print_value().
|
extern |
Definition at line 1032 of file value.c.
References check_typedef(), type::code(), value::enclosing_type(), get_user_print_options(), type::is_pointer_or_reference(), value::optimized_out(), type::target_type(), value::type(), and value_rtti_indirect_type().
Referenced by adjust_value_for_child_access(), create_child_with_value(), update_type_if_necessary(), and varobj_create().
Definition at line 1551 of file valops.c.
References value::address, value::bits_synthetic_pointer(), check_typedef(), type::code(), coerce_ref(), value::copy(), value::deprecated_set_type(), value::embedded_offset(), value::enclosing_type(), type::length(), lookup_pointer_type(), value::lval(), lval_memory, value::set_enclosing_type(), value::set_pointed_to_offset(), type::target_type(), value::type(), TYPE_IS_REFERENCE, value_coerce_function(), value_coerce_to_target(), and value_from_pointer().
Referenced by ada_convert_actual(), ada_tag_value_at_base_address(), ada_ternop_slice(), amd64_windows_adjust_args_passed_by_pointer(), c_value_print(), eval_op_member(), expr::ada_funcall_operation::evaluate(), expr::var_msym_value_operation::evaluate_for_address(), expr::rust_structop::evaluate_funcall(), evaluate_subexp_for_address_base(), find_function_addr(), find_overload_match(), fortran_argument_convert(), 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_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().
|
extern |
Definition at line 3430 of file valops.c.
References type::code(), enum_constant_from_type(), name, value_namespace_elt(), and value_struct_elt_for_reference().
Referenced by eval_op_scope(), expr::scope_operation::evaluate_for_address(), and value_struct_elt_for_reference().
|
extern |
Definition at line 175 of file valops.c.
References objfile::arch(), call_function_by_hand(), find_function_in_inferior(), target_has_execution(), value_from_longest(), and value_logical_not().
Referenced by allocate_space_in_inferior(), ensure_lval(), expr::rust_aggregate_operation::evaluate(), find_func_descr(), fortran_argument_convert(), rust_range(), and rust_subscript().
Definition at line 1695 of file valops.c.
References value::allocate(), language_defn::c_style_arrays_p(), current_language, lookup_array_range_type(), and type_length_units().
Referenced by eval_op_rust_array(), and expr::array_operation::evaluate().
|
extern |
Definition at line 2636 of file value.c.
References value::address, type::arch(), type::code(), coerce_array(), value::contents(), gdbarch_addr_bits_remove(), gdbarch_integer_to_address(), gdbarch_integer_to_address_p(), type::is_pointer_or_reference(), value::type(), unpack_pointer(), and value_as_long().
Referenced by aarch64_linux_get_memtag(), aarch64_linux_memtag_matches_p(), aarch64_linux_memtag_to_string(), aarch64_linux_set_memtags(), aarch64_linux_tagged_address_p(), ada_tag_name_from_tsd(), ada_value_slice_from_ptr(), ada_varobj_adjust_for_child_access(), ada_varobj_get_ptr_number_of_children(), ada_varobj_ind(), frame_command_helper< FPTR >::address(), address_from_register(), arm_m_exception_prev_register(), c_get_string(), c_value_print(), disassemble_command(), do_one_display(), dump_arc_instruction_command(), dwarf2_evaluate_property(), dwarf2_locexpr_baton_eval(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), eval_op_ind(), eval_op_memval(), eval_op_objc_msgcall(), expr::ada_unop_ind_operation::evaluate(), execute_stack_op(), dwarf_expr_context::fetch_result(), find_function_addr(), fortran_associated(), 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(), call_site_target::iterate_over_addresses(), linespec_expression_to_pc(), linux_infcall_mmap(), memory_tag_check_command(), memory_tag_print_tag_command(), parse_and_eval_address(), parse_find_args(), parse_frame_specification(), parse_set_allocation_tag_input(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_get_return_buf_addr(), print_one_vtable(), printf_c_string(), printf_wide_c_string(), process_event_stop_test(), ptid_from_atcb_common(), read_atcb(), read_known_tasks_list(), language_defn::read_var_value(), rust_get_trait_object_pointer(), rust_slice_to_array(), rust_val_print_slice(), svr4_handle_solib_event(), valpy_lazy_string(), value_equal(), value_ind(), value_less(), rust_language::value_print_inner(), value_ptradd(), frame_command_helper< FPTR >::view(), watch_command_1(), and x_command().
|
extern |
Definition at line 2554 of file value.c.
References coerce_array(), value::contents(), value::type(), and unpack_long().
Referenced by ada_array_bound(), ada_array_length(), ada_atr_enum_val(), ada_get_tcb_types_info(), ada_tag_value_at_base_address(), ada_ternop_slice(), ada_type_of_array(), ada_val_atr(), ada_which_variant_applies(), dwarf_expr_context::add_piece(), allocate_space_in_inferior(), arm_m_exception_prev_register(), expr::ada_discrete_range_association::assign(), expr::ada_name_association::assign(), call_target_sbrk(), ppc_linux_nat_target::check_condition(), checkpoint_command(), complex_binop(), desc_bounds(), expr::repeat_operation::do_generate_ax(), dwarf2_evaluate_property(), ensure_lval(), eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_m2_subscript(), eval_op_member(), eval_op_objc_msgcall(), eval_op_repeat(), eval_op_rust_array(), eval_op_sub(), eval_op_subscript(), expr::ada_binop_addsub_operation::evaluate(), expr::objc_msgcall_operation::evaluate(), expr::ternop_slice_operation::evaluate(), expr::array_operation::evaluate(), expr::rust_aggregate_operation::evaluate(), expr::structop_member_base::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_result(), find_func_descr(), find_function_addr(), fortran_argument_convert(), fortran_array_size(), fortran_bounds_for_dimension(), fortran_wrap2_kind(), fortran_wrap3_kind(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_real(), expr::operation::generate_ax(), get_baseclass_offset(), ravenscar_thread_target::get_fpu_state(), get_int_var_value(), get_internalvar_integer(), get_number_trailer(), get_ulongest(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_rtti_type(), ignore_command(), inferior_call_waitpid(), info_port_rights(), info_task(), frame_command_helper< FPTR >::level(), linespec_parse_variable(), linux_infcall_munmap(), lookup_child_selector(), lookup_objc_class(), m68hc11_frame_prev_register(), maintenance_print_frame_id(), maintenance_print_record_instruction(), 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_parm_ptr(), read_atcb(), read_fat_string_value(), riscv_print_one_register_info(), rl78_prev_register(), rust_compute_range(), rust_range(), rust_slice_to_array(), rust_subscript(), rust_val_print_slice(), s12z_print_ccw_info(), s390_unwind_pseudo_register(), scalar_binop(), scan_discrim_bound(), set_internalvar_component(), svr4_handle_solib_event(), task_command_1(), trace_variable_command(), ui_printf(), valpy_binop_throw(), valpy_float(), valpy_getitem(), valpy_long(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_as_mpz(), value_assign(), value_cast(), value_dynamic_cast(), value_equal(), value_less(), f_language::value_print_inner(), value_ptrdiff(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), vlscm_binop_gdbthrow(), and wrap_ternop_intrinsic().
Definition at line 2566 of file value.c.
References range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), coerce_array(), value::contents(), type::is_unsigned(), gdb_mpz::mask(), gdb_mpz::read(), value::type(), type_byte_order(), and value_as_long().
Referenced by ada_value_binop(), scalar_binop(), value_cast(), and value_complement().
Definition at line 1085 of file valops.c.
References value::address, type::arch(), value::bitpos(), value::bitsize(), check_typedef(), type::code(), coerce_array(), coerce_ref(), value::computed_funcs(), value::contents(), value::contents_raw(), value::copy(), current_inferior(), value::deprecated_modifiable(), deprecated_safe_get_selected_frame(), value::enclosing_type(), frame_find_by_id(), gdbarch_convert_register_p(), gdbarch_value_to_register(), get_frame_arch(), get_frame_id(), get_frame_register_bytes(), get_prev_frame_always(), type::is_unsigned(), type::length(), value::lval(), lval_computed, lval_internalvar, lval_internalvar_component, lval_memory, lval_register, modify_field(), value::offset(), value::parent(), value::pointed_to_offset(), put_frame_register_bytes(), read_memory(), gdb::observers::register_changed, select_frame(), value::set_enclosing_type(), set_internalvar(), set_internalvar_component(), value::set_lazy(), value::set_pointed_to_offset(), gdb::observers::target_changed, type, value::type(), type_length_units(), value_as_long(), value_cast(), value_from_longest(), VALUE_INTERNALVAR, value_must_coerce_to_target(), VALUE_NEXT_FRAME_ID, value_of_internalvar(), VALUE_REGNUM, lval_funcs::write, and write_memory_with_notification().
Referenced by ada_value_assign(), eval_binop_assign_modify(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_opencl_assign(), expr::rust_aggregate_operation::evaluate(), lval_func_write(), rust_range(), rust_subscript(), valpy_assign(), and varobj_set_value().
Definition at line 1015 of file valops.c.
References get_value_at().
Referenced by ada_get_tcb_types_info(), ada_imported_read_variable(), ada_value_primitive_packed_val(), dwarf2_evaluate_property(), dynamic_array_type(), generic_val_print_ref(), gnuv3_get_vtable(), print_unpacked_pointer(), print_variable_at_address(), language_defn::read_var_value(), finish_command_fsm::should_stop(), value_at_non_lval(), value_cast_structs(), value_dynamic_cast(), and pascal_language::value_print_inner().
|
extern |
Definition at line 1036 of file valops.c.
References get_value_at().
Referenced by ada_value_slice_from_ptr(), ada_value_struct_elt(), coerce_ref(), do_examine(), dynamic_cast_check_1(), dynamic_cast_check_2(), eval_op_ind(), eval_op_memval(), expr::ada_unop_ind_operation::evaluate(), expr::rust_aggregate_operation::evaluate(), evaluate_var_msym_value(), dwarf_expr_context::fetch_result(), frame_unwind_got_memory(), gnuv3_get_typeid(), gnuv3_get_vtable(), lsscm_safe_lazy_string_to_value(), m2_print_unbounded_array(), fortran_lazy_array_repacker_impl::process_element(), language_defn::read_var_value(), rust_range(), rust_subscript(), struct_field_searcher::search(), stpy_convert_to_value(), value_cast(), value_cast_structs(), value_coerce_to_target(), value_dynamic_cast(), value_full_object(), value_ind(), value_static_field(), and expr::fortran_undetermined::value_subarray().
Definition at line 1023 of file valops.c.
References not_lval, value::set_lval(), and value_at().
Referenced by aarch64_return_value(), amd64_return_value(), amd64_windows_return_value(), arm_return_value(), get_call_return_value(), i386_return_value(), riscv_return_value(), and sparc32_return_value().
|
extern |
Definition at line 1464 of file valarith.c.
References check_typedef(), type::code(), is_integral_type(), type::is_vector(), scalar_binop(), value::type(), value_vector_widen(), and vector_binop().
Referenced by ada_binop_exp(), ada_binop_minmax(), ada_value_binop(), eval_binop_assign_modify(), eval_op_add(), eval_op_binary(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_sub(), expr::ada_binop_addsub_operation::evaluate(), dwarf_expr_context::execute_stack_op(), valpy_binop_throw(), value_equal(), value_less(), value_neg(), vector_binop(), and vlscm_binop_gdbthrow().
|
extern |
Definition at line 1825 of file valarith.c.
References type::arch(), extract_unsigned_integer(), gdbarch_byte_order(), get_discrete_bounds(), type::index_type(), and type_byte_order().
Referenced by m2_print_long_set(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 403 of file valops.c.
References value::address, value::allocate(), type::arch(), gdb_mpq::as_double(), type::bounds(), language_defn::c_style_arrays_p(), cast_into_complex(), check_typedef(), type::code(), coerce_ref(), value::contents(), value::contents_raw(), value::contents_writeable(), value::copy(), cplus_make_method_ptr(), create_array_type(), create_static_range_type(), current_language, value::deprecated_set_type(), extract_unsigned_integer(), type::fixed_point_scaling_factor(), gdbarch_addr_bit(), get_discrete_bounds(), range_bounds::high, type::index_type(), is_fixed_point_type(), is_floating_type(), is_floating_value(), type::is_unsigned(), type::is_vector(), dynamic_prop::kind(), language_defn::la_language, language_ada, type::length(), value::lval(), lval_memory, type::name(), not_lval, PROP_UNDEFINED, gdb_mpq::read_fixed_point(), value::set_enclosing_type(), value::set_pointed_to_offset(), target_float_convert(), target_float_from_host_double(), type::target_type(), type, value::type(), type_byte_order(), TYPE_IS_REFERENCE, types_deeply_equal(), value_as_long(), value_as_mpz(), value_at_lazy(), value_cast(), value_cast_pointers(), value_cast_structs(), value_cast_to_fixed_point(), value_coerce_array(), value_coerce_function(), value_from_longest(), value_from_mpz(), value_from_ulongest(), value_ref(), and value::zero().
Referenced by aarch64_push_dummy_call(), ada_atr_enum_rep(), ada_coerce_to_simple_array_ptr(), ada_get_tsd_from_tag(), ada_promote_array_of_integrals(), ada_tag_value_at_base_address(), ada_value_assign(), ada_value_cast(), ada_value_print_num(), ada_value_ptr_subscript(), ada_value_slice(), adjust_value_for_child_access(), alpha_push_dummy_call(), binop_promote(), BP_MANIPULATION(), c_value_print(), complex_binop(), compute_exception(), cplus_describe_child(), desc_bounds(), python_xmethod_worker::do_get_result_type(), eval_op_f_cmplx(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_structop_ptr(), expr::ada_binop_addsub_operation::evaluate(), expr::ada_bitwise_operation< OP >::evaluate(), expr::ada_unop_ind_operation::evaluate(), expr::array_operation::evaluate(), expr::unop_memval_operation::evaluate_for_address(), expr::unop_memval_type_operation::evaluate_for_address(), expr::operation::evaluate_for_cast(), expr::var_value_operation::evaluate_for_cast(), expr::var_msym_value_operation::evaluate_for_cast(), expr::structop_member_base::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), expr::var_value_operation::evaluate_with_coercion(), dwarf_expr_context::execute_stack_op(), fixed_point_binop(), generic_value_print(), 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(), python_xmethod_worker::invoke(), memory_tag_with_logical_tag_command(), opencl_value_cast(), printf_floating(), riscv_push_dummy_call(), riscv_return_value(), rust_get_trait_object_pointer(), s390_unwind_pseudo_register(), sparc64_store_arguments(), thin_data_pntr(), unop_promote(), valpy_do_cast(), valpy_getitem(), valpy_long(), value_arg_coerce(), value_assign(), value_assign_to_component(), value_cast(), value_dynamic_cast(), value_fn_field(), value_literal_complex(), m2_language::value_print_inner(), value_reinterpret_cast(), value_vector_widen(), varobj_create(), vlscm_do_cast(), and xtensa_push_dummy_call().
|
extern |
Definition at line 296 of file valops.c.
References check_typedef(), type::code(), coerce_ref(), value::copy(), value::deprecated_set_type(), value::set_enclosing_type(), value::set_pointed_to_offset(), type::target_type(), value::type(), TYPE_IS_REFERENCE, value_addr(), value_cast_structs(), value_ind(), and value_logical_not().
Referenced by ada_convert_actual(), eval_op_member(), language_defn::read_var_value(), value_arg_coerce(), value_cast(), and value_struct_elt_for_reference().
Definition at line 1515 of file valops.c.
References value::address, check_typedef(), lookup_pointer_type(), value::lval(), lval_memory, type::target_type(), value::type(), value_coerce_to_target(), and value_from_pointer().
Referenced by coerce_array(), lookup_child_selector(), lookup_objc_class(), typecmp(), value_cast(), value_nsstring(), and value_subscript().
Definition at line 1535 of file valops.c.
References value::address, lookup_pointer_type(), value::lval(), lval_memory, value::type(), and value_from_pointer().
Referenced by coerce_array(), value_addr(), and value_cast().
Definition at line 1477 of file valops.c.
References allocate_space_in_inferior(), check_typedef(), value::contents(), type::length(), value::type(), value_at_lazy(), value_must_coerce_to_target(), and write_memory().
Referenced by value_addr(), value_arg_coerce(), and value_coerce_array().
Definition at line 1770 of file valarith.c.
References value::allocate(), check_typedef(), type::code(), coerce_ref(), gdb_mpz::complement(), value::contents_all(), value::contents_writeable(), get_array_bounds(), is_integral_type(), type::is_vector(), type::length(), type::target_type(), type, value::type(), value_as_mpz(), value_complement(), value_from_mpz(), value_imaginary_part(), value_literal_complex(), value_neg(), value_real_part(), and value_subscript().
Referenced by complex_binop(), eval_op_complement(), eval_op_rust_complement(), dwarf_expr_context::execute_stack_op(), valpy_invert(), value_complement(), and vlscm_unop_gdbthrow().
Definition at line 684 of file valarith.c.
References value::allocate(), language_defn::c_style_arrays_p(), check_typedef(), type::code(), value::contents(), value::contents_raw(), current_language, get_array_bounds(), lookup_array_range_type(), type::target_type(), value::type(), and types_equal().
Referenced by expr::ada_concat_operation::evaluate(), and expr::concat_operation::evaluate().
Definition at line 1199 of file value.h.
References type::length(), and value_cstring().
|
extern |
Definition at line 1738 of file valops.c.
References value::allocate(), value::contents_raw(), current_language, type::length(), lookup_array_range_type(), and language_defn::string_lower_bound().
Referenced by expr::c_string_operation::evaluate(), value_cstring(), and language_defn::value_string().
Definition at line 814 of file valops.c.
References value::address, check_typedef(), class_types_same_p(), type::code(), value::contents_for_printing(), dynamic_cast_check_1(), dynamic_cast_check_2(), value::embedded_offset(), is_ancestor(), is_public_ancestor(), is_unique_ancestor(), not_lval, type::target_type(), value::type(), TYPE_IS_REFERENCE, value_addr(), value_as_long(), value_at(), value_at_lazy(), value_cast(), value_ind(), value_ref(), value_rtti_type(), and value::zero().
Referenced by valpy_do_cast(), and vlscm_do_cast().
Definition at line 1559 of file valarith.c.
References check_typedef(), type::code(), coerce_array(), value::contents(), is_floating_value(), is_integral_type(), type::length(), target_float_compare(), value::type(), value_args_as_target_float(), value_as_address(), value_as_long(), value_binop(), value_strcmp(), and value_true().
Referenced by ada_binop_in_bounds(), ada_unop_in_range(), ada_value_equal(), eval_op_equal(), eval_op_geq(), eval_op_leq(), eval_op_notequal(), eval_ternop_in_range(), dwarf_expr_context::execute_stack_op(), gdbscm_value_to_real(), scalar_relop(), valpy_richcompare_throw(), value_vector_widen(), vlscm_equal_p_value_smob(), and vlscm_rich_compare().
Definition at line 1630 of file valarith.c.
References check_typedef(), type::code(), value::contents(), type::length(), and value::type().
Referenced by watchpoint_check().
Definition at line 3052 of file value.c.
References value::primitive_field(), and value::type().
Referenced by ada_varobj_struct_elt(), compute_vtable_size(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_get_typeid(), gnuv3_get_virtual_fn(), gnuv3_rtti_type(), rust_language::print_enum(), print_field_values(), print_one_vtable(), print_variant_part(), ptid_from_atcb_common(), read_atcb(), read_fat_string_value(), read_known_tasks_list(), rust_compute_range(), rust_get_trait_object_pointer(), rust_subscript(), rust_language::val_print_struct(), and f_language::value_print_inner().
|
extern |
Definition at line 3259 of file value.c.
References value::allocate(), value::bitpos(), field::bitsize(), value::bitsize(), value::embedded_offset(), type::field(), field::loc_bitpos(), field::type(), and value::unpack_bitfield().
Referenced by cp_print_value_fields(), and pascal_object_print_value_fields().
|
extern |
Definition at line 3065 of file value.c.
References value::allocate(), objfile::arch(), current_inferior(), block::entry_pc(), f(), gdbarch_convert_from_func_ptr_addr(), lookup_bound_minimal_symbol(), lookup_pointer_type(), lookup_symbol(), lval_memory, bound_minimal_symbol::minsym, bound_minimal_symbol::objfile, value::set_address(), value::set_lval(), block_symbol::symbol, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_TYPE, value_addr(), bound_minimal_symbol::value_address(), symbol::value_block(), value_cast(), value_ind(), and VAR_DOMAIN.
Referenced by find_overload_match(), and search_struct_method().
|
extern |
Definition at line 1437 of file value.c.
References all_values.
Referenced by scoped_value_mark::free_to_mark(), watch_command_1(), and watchpoint_check().
|
extern |
Definition at line 3657 of file value.c.
References value::allocate(), value::allocate_lazy(), value::contents_copy(), value::embedded_offset(), value::lazy(), value::lval(), lval_memory, value::offset(), value::set_component_location(), value::set_offset(), and type_length_units().
Referenced by fortran_array_printer_impl::dimension_contents_eq(), value::from_component_bitsize(), fortran_array_repacker_impl::process_element(), fortran_array_printer_impl::process_element(), value_imaginary_part(), value_real_part(), expr::fortran_undetermined::value_subarray(), and value_subscripted_rvalue().
Definition at line 3581 of file value.c.
References value::allocate(), value::contents(), value::contents_raw(), and type::length().
Referenced by ada_to_fixed_value_create(), convert_buffer_and_type_to_value(), dwarf2_evaluate_property(), expr::float_const_operation::evaluate(), dwarf_expr_context::execute_stack_op(), fetch_const_value_from_synthetic_pointer(), maintenance_print_record_instruction(), printf_floating(), riscv_return_value(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_pos(), and vlscm_convert_bytevector().
|
extern |
Definition at line 3552 of file value.c.
References value::address, value::allocate_lazy(), check_typedef(), type::length(), lval_memory, resolve_dynamic_type(), value::set_address(), value::set_lval(), TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, and value_from_contents().
Referenced by ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value_create(), ada_value_struct_elt(), amd64_windows_adjust_args_passed_by_pointer(), call_function_by_hand_dummy(), cp_print_value(), dwarf_expr_context::execute_stack_op(), fortran_argument_convert(), gdbscm_make_lazy_value(), get_call_return_value(), get_value_at(), pascal_object_print_value(), read_atcb(), read_known_tasks_list(), search_struct_method(), to_record_with_fixed_variant_part(), expr::fortran_undetermined::value_subarray(), and value_tag_from_contents_and_address().
|
extern |
Definition at line 3531 of file value.c.
References value::address, value::allocate_lazy(), lval_memory, value::set_address(), value::set_lval(), and value_from_contents().
Referenced by ada_template_to_fixed_record_type_1().
|
extern |
Definition at line 3595 of file value.c.
References access_value_history().
Referenced by get_number_trailer(), and get_ulongest().
Definition at line 3514 of file value.c.
References value::allocate(), type::code(), value::contents_raw(), target_float_from_host_double(), value::type(), and value.
Referenced by convert_value_from_python(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), gdbscm_value_to_real(), vlscm_convert_number(), and vlscm_convert_typed_number().
Definition at line 3438 of file value.c.
References value::allocate(), value::contents_raw(), and pack_long().
Referenced by ada_array_length(), ada_atr_enum_val(), ada_atr_size(), ada_binop_in_bounds(), ada_equal_binop(), ada_pos_atr(), ada_unop_atr(), ada_unop_in_range(), ada_varobj_simple_array_elt(), expr::assign_component(), call_target_sbrk(), checkpoint_command(), complex_binop(), compute_probe_arg(), convert_value_from_python(), desc_bounds(), dwarf2_compute_name(), elf_gnu_ifunc_resolve_addr(), enum_constant_from_type(), eval_op_alignof(), eval_op_equal(), eval_op_f_abs(), eval_op_f_allocated(), eval_op_f_kind(), eval_op_f_loc(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_f_rank(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_op_lognot(), eval_op_notequal(), eval_op_objc_msgcall(), eval_op_objc_selector(), eval_op_rust_complement(), eval_op_sub(), eval_ternop_in_range(), expr::ada_binop_addsub_operation::evaluate(), expr::c_string_operation::evaluate(), expr::opencl_logical_binop_operation::evaluate(), expr::bool_operation::evaluate(), expr::logical_and_operation::evaluate(), expr::logical_or_operation::evaluate(), expr::var_msym_value_operation::evaluate_for_sizeof(), expr::subscript_operation::evaluate_for_sizeof(), expr::unop_ind_base_operation::evaluate_for_sizeof(), expr::structop_base_operation::evaluate_funcall(), evaluate_subexp_for_sizeof_base(), fortran_array_shape(), fortran_array_size(), fortran_associated(), fortran_bounds_all_dims(), fortran_bounds_for_dimension(), fortran_ceil_operation(), fortran_floor_operation(), gdbscm_value_to_real(), inferior_call_waitpid(), inferior_id_make_value(), inferior_thread_count_make_value(), isvoid_internal_fn(), linux_infcall_mmap(), opencl_logical_not(), opencl_relop(), f_language::print_array_index(), language_defn::print_array_index(), print_scalar_formatted(), rust_subscript(), s390_unwind_pseudo_register(), shell_internal_fn(), thin_data_pntr(), thread_num_make_value_helper(), val_atr(), valpy_binop_throw(), value_allocate_space_in_inferior(), value_assign(), value_cast(), value_from_setting(), value_neg(), value_nsstring(), value_of_internalvar(), value_one(), value_struct_elt_for_reference(), value_x_unop(), vlscm_binop_gdbthrow(), vlscm_convert_number(), vlscm_convert_typed_number(), vlscm_convert_typed_value_from_scheme(), and vlscm_unop_gdbthrow().
Definition at line 3462 of file value.c.
References value::allocate(), range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), value::contents_raw(), type::is_unsigned(), gdb_mpz::mask(), gdb_mpz::truncate(), and type_byte_order().
Referenced by ada_value_binop(), expr::long_const_operation::evaluate(), scalar_binop(), value_cast(), and value_complement().
Definition at line 3500 of file value.c.
References value::allocate(), check_typedef(), value::contents_raw(), and store_typed_address().
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(), do_module_cleanup(), eval_op_member(), eval_op_objc_msgcall(), expr::structop_member_base::evaluate_funcall(), dwarf_expr_context::fetch_result(), find_command(), find_function_in_inferior(), ravenscar_thread_target::get_fpu_state(), gnuv3_method_ptr_to_value(), inferior_call_waitpid(), linux_infcall_mmap(), linux_infcall_munmap(), lsscm_safe_lazy_string_to_value(), language_defn::read_var_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(), vlscm_convert_typed_number(), and x_command().
|
extern |
Definition at line 833 of file findvar.c.
References value::allocate(), check_typedef(), value::contents_raw(), gdbarch_convert_register_p(), gdbarch_register_to_value(), gdbarch_value_from_register(), get_frame_arch(), get_frame_id(), get_next_frame_sentinel_okay(), type::length(), lval_register, value::mark_bytes_optimized_out(), value::mark_bytes_unavailable(), read_frame_register_value(), regnum, value::set_lval(), VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_result(), language_defn::read_var_value(), set_gdbarch_value_from_register(), and store_regs().
Definition at line 3450 of file value.c.
References value::allocate(), value::contents_raw(), and pack_unsigned_long().
Referenced by aarch64_linux_get_memtag(), convert_value_from_python(), do_examine(), dwarf_expr_context::execute_stack_op(), fixed_point_binop(), gdbscm_value_to_real(), linux_infcall_mmap(), linux_infcall_munmap(), dwarf_expr_context::push_address(), value_cast(), and value_from_setting().
|
extern |
Definition at line 3915 of file valops.c.
References value::address, value::copy(), value::deprecated_set_type(), value::embedded_offset(), value::enclosing_type(), type::length(), value::lval(), lval_memory, type::name(), value::set_embedded_offset(), value::set_enclosing_type(), value::type(), value_at_lazy(), and value_rtti_type().
Referenced by c_value_print(), gnuv3_print_vtable(), readjust_indirect_value_type(), and value_cast_structs().
|
extern |
Definition at line 1736 of file value.c.
References value_history.
Referenced by gdbpy_history_count().
Definition at line 4128 of file valops.c.
References check_typedef(), type::code(), type::length(), type::target_type(), value::type(), and value_from_component().
Referenced by cimag_internal_fn(), complex_binop(), generic_value_print_complex(), value_complement(), and value_neg().
Definition at line 1630 of file valops.c.
References check_typedef(), code, type::code(), coerce_array(), value::computed_funcs(), value::enclosing_type(), find_function_addr(), value::funcs, lval_funcs::indirect, value::lval(), lval_computed, value::pointed_to_offset(), readjust_indirect_value_type(), type::target_type(), value::type(), value_as_address(), and value_at_lazy().
Referenced by ada_array_bound(), ada_array_length(), ada_coerce_to_simple_array(), ada_get_tsd_from_tag(), ada_tag_value_at_base_address(), ada_ternop_slice(), 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(), eval_op_ind(), eval_op_m2_subscript(), eval_op_member(), expr::fortran_undetermined::evaluate(), expr::rust_unop_ind_operation::evaluate(), expr::unop_ind_base_operation::evaluate_for_sizeof(), expr::structop_member_base::evaluate_funcall(), expr::rust_structop::evaluate_funcall(), find_overload_match(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), ravenscar_thread_target::get_fpu_state(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_method_ptr_to_value(), gnuv3_print_vtable(), info_mach_region_command(), read_fat_string_value(), 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().
const char * value_internal_function_name | ( | struct value * | val | ) |
Definition at line 2305 of file value.c.
References get_internalvar_function(), value::lval(), lval_internalvar, internal_function::name, and VALUE_INTERNALVAR.
Referenced by value_check_printable().
Definition at line 1648 of file valarith.c.
References check_typedef(), type::code(), coerce_array(), is_fixed_point_type(), is_floating_value(), is_integral_type(), type::length(), target_float_compare(), value::type(), value_args_as_target_float(), value_as_address(), value_as_long(), value_binop(), value_strcmp(), and value_true().
Referenced by ada_abs(), ada_binop_in_bounds(), ada_unop_in_range(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_ternop_in_range(), dwarf_expr_context::execute_stack_op(), scalar_relop(), valpy_absolute(), valpy_richcompare_throw(), vlscm_rich_compare(), and vlscm_unop_gdbthrow().
|
extern |
Definition at line 4092 of file valops.c.
References value::allocate(), value::contents(), value::contents_raw(), type::length(), type::target_type(), and value_cast().
Referenced by cast_into_complex(), complex_binop(), eval_op_f_cmplx(), eval_op_f_cmplx(), eval_op_f_cmplx(), expr::complex_operation::evaluate(), value_complement(), and value_neg().
|
extern |
Definition at line 1501 of file valarith.c.
References check_typedef(), coerce_array(), value::contents(), is_floating_value(), type::length(), target_float_is_zero(), and value::type().
Referenced by eval_op_binary(), eval_op_lognot(), eval_op_rust_complement(), expr::opencl_logical_binop_operation::evaluate(), expr::opencl_ternop_cond_operation::evaluate(), expr::ternop_cond_operation::evaluate(), expr::logical_and_operation::evaluate(), expr::logical_or_operation::evaluate(), opencl_logical_not(), scalar_relop(), value_allocate_space_in_inferior(), value_cast_pointers(), value_true(), and vlscm_unop_gdbthrow().
|
extern |
Definition at line 1414 of file value.c.
References all_values.
Referenced by fetch_subexp_value(), watch_command_1(), and watchpoint_check().
|
extern |
Definition at line 1449 of file valops.c.
References check_typedef(), type::code(), type::is_vector(), value::lval(), lval_internalvar, lval_xcallable, not_lval, and value::type().
Referenced by evaluate_subexp_for_address_base(), value_assign(), and value_coerce_to_target().
Definition at line 1722 of file valarith.c.
References value::allocate(), check_typedef(), type::code(), coerce_ref(), value::contents_all(), value::contents_writeable(), get_array_bounds(), is_fixed_point_type(), is_floating_type(), is_integral_type(), type::is_vector(), type::length(), not_lval, type::target_type(), type, value::type(), value_binop(), value_from_longest(), value_imaginary_part(), value_literal_complex(), value_neg(), value_real_part(), value_subscript(), and value::zero().
Referenced by ada_abs(), ada_unop_neg(), eval_op_neg(), dwarf_expr_context::execute_stack_op(), valpy_negative(), value_complement(), value_neg(), and vlscm_unop_gdbthrow().
|
extern |
Definition at line 2016 of file value.c.
References value::allocate(), current_language, value::fetch_lazy(), find_trace_state_variable(), INTERNALVAR_FUNCTION, INTERNALVAR_INTEGER, INTERNALVAR_MAKE_VALUE, INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lazy(), value::lval(), lval_computed, lval_internalvar, internalvar::name, trace_state_variable::number, value::set_lval(), target_get_trace_state_variable_value(), trace_state_variable::value, value_from_longest(), VALUE_INTERNALVAR, trace_state_variable::value_known, and language_defn::value_string().
Referenced by expr::internalvar_operation::evaluate(), gdbpy_convenience_variable(), show_convenience(), value_assign(), and yyparse().
|
extern |
Definition at line 253 of file findvar.c.
References value::fetch_lazy(), gdbarch_num_cooked_regs(), get_frame_arch(), regnum, value_of_register_lazy(), and value_of_user_reg().
Referenced by default_print_registers_info(), eval_op_register(), frapy_read_register(), gdbscm_frame_read_register(), output_register(), pending_framepy_read_register(), riscv_print_one_register_info(), s12z_print_ccw_info(), 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_loongarch_user_reg(), value_of_mips_user_reg(), value_of_nds32_reg(), and value_of_riscv_user_reg().
struct value * value_of_register_lazy | ( | frame_info_ptr | frame, |
int | regnum ) |
Definition at line 273 of file findvar.c.
References value::allocate_lazy(), frame_id_p(), gdbarch_num_cooked_regs(), get_frame_arch(), get_frame_id(), get_frame_type(), get_next_frame_sentinel_okay(), INLINE_FRAME, lval_register, register_type(), regnum, value::set_lval(), VALUE_NEXT_FRAME_ID, and VALUE_REGNUM.
Referenced by frame_unwind_got_register(), and value_of_register().
|
extern |
Definition at line 3985 of file valops.c.
References block_symbol::block, get_frame_block(), get_selected_frame(), lookup_language_this(), language_defn::name_of_this(), read_var_value(), and block_symbol::symbol.
Referenced by expr::op_this_operation::opcode(), and value_of_this_silent().
|
extern |
Definition at line 4010 of file valops.c.
References value_of_this().
Referenced by value_struct_elt_for_reference(), and yyparse().
Definition at line 1386 of file valops.c.
References get_selected_frame(), read_var_value(), and symbol_read_needs_frame().
Referenced by address_of_variable(), compute_var_value(), eval_op_objc_msgcall(), expr::scope_operation::evaluate_funcall(), evaluate_var_value(), find_function_in_inferior(), get_var_value(), info_common_command_for_block(), typy_template_argument(), value_maybe_namespace_elt(), f_language::value_print_inner(), value_static_field(), and value_user_defined_cpp_op().
Definition at line 937 of file valops.c.
References value::allocate(), check_typedef(), type::code(), value::contents_all(), value::contents_writeable(), get_array_bounds(), is_floating_type(), is_integral_type(), type::is_vector(), type::length(), value::lval(), not_lval, type::target_type(), value_from_longest(), and value_one().
Referenced by eval_op_binary(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), and value_one().
Definition at line 1704 of file valarith.c.
References check_typedef(), type::code(), coerce_ref(), value::contents(), is_floating_value(), is_integral_type(), type::is_vector(), type, value::type(), and value_from_contents().
Referenced by eval_op_plus().
|
extern |
Definition at line 1191 of file valprint.c.
References apply_ext_lang_val_pretty_printer(), current_language, value_print_options::raw, value_check_printable(), and language_defn::value_print().
Referenced by check_thread_db_callback(), debug_val(), dwarf2_compute_name(), info_common_command_for_block(), maintenance_print_record_instruction(), print_formatted(), print_return_value_1(), print_scalar_formatted(), shell_internal_fn(), show_convenience(), show_values(), unwind_infopy_str(), and watchpoint_value_print().
Definition at line 79 of file valarith.c.
References check_typedef(), coerce_array(), find_size_for_pointer_math(), value::lval(), lval_internalvar, value::set_component_location(), value::type(), value_as_address(), and value_from_pointer().
Referenced by ada_get_tsd_from_tag(), ada_tag_value_at_base_address(), ada_value_ptr_subscript(), eval_binop_assign_modify(), eval_op_add(), eval_op_m2_subscript(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_sub(), ravenscar_thread_target::get_fpu_state(), gnuv2_virtual_fn_field(), gnuv3_method_ptr_to_value(), valpy_binop_throw(), value_subscript(), and vlscm_binop_gdbthrow().
Definition at line 100 of file valarith.c.
References check_typedef(), type::code(), coerce_array(), type::length(), type::target_type(), value::type(), type_length_units(), and value_as_long().
Referenced by eval_op_sub(), valpy_binop_throw(), and vlscm_binop_gdbthrow().
Definition at line 4116 of file valops.c.
References check_typedef(), type::code(), type::target_type(), value::type(), and value_from_component().
Referenced by complex_binop(), creal_internal_fn(), generic_value_print_complex(), value_complement(), and value_neg().
Definition at line 1609 of file valops.c.
References check_typedef(), type::code(), value::deprecated_set_type(), lookup_reference_type(), value::type(), and value_addr().
Referenced by c_value_print(), expr::ada_var_value_operation::evaluate(), gdbscm_reference_value(), typecmp(), valpy_reference_value(), value_arg_coerce(), value_cast(), value_dynamic_cast(), and value_reinterpret_cast().
Definition at line 667 of file valops.c.
References check_typedef(), type::code(), coerce_array(), lookup_pointer_type(), type::target_type(), type, value::type(), TYPE_IS_REFERENCE, value_addr(), value_cast(), value_ind(), and value_ref().
Referenced by valpy_do_cast(), and vlscm_do_cast().
|
extern |
Definition at line 1364 of file valops.c.
References value::address, allocate_repeat_value(), value::contents_all_raw(), value::enclosing_type(), value::lval(), lval_memory, read_value_memory(), value::set_address(), value::set_lval(), value::stack(), and type_length_units().
Referenced by eval_op_repeat().
|
extern |
Definition at line 3849 of file valops.c.
References check_typedef(), type::code(), coerce_ref(), lookup_pointer_type(), lookup_reference_type(), make_cv_type(), type::target_type(), type, value::type(), TYPE_CONST, TYPE_IS_REFERENCE, TYPE_VOLATILE, value_ind(), and value_rtti_type().
Referenced by c_value_print(), eval_op_structop_ptr(), value_actual_type(), and whatis_exp().
Definition at line 4030 of file valops.c.
References value::allocate(), value::allocate_lazy(), check_typedef(), type::code(), value::contents_copy(), create_array_type(), create_static_range_type(), get_discrete_bounds(), type::index_type(), value::lazy(), type::length(), value::lval(), lval_memory, value::offset(), type::set_code(), value::set_component_location(), value::set_offset(), type::target_type(), value::type(), type_length_units(), type_not_allocated(), and type_not_associated().
Referenced by ada_value_slice(), and expr::ternop_slice_operation::evaluate().
Definition at line 2870 of file value.c.
References value::allocate_optimized_out(), block_symbol::block, type::field(), FIELD_LOC_KIND_PHYSADDR, FIELD_LOC_KIND_PHYSNAME, field::loc_kind(), field::loc_physaddr(), field::loc_physname(), lookup_minimal_symbol(), lookup_symbol(), bound_minimal_symbol::minsym, block_symbol::symbol, field::type(), bound_minimal_symbol::value_address(), value_at_lazy(), value_of_variable(), and VAR_DOMAIN.
Referenced by cp_print_value_fields(), struct_field_searcher::search(), value_struct_element_index(), and value_struct_elt_for_reference().
Definition at line 1221 of file value.h.
References type::length(), and value_string().
Definition at line 1757 of file valops.c.
References value::allocate(), value::contents_raw(), current_language, type::length(), lookup_string_range_type(), and language_defn::string_lower_bound().
Referenced by expr::string_operation::evaluate(), lookup_child_selector(), lookup_objc_class(), value_nsstring(), and value_string().
|
extern |
Definition at line 2334 of file valops.c.
References check_typedef(), type::code(), coerce_array(), current_language, err, type::is_pointer_or_reference(), language_defn::la_language, language_fortran, name, search_struct_field(), search_struct_method(), TYPE_NFN_FIELDS, and value_ind().
Referenced by desc_bounds(), desc_data(), desc_one_bound(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_structop_ptr(), eval_op_structop_struct(), expr::opencl_structop_operation::evaluate(), expr::fortran_structop_operation::evaluate(), expr::rust_structop::evaluate(), expr::rust_aggregate_operation::evaluate(), expr::structop_base_operation::evaluate_funcall(), gdbscm_value_field(), rust_range(), rust_slice_to_array(), rust_subscript(), rust_val_print_slice(), valpy_getitem(), and value_user_defined_op().
|
extern |
Definition at line 2433 of file valops.c.
References check_typedef(), type::code(), coerce_array(), err, type::field(), type::is_pointer_or_reference(), field::is_static(), field::loc_bitpos(), type::num_fields(), field::type(), TYPE_N_BASECLASSES, types_equal(), and value_ind().
Referenced by valpy_getitem().
Definition at line 141 of file valarith.c.
References value::address, value::allocate(), value::bytes_available(), language_defn::c_style_arrays_p(), check_typedef(), type::code(), coerce_ref(), current_language, get_discrete_high_bound(), get_discrete_low_bound(), type::index_type(), value::lazy(), value::lval(), lval_memory, value::mark_bytes_unavailable(), value::set_address(), value::set_lval(), type::target_type(), value::type(), type_length_units(), value_coerce_array(), value_ind(), value_ptradd(), and value_subscripted_rvalue().
Referenced by ada_promote_array_of_integrals(), ada_value_subscript(), c_describe_child(), create_value(), eval_multi_subscript(), eval_op_m2_subscript(), eval_op_subscript(), expr::opencl_ternop_cond_operation::evaluate(), 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 257 of file valarith.c.
References check_typedef(), type::code(), type::is_array_like(), type::language(), language_def(), language_defn::to_array(), and value::type().
Referenced by valpy_to_array().
Definition at line 338 of file valops.c.
References check_typedef(), value::contents(), type::fixed_point_scaling_factor(), is_fixed_point_type(), is_floating_type(), is_integral_type(), type::is_unsigned(), gdb_mpz::read(), target_float_to_host_double(), value::type(), and type_byte_order().
Referenced by fixed_point_binop(), and value_cast_to_fixed_point().
|
inlinestatic |
Definition at line 1461 of file value.h.
References value_logical_not().
Referenced by breakpoint_cond_eval(), execute_control_command_1(), ada_catchpoint::should_stop_exception(), value_equal(), and value_less().
Definition at line 1373 of file valarith.c.
References value::allocate(), check_typedef(), type::code(), value::contents_all(), value::contents_writeable(), get_array_bounds(), type::is_vector(), type::length(), type::target_type(), value::type(), value_cast(), and value_equal().
Referenced by opencl_value_cast(), and value_binop().
|
extern |
Definition at line 396 of file valarith.c.
References call_function_by_hand(), check_typedef(), code, type::code(), coerce_ref(), EVAL_AVOID_SIDE_EFFECTS, value::lval(), type::target_type(), value::type(), value_addr(), value_user_defined_op(), and value::zero().
Referenced by eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_binary(), eval_op_equal(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_op_notequal(), eval_op_sub(), eval_op_subscript(), expr::logical_and_operation::evaluate(), expr::logical_or_operation::evaluate(), and valpy_binop_throw().
|
extern |
Definition at line 572 of file valarith.c.
References type::arch(), call_function_by_hand(), check_typedef(), code, type::code(), coerce_ref(), EVAL_AVOID_SIDE_EFFECTS, value::lval(), type::target_type(), value::type(), value_addr(), value_from_longest(), value_user_defined_op(), and value::zero().
Referenced by eval_op_complement(), eval_op_ind(), eval_op_lognot(), eval_op_neg(), eval_op_plus(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_structop_ptr(), expr::unop_ind_base_operation::evaluate_for_address(), and expr::structop_base_operation::evaluate_funcall().
|
extern |
Definition at line 101 of file valops.c.
Referenced by expr::scope_operation::evaluate_funcall(), expr::var_value_operation::evaluate_funcall(), and expr::structop_base_operation::evaluate_funcall().