GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "value.h"
#include "gdbcore.h"
#include "command.h"
#include "gdbcmd.h"
#include "target.h"
#include "language.h"
#include "demangle.h"
#include "regcache.h"
#include "block.h"
#include "target-float.h"
#include "objfiles.h"
#include "valprint.h"
#include "cli/cli-decode.h"
#include "extension.h"
#include <ctype.h>
#include "tracepoint.h"
#include "cp-abi.h"
#include "user-regs.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include <vector>
#include "completer.h"
#include "gdbsupport/selftest.h"
#include "gdbsupport/array-view.h"
#include "cli/cli-style.h"
#include "expop.h"
#include "inferior.h"
#include "varobj.h"
Go to the source code of this file.
Classes | |
struct | internal_function |
struct | range |
struct | value |
struct | ranges_and_idx |
union | internalvar_data |
struct | internalvar |
Macros | |
#define | MIN_VALUE_FOR_MAX_VALUE_SIZE 16 |
Enumerations | |
enum | internalvar_kind { INTERNALVAR_VOID , INTERNALVAR_VALUE , INTERNALVAR_MAKE_VALUE , INTERNALVAR_FUNCTION , INTERNALVAR_INTEGER , INTERNALVAR_STRING } |
Functions | |
static int | ranges_overlap (LONGEST offset1, LONGEST len1, LONGEST offset2, LONGEST len2) |
static int | ranges_contain (const std::vector< range > &ranges, LONGEST offset, LONGEST length) |
struct gdbarch * | get_value_arch (const struct value *value) |
int | value_bits_available (const struct value *value, LONGEST offset, LONGEST length) |
int | value_bytes_available (const struct value *value, LONGEST offset, LONGEST length) |
int | value_bits_any_optimized_out (const struct value *value, int bit_offset, int bit_length) |
int | value_entirely_available (struct value *value) |
static int | value_entirely_covered_by_range_vector (struct value *value, const std::vector< range > &ranges) |
int | value_entirely_unavailable (struct value *value) |
int | value_entirely_optimized_out (struct value *value) |
static void | insert_into_bit_range_vector (std::vector< range > *vectorp, LONGEST offset, LONGEST length) |
void | mark_value_bits_unavailable (struct value *value, LONGEST offset, LONGEST length) |
void | mark_value_bytes_unavailable (struct value *value, LONGEST offset, LONGEST length) |
static int | find_first_range_overlap (const std::vector< range > *ranges, int pos, LONGEST offset, LONGEST length) |
static int | memcmp_with_bit_offsets (const gdb_byte *ptr1, size_t offset1_bits, const gdb_byte *ptr2, size_t offset2_bits, size_t length_bits) |
static int | find_first_range_overlap_and_match (struct ranges_and_idx *rp1, struct ranges_and_idx *rp2, LONGEST offset1, LONGEST offset2, LONGEST length, ULONGEST *l, ULONGEST *h) |
static bool | value_contents_bits_eq (const struct value *val1, int offset1, const struct value *val2, int offset2, int length) |
bool | value_contents_eq (const struct value *val1, LONGEST offset1, const struct value *val2, LONGEST offset2, LONGEST length) |
bool | value_contents_eq (const struct value *val1, const struct value *val2) |
struct value * | allocate_value_lazy (struct type *type) |
gdb_static_assert (sizeof(LONGEST)<=MIN_VALUE_FOR_MAX_VALUE_SIZE) | |
static void | set_max_value_size (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_max_value_size (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | check_type_length_before_alloc (const struct type *type) |
static void | allocate_value_contents (struct value *val) |
struct value * | allocate_value (struct type *type) |
struct value * | allocate_repeat_value (struct type *type, int count) |
struct value * | allocate_computed_value (struct type *type, const struct lval_funcs *funcs, void *closure) |
struct value * | allocate_optimized_out_value (struct type *type) |
struct type * | value_type (const struct value *value) |
void | deprecated_set_value_type (struct value *value, struct type *type) |
LONGEST | value_offset (const struct value *value) |
void | set_value_offset (struct value *value, LONGEST offset) |
LONGEST | value_bitpos (const struct value *value) |
void | set_value_bitpos (struct value *value, LONGEST bit) |
LONGEST | value_bitsize (const struct value *value) |
void | set_value_bitsize (struct value *value, LONGEST bit) |
struct value * | value_parent (const struct value *value) |
void | set_value_parent (struct value *value, struct value *parent) |
gdb::array_view< gdb_byte > | value_contents_raw (struct value *value) |
gdb::array_view< gdb_byte > | value_contents_all_raw (struct value *value) |
struct type * | value_enclosing_type (const struct value *value) |
struct type * | value_actual_type (struct value *value, int resolve_simple_types, int *real_type_found) |
void | error_value_optimized_out (void) |
static void | require_not_optimized_out (const struct value *value) |
static void | require_available (const struct value *value) |
gdb::array_view< const gdb_byte > | value_contents_for_printing (struct value *value) |
gdb::array_view< const gdb_byte > | value_contents_for_printing_const (const struct value *value) |
gdb::array_view< const gdb_byte > | value_contents_all (struct value *value) |
static void | ranges_copy_adjusted (std::vector< range > *dst_range, int dst_bit_offset, const std::vector< range > &src_range, int src_bit_offset, int bit_length) |
static void | value_ranges_copy_adjusted (struct value *dst, int dst_bit_offset, const struct value *src, int src_bit_offset, int bit_length) |
static void | value_contents_copy_raw (struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length) |
static void | value_contents_copy_raw_bitwise (struct value *dst, LONGEST dst_bit_offset, struct value *src, LONGEST src_bit_offset, LONGEST bit_length) |
void | value_contents_copy (struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length) |
int | value_lazy (const struct value *value) |
void | set_value_lazy (struct value *value, int val) |
int | value_stack (const struct value *value) |
void | set_value_stack (struct value *value, int val) |
gdb::array_view< const gdb_byte > | value_contents (struct value *value) |
gdb::array_view< gdb_byte > | value_contents_writeable (struct value *value) |
int | value_optimized_out (struct value *value) |
void | mark_value_bytes_optimized_out (struct value *value, int offset, int length) |
void | mark_value_bits_optimized_out (struct value *value, LONGEST offset, LONGEST length) |
int | value_bits_synthetic_pointer (const struct value *value, LONGEST offset, LONGEST length) |
LONGEST | value_embedded_offset (const struct value *value) |
void | set_value_embedded_offset (struct value *value, LONGEST val) |
LONGEST | value_pointed_to_offset (const struct value *value) |
void | set_value_pointed_to_offset (struct value *value, LONGEST val) |
const struct lval_funcs * | value_computed_funcs (const struct value *v) |
void * | value_computed_closure (const struct value *v) |
enum lval_type * | deprecated_value_lval_hack (struct value *value) |
enum lval_type | value_lval_const (const struct value *value) |
CORE_ADDR | value_address (const struct value *value) |
CORE_ADDR | value_raw_address (const struct value *value) |
void | set_value_address (struct value *value, CORE_ADDR addr) |
struct internalvar ** | deprecated_value_internalvar_hack (struct value *value) |
struct frame_id * | deprecated_value_next_frame_id_hack (struct value *value) |
int * | deprecated_value_regnum_hack (struct value *value) |
int | deprecated_value_modifiable (const struct value *value) |
struct value * | value_mark (void) |
void | value_incref (struct value *val) |
void | value_decref (struct value *val) |
void | value_free_to_mark (const struct value *mark) |
value_ref_ptr | release_value (struct value *val) |
std::vector< value_ref_ptr > | value_release_to_mark (const struct value *mark) |
struct value * | value_copy (const value *arg) |
struct value * | make_cv_value (int cnst, int voltl, struct value *v) |
struct value * | value_non_lval (struct value *arg) |
void | value_force_lval (struct value *v, CORE_ADDR addr) |
void | set_value_component_location (struct value *component, const struct value *whole) |
int | record_latest_value (struct value *val) |
struct value * | access_value_history (int num) |
ULONGEST | value_history_count () |
static void | show_values (const char *num_exp, int from_tty) |
static void | init_if_undefined_command (const char *args, int from_tty) |
struct internalvar * | lookup_only_internalvar (const char *name) |
void | complete_internalvar (completion_tracker &tracker, const char *name) |
struct internalvar * | create_internalvar (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) |
struct value * | value_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var) |
int | get_internalvar_integer (struct internalvar *var, LONGEST *result) |
static int | get_internalvar_function (struct internalvar *var, struct internal_function **result) |
void | set_internalvar_component (struct internalvar *var, LONGEST offset, LONGEST bitpos, LONGEST bitsize, struct value *newval) |
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) |
static void | set_internalvar_function (struct internalvar *var, struct internal_function *f) |
void | clear_internalvar (struct internalvar *var) |
const char * | internalvar_name (const struct internalvar *var) |
static struct internal_function * | create_internal_function (const char *name, internal_function_fn handler, void *cookie) |
const char * | value_internal_function_name (struct value *val) |
struct value * | call_internal_function (struct gdbarch *gdbarch, const struct language_defn *language, struct value *func, int argc, struct value **argv) |
static void | function_command (const char *command, int from_tty) |
static struct cmd_list_element * | do_add_internal_function (const char *name, const char *doc, internal_function_fn handler, void *cookie) |
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) |
void | preserve_one_value (struct value *value, struct objfile *objfile, htab_t copied_types) |
static void | preserve_one_internalvar (struct internalvar *var, struct objfile *objfile, htab_t copied_types) |
static void | preserve_one_varobj (struct varobj *varobj, struct objfile *objfile, htab_t copied_types) |
void | preserve_values (struct objfile *objfile) |
static void | show_convenience (const char *ignore, int from_tty) |
struct value * | value_from_xmethod (xmethod_worker_up &&worker) |
struct type * | result_type_of_xmethod (struct value *method, gdb::array_view< value * > argv) |
struct value * | call_xmethod (struct value *method, gdb::array_view< value * > argv) |
LONGEST | value_as_long (struct value *val) |
CORE_ADDR | value_as_address (struct value *val) |
LONGEST | unpack_long (struct type *type, const gdb_byte *valaddr) |
CORE_ADDR | unpack_pointer (struct type *type, const gdb_byte *valaddr) |
bool | is_floating_value (struct value *val) |
struct value * | value_static_field (struct type *type, int fieldno) |
void | set_value_enclosing_type (struct value *val, struct type *new_encl_type) |
struct value * | value_primitive_field (struct value *arg1, LONGEST offset, int fieldno, struct type *arg_type) |
struct value * | value_field (struct value *arg1, int fieldno) |
struct value * | value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *type, LONGEST offset) |
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) |
LONGEST | unpack_field_as_long (struct type *type, const gdb_byte *valaddr, int fieldno) |
void | unpack_value_bitfield (struct value *dest_val, LONGEST bitpos, LONGEST bitsize, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val) |
struct value * | value_field_bitfield (struct type *type, int fieldno, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val) |
void | modify_field (struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize) |
void | pack_long (gdb_byte *buf, struct type *type, LONGEST num) |
static void | pack_unsigned_long (gdb_byte *buf, struct type *type, ULONGEST num) |
struct value * | value_zero (struct type *type, enum lval_type lv) |
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_contents_and_address_unresolved (struct type *type, const gdb_byte *valaddr, CORE_ADDR address) |
struct value * | value_from_contents_and_address (struct type *type, const gdb_byte *valaddr, CORE_ADDR address) |
struct value * | value_from_contents (struct type *type, const gdb_byte *contents) |
struct value * | value_from_history_ref (const char *h, const char **endp) |
struct value * | value_from_component (struct value *whole, struct type *type, LONGEST offset) |
struct value * | value_from_component_bitsize (struct value *whole, struct type *type, LONGEST bit_offset, LONGEST bit_length) |
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_value, CORE_ADDR original_value_address) |
struct value * | coerce_ref (struct value *arg) |
struct value * | coerce_array (struct value *arg) |
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) |
void | set_value_initialized (struct value *val, int status) |
int | value_initialized (const struct value *val) |
static void | value_fetch_lazy_bitfield (struct value *val) |
static void | value_fetch_lazy_memory (struct value *val) |
static void | value_fetch_lazy_register (struct value *val) |
void | value_fetch_lazy (struct value *val) |
static struct value * | isvoid_internal_fn (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv) |
static struct value * | creal_internal_fn (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv) |
static struct value * | cimag_internal_fn (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv) |
void | _initialize_values () |
void | finalize_values () |
Variables | |
static struct cmd_list_element * | functionlist |
static std::vector< value_ref_ptr > | value_history |
static std::vector< value_ref_ptr > | all_values |
static int | max_value_size = 65536 |
static struct internalvar * | internalvars |
enum internalvar_kind |
void _initialize_values | ( | ) |
Definition at line 4402 of file value.c.
Referenced by initialize_all_files().
struct value * access_value_history | ( | int | num | ) |
Definition at line 1947 of file value.c.
References get(), value_copy(), and 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().
void add_internal_function | ( | const char * | name, |
const char * | doc, | ||
internal_function_fn | handler, | ||
void * | cookie | ||
) |
Definition at line 2593 of file value.c.
References do_add_internal_function(), and name.
Referenced by fnpy_init().
void add_internal_function | ( | gdb::unique_xmalloc_ptr< char > && | name, |
gdb::unique_xmalloc_ptr< char > && | doc, | ||
internal_function_fn | handler, | ||
void * | cookie | ||
) |
Definition at line 2602 of file value.c.
References do_add_internal_function(), cmd_list_element::doc, cmd_list_element::doc_allocated, name, and cmd_list_element::name_allocated.
struct value * allocate_computed_value | ( | struct type * | type, |
const struct lval_funcs * | funcs, | ||
void * | closure | ||
) |
Definition at line 1081 of file value.c.
References allocate_value_lazy(), value::closure, value::computed, value::funcs, value::location, lval_computed, and VALUE_LVAL.
Referenced by create_value(), dwarf_expr_context::fetch_result(), siginfo_make_value(), tlb_make_value(), and value_of_dwarf_reg_entry().
Definition at line 1097 of file value.c.
References allocate_value_lazy(), type::length(), mark_value_bytes_optimized_out(), and set_value_lazy().
Referenced by coerce_unspec_val_to_type(), dwarf2_evaluate_loc_desc_full(), expr::var_value_operation::evaluate_for_sizeof(), fetch_const_value_from_synthetic_pointer(), dwarf_expr_context::fetch_result(), frame_unwind_got_optimized(), loclist_read_variable_at_entry(), read_frame_arg(), language_defn::read_var_value(), s390_unwind_pseudo_register(), typy_optimized_out(), and value_static_field().
Definition at line 1066 of file value.c.
References allocate_value(), current_language, lookup_array_range_type(), and language_defn::string_lower_bound().
Referenced by eval_op_repeat(), and value_repeat().
Definition at line 1053 of file value.c.
References allocate_value_contents(), allocate_value_lazy(), and value::lazy.
Referenced by aarch64_pseudo_read_value(), ada_convert_actual(), ada_promote_array_of_integrals(), ada_value_binop(), ada_value_primitive_packed_val(), allocate_repeat_value(), amd64_pseudo_register_read_value(), cast_into_complex(), coerce_unspec_val_to_type(), readable_regcache::cooked_read_value(), create_value(), default_value_from_register(), dwarf2_compute_name(), dwarf2_evaluate_loc_desc_full(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), empty_array(), eval_op_objc_msgcall(), eval_op_rust_array(), eval_op_type(), expr::ada_string_operation::evaluate(), expr::ada_funcall_operation::evaluate(), expr::c_string_operation::evaluate(), expr::opencl_ternop_cond_operation::evaluate(), expr::decltype_operation::evaluate(), expr::typeid_operation::evaluate(), expr::unop_extract_operation::evaluate(), expr::array_operation::evaluate(), expr::rust_aggregate_operation::evaluate(), evaluate_subexp_do_call(), extract_bitfield_from_watchpoint_value(), dwarf_expr_context::fetch_result(), fixed_point_binop(), fortran_array_shape(), fortran_bounds_all_dims(), get_call_return_value(), get_return_value(), i386_pseudo_register_read_value(), python_xmethod_worker::invoke(), lval_func_write(), make_array_descriptor(), opencl_logical_not(), language_defn::read_var_value(), riscv_return_value(), scalar_binop(), sdata_make_value(), siginfo_make_value(), tlb_make_value(), value_array(), value_cast(), value_cast_to_fixed_point(), value_complement(), value_concat(), value_copy(), value_cstring(), value_field_bitfield(), value_fn_field(), value_from_component(), value_from_component_bitsize(), value_from_contents(), value_from_host_double(), value_from_longest(), value_from_pointer(), value_from_register(), value_from_ulongest(), value_from_xmethod(), value_literal_complex(), value_maybe_namespace_elt(), value_neg(), value_non_lval(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), value_of_internalvar(), value_one(), value_primitive_field(), value_slice(), value_string(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), value_vector_widen(), vector_binop(), and vector_relop().
|
static |
Definition at line 1040 of file value.c.
References check_type_length_before_alloc(), value::contents, value::enclosing_type, and type::length().
Referenced by allocate_value(), value_contents_all_raw(), value_contents_raw(), and value_fetch_lazy().
Definition at line 948 of file value.c.
References all_values, and check_typedef().
Referenced by allocate_computed_value(), allocate_optimized_out_value(), allocate_value(), coerce_unspec_val_to_type(), rust_val_print_slice(), value_copy(), value_from_component(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_of_register_lazy(), value_primitive_field(), value_slice(), and value_zero().
struct value * call_internal_function | ( | struct gdbarch * | gdbarch, |
const struct language_defn * | language, | ||
struct value * | func, | ||
int | argc, | ||
struct value ** | argv | ||
) |
Definition at line 2551 of file value.c.
References internal_function::cookie, func, get_internalvar_function(), internal_function::handler, lval_internalvar, VALUE_INTERNALVAR, and VALUE_LVAL.
Referenced by expr::ada_funcall_operation::evaluate(), and evaluate_subexp_do_call().
Definition at line 2777 of file value.c.
References code, xmethod_worker::invoke(), value::location, value::lval, lval_xcallable, value_type(), and value::xm_worker.
Referenced by evaluate_subexp_do_call(), value_x_binop(), and value_x_unop().
|
static |
Definition at line 1022 of file value.c.
References type::length(), max_value_size, and type::name().
Referenced by allocate_value_contents(), and set_value_enclosing_type().
|
static |
Definition at line 4229 of file value.c.
References check_typedef(), type::code(), value_imaginary_part(), and value_type().
void clear_internalvar | ( | struct internalvar * | var | ) |
Definition at line 2498 of file value.c.
References INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, internalvar_data::string, internalvar::u, internalvar_data::value, value_decref(), 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(), should_stop_exception(), and x_command().
Definition at line 3926 of file value.c.
References language_defn::c_style_arrays_p(), check_typedef(), type::code(), coerce_ref(), current_language, type::is_vector(), value_coerce_array(), value_coerce_function(), and value_type().
Referenced by expr::unop_ind_base_operation::evaluate_for_address(), value_as_address(), value_as_long(), value_assign(), value_equal(), value_find_oload_method_list(), value_ind(), value_less(), value_logical_not(), value_ptradd(), value_ptrdiff(), value_reinterpret_cast(), value_struct_elt(), value_struct_elt_bitpos(), and varobj_set_value().
Definition at line 3902 of file value.c.
References check_typedef(), coerce_ref_if_computed(), readjust_indirect_value_type(), type::target_type(), TYPE_IS_REFERENCE, unpack_pointer(), value_at_lazy(), value_contents(), value_enclosing_type(), and value_type().
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_referenced_value(), gdbscm_value_subscript(), gnuv3_get_typeid(), gnuv3_print_vtable(), install_new_value(), opencl_value_cast(), pos_atr(), read_frame_arg(), scalar_binop(), unop_promote(), valpy_get_dynamic_type(), valpy_getitem(), valpy_referenced_value(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), value_complement(), value_neg(), value_pos(), value_rtti_indirect_type(), value_subscript(), value_x_binop(), value_x_unop(), varobj_value_has_mutated(), and x_command().
Definition at line 3857 of file value.c.
References check_typedef(), lval_funcs::coerce_ref, lval_computed, TYPE_IS_REFERENCE, value_computed_funcs(), value_lval_const(), and value_type().
Referenced by ada_val_print_ref(), coerce_ref(), generic_val_print_ref(), and valprint_check_validity().
int compile_internalvar_to_ax | ( | struct internalvar * | var, |
struct agent_expr * | expr, | ||
struct axs_value * | value | ||
) |
Definition at line 2215 of file value.c.
References internalvar_funcs::compile_to_ax, internalvar_data::data, internalvar_data::functions, INTERNALVAR_MAKE_VALUE, internalvar::kind, internalvar_data::make_value, and internalvar::u.
Referenced by expr::internalvar_operation::do_generate_ax().
void complete_internalvar | ( | completion_tracker & | tracker, |
const char * | name | ||
) |
Definition at line 2165 of file value.c.
References completion_tracker::add_completion(), internalvars, name, internalvar::name, and internalvar::next.
Referenced by condition_completer().
|
static |
Definition at line 4211 of file value.c.
References check_typedef(), type::code(), value_real_part(), and value_type().
|
static |
Definition at line 2526 of file value.c.
References internal_function::cookie, internal_function::handler, name, and internal_function::name.
Referenced by do_add_internal_function().
struct internalvar * create_internalvar | ( | const char * | name | ) |
Definition at line 2181 of file value.c.
References INTERNALVAR_VOID, internalvars, internalvar::kind, name, internalvar::name, and internalvar::next.
Referenced by create_internalvar_type_lazy(), init_main(), lookup_internalvar(), and parser_state::push_dollar().
struct internalvar * create_internalvar_type_lazy | ( | const char * | name, |
const struct internalvar_funcs * | funcs, | ||
void * | data | ||
) |
Definition at line 2200 of file value.c.
References create_internalvar(), internalvar_data::data, internalvar_data::functions, INTERNALVAR_MAKE_VALUE, internalvar::kind, internalvar_data::make_value, name, and internalvar::u.
Referenced by _initialize_windows_tdep(), and initialize_inferiors().
Definition at line 1114 of file value.c.
References value::type.
Referenced by ada_value_assign(), ada_value_print_inner(), ada_value_subscript(), coerce_for_assign(), eval_op_objc_msgcall(), gnuv2_virtual_fn_field(), make_cv_value(), readjust_indirect_value_type(), struct_field_searcher::search(), value_addr(), value_cast(), value_cast_pointers(), value_full_object(), value_nsstring(), and value_ref().
struct internalvar ** deprecated_value_internalvar_hack | ( | struct value * | value | ) |
Definition at line 1638 of file value.c.
References value::internalvar, and value::location.
Definition at line 1595 of file value.c.
References value::lval.
int deprecated_value_modifiable | ( | const struct value * | value | ) |
Definition at line 1658 of file value.c.
References value::modifiable.
Referenced by ada_value_assign(), expr::ada_aggregate_operation::assign_aggregate(), can_use_hardware_watchpoint(), eval_opencl_assign(), ppc_linux_nat_target::num_memory_accesses(), and value_assign().
Definition at line 1644 of file value.c.
References value::location, value::lval, lval_register, value::next_frame_id, and value::reg.
int * deprecated_value_regnum_hack | ( | struct value * | value | ) |
Definition at line 1651 of file value.c.
References value::location, value::lval, lval_register, value::reg, and value::regnum.
|
static |
Definition at line 2578 of file value.c.
References add_cmd(), create_internal_function(), function_command(), functionlist, lookup_internalvar(), name, no_class, and set_internalvar_function().
Referenced by add_internal_function(), and add_internal_function().
void error_value_optimized_out | ( | void | ) |
Definition at line 1239 of file value.c.
Referenced by address_from_register(), and require_not_optimized_out().
void finalize_values | ( | ) |
|
static |
Definition at line 649 of file value.c.
References range::length, range::offset, and ranges_overlap().
Referenced by find_first_range_overlap_and_match().
|
static |
Definition at line 786 of file value.c.
References find_first_range_overlap(), ranges_and_idx::idx, range::length, range::offset, offset1, and ranges_and_idx::ranges.
Referenced by value_contents_bits_eq().
|
static |
Definition at line 2570 of file value.c.
Referenced by do_add_internal_function().
gdb_static_assert | ( | sizeof(LONGEST)<= | MIN_VALUE_FOR_MAX_VALUE_SIZE | ) |
|
static |
Definition at line 2359 of file value.c.
References internalvar_data::fn, internalvar_data::function, INTERNALVAR_FUNCTION, internalvar::kind, and internalvar::u.
Referenced by call_internal_function(), set_internalvar(), and value_internal_function_name().
int get_internalvar_integer | ( | struct internalvar * | var, |
LONGEST * | result | ||
) |
Definition at line 2336 of file value.c.
References check_typedef(), type::code(), internalvar_data::integer, INTERNALVAR_INTEGER, INTERNALVAR_VALUE, internalvar::kind, internalvar::u, internalvar_data::val, internalvar_data::value, value_as_long(), and value_type().
Referenced by get_number_trailer(), get_ulongest(), and linespec_parse_variable().
Definition at line 377 of file value.c.
References type::arch(), and value_type().
Referenced by read_value_memory(), set_internalvar_component(), value_contents_copy_raw(), value_contents_raw(), and value_primitive_field().
|
static |
Definition at line 2107 of file value.c.
References evaluate_expression(), expr::internalvar_operation::get_internalvar(), expr::assign_operation::get_lhs(), INTERNALVAR_VOID, internalvar::kind, and parse_expression().
|
static |
Definition at line 462 of file value.c.
References range::length, range::offset, and ranges_overlap().
Referenced by mark_value_bits_optimized_out(), mark_value_bits_unavailable(), and ranges_copy_adjusted().
const char * internalvar_name | ( | const struct internalvar * | var | ) |
Definition at line 2520 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().
bool is_floating_value | ( | struct value * | val | ) |
Definition at line 3020 of file value.c.
References check_typedef(), is_floating_type(), target_float_is_valid(), value_contents(), 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().
|
static |
Definition at line 4193 of file value.c.
References type::code(), value_from_longest(), and value_type().
struct internalvar * lookup_internalvar | ( | const char * | name | ) |
Definition at line 2235 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(), should_stop_exception(), and x_command().
struct internalvar * lookup_only_internalvar | ( | const char * | name | ) |
Definition at line 2150 of file value.c.
References internalvars, name, internalvar::name, and internalvar::next.
Referenced by gdbpy_convenience_variable(), gdbpy_set_convenience_variable(), linespec_parse_variable(), lookup_internalvar(), parser_state::push_dollar(), and yyparse().
Definition at line 1812 of file value.c.
References deprecated_set_value_type(), value::enclosing_type, make_cv_type(), set_value_enclosing_type(), value_copy(), value_enclosing_type(), and value_type().
Referenced by gdbscm_value_const_value(), and valpy_const_value().
void mark_value_bits_optimized_out | ( | struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 1536 of file value.c.
References insert_into_bit_range_vector(), and value::optimized_out.
Referenced by mark_value_bytes_optimized_out(), and rw_pieced_value().
void mark_value_bits_unavailable | ( | struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 628 of file value.c.
References insert_into_bit_range_vector(), range::length, range::offset, and value::unavailable.
Referenced by mark_value_bytes_unavailable(), read_value_memory(), and rw_pieced_value().
void mark_value_bytes_optimized_out | ( | struct value * | value, |
int | offset, | ||
int | length | ||
) |
Definition at line 1526 of file value.c.
References mark_value_bits_optimized_out().
Referenced by allocate_optimized_out_value(), and value_from_register().
void mark_value_bytes_unavailable | ( | struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 635 of file value.c.
References range::length, mark_value_bits_unavailable(), and range::offset.
Referenced by aarch64_pseudo_read_value(), aarch64_pseudo_read_value_1(), amd64_pseudo_register_read_value(), readable_regcache::cooked_read_value(), dwarf2_evaluate_loc_desc_full(), i386_pseudo_register_read_into_value(), and value_from_register().
|
static |
void modify_field | ( | struct type * | type, |
gdb_byte * | addr, | ||
LONGEST | fieldval, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize | ||
) |
Definition at line 3466 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().
void pack_long | ( | gdb_byte * | buf, |
struct type * | type, | ||
LONGEST | num | ||
) |
Definition at line 3513 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().
|
static |
Definition at line 3563 of file value.c.
References type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), check_typedef(), type::code(), type::length(), store_typed_address(), store_unsigned_integer(), target_float_from_ulongest(), and type_byte_order().
Referenced by value_from_ulongest().
|
static |
Definition at line 2632 of file value.c.
References copy_type_recursive(), INTERNALVAR_INTEGER, INTERNALVAR_VALUE, preserve_one_value(), and cmd_list_element::var.
Referenced by preserve_values().
Definition at line 2618 of file value.c.
References copy_type_recursive(), value::enclosing_type, type::objfile_owner(), and value::type.
Referenced by gdbpy_preserve_values(), gdbscm_preserve_values(), preserve_one_internalvar(), preserve_one_varobj(), and preserve_values().
|
static |
Definition at line 2655 of file value.c.
References copy_type_recursive(), type::is_objfile_owned(), type::objfile_owner(), preserve_one_value(), varobj::type, and varobj::value.
Referenced by preserve_values().
void preserve_values | ( | struct objfile * | objfile | ) |
Definition at line 2676 of file value.c.
References all_root_varobjs(), create_copied_types_hash(), internalvars, internalvar::next, preserve_ext_lang_values(), preserve_one_internalvar(), preserve_one_value(), preserve_one_varobj(), and value_history.
Referenced by reread_symbols(), and objfile::~objfile().
|
static |
Definition at line 114 of file value.c.
References range::length, range::offset, and ranges_overlap().
Referenced by value_bits_any_optimized_out(), and value_bits_available().
|
static |
Definition at line 1296 of file value.c.
References insert_into_bit_range_vector().
Referenced by value_ranges_copy_adjusted().
|
static |
Definition at line 100 of file value.c.
References offset1.
Referenced by find_first_range_overlap(), insert_into_bit_range_vector(), and ranges_contain().
struct value * readjust_indirect_value_type | ( | struct value * | value, |
struct type * | enc_type, | ||
const struct type * | original_type, | ||
struct value * | original_value, | ||
CORE_ADDR | original_value_address | ||
) |
Definition at line 3877 of file value.c.
References deprecated_set_value_type(), type::is_pointer_or_reference(), resolve_dynamic_type(), set_value_embedded_offset(), set_value_enclosing_type(), type::target_type(), value_full_object(), and value_pointed_to_offset().
Referenced by coerce_ref(), and value_ind().
int record_latest_value | ( | struct value * | val | ) |
Definition at line 1926 of file value.c.
References value::modifiable, release_value(), value_fetch_lazy(), value_history, and value_lazy().
Referenced by dump_arc_instruction_command(), gdbpy_add_history(), gdbscm_history_append_x(), print_value(), and finish_command_fsm::should_stop().
value_ref_ptr release_value | ( | struct value * | val | ) |
Definition at line 1714 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(), record_latest_value(), register_changed_p(), set_internalvar(), update_watchpoint(), valpy_init(), value_of_dwarf_reg_entry(), value_to_value_object(), vlscm_scm_from_value(), watch_command_1(), and watchpoint_check().
|
static |
Definition at line 1258 of file value.c.
References value::unavailable.
Referenced by value_contents(), and value_contents_all().
|
static |
Definition at line 1245 of file value.c.
References error_value_optimized_out(), value::lval, lval_register, and value::optimized_out.
Referenced by value_contents(), and value_contents_all().
Definition at line 2766 of file value.c.
References code, xmethod_worker::get_result_type(), value::location, value::lval, lval_xcallable, value_type(), and value::xm_worker.
Referenced by evaluate_subexp_do_call(), value_x_binop(), and value_x_unop().
void set_internalvar | ( | struct internalvar * | var, |
struct value * | val | ||
) |
Definition at line 2404 of file value.c.
References internalvar_data::canonical, check_typedef(), clear_internalvar(), code, DYN_PROP_DATA_LOCATION, internalvar_data::fn, internalvar_data::function, get_internalvar_function(), INTERNALVAR_FUNCTION, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, lval_internalvar, value::modifiable, internalvar::name, release_value(), type::remove_dyn_prop(), internalvar::u, internalvar_data::val, internalvar_data::value, value_copy(), value_fetch_lazy(), VALUE_INTERNALVAR, value_lazy(), VALUE_LVAL, and value_type().
Referenced by find_command(), gdbpy_set_convenience_variable(), set_next_address(), should_stop_exception(), value_assign(), and x_command().
void set_internalvar_component | ( | struct internalvar * | var, |
LONGEST | offset, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize, | ||
struct value * | newval | ||
) |
Definition at line 2374 of file value.c.
References gdbarch_addressable_memory_unit_size(), get_value_arch(), INTERNALVAR_VALUE, internalvar::kind, modify_field(), internalvar::u, internalvar_data::value, value_as_long(), value_contents(), value_contents_writeable(), and value_type().
Referenced by value_assign().
|
static |
Definition at line 2486 of file value.c.
References internalvar_data::canonical, clear_internalvar(), f(), internalvar_data::fn, internalvar_data::function, INTERNALVAR_FUNCTION, internalvar::kind, and internalvar::u.
Referenced by do_add_internal_function().
void set_internalvar_integer | ( | struct internalvar * | var, |
LONGEST | l | ||
) |
Definition at line 2465 of file value.c.
References clear_internalvar(), internalvar_data::integer, INTERNALVAR_INTEGER, internalvar::kind, internalvar_data::type, internalvar::u, and internalvar_data::val.
Referenced by core_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().
void set_internalvar_string | ( | struct internalvar * | var, |
const char * | string | ||
) |
Definition at line 2476 of file value.c.
References clear_internalvar(), INTERNALVAR_STRING, internalvar::kind, internalvar_data::string, and internalvar::u.
Referenced by set_traceframe_context().
|
static |
Definition at line 989 of file value.c.
References max_value_size, and MIN_VALUE_FOR_MAX_VALUE_SIZE.
void set_value_address | ( | struct value * | value, |
CORE_ADDR | addr | ||
) |
Definition at line 1631 of file value.c.
References value::address, value::location, value::lval, and lval_memory.
Referenced by coerce_unspec_val_to_type(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), ensure_lval(), rust_val_print_slice(), set_value_component_location(), value_fn_field(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), and value_repeat().
void set_value_bitpos | ( | struct value * | value, |
LONGEST | bit | ||
) |
Definition at line 1136 of file value.c.
References bit, and value::bitpos.
Referenced by ada_value_primitive_packed_val(), and coerce_unspec_val_to_type().
void set_value_bitsize | ( | struct value * | value, |
LONGEST | bit | ||
) |
Definition at line 1147 of file value.c.
References bit, and value::bitsize.
Referenced by ada_value_primitive_packed_val(), and coerce_unspec_val_to_type().
Definition at line 1858 of file value.c.
References value::closure, value::computed, lval_funcs::copy_closure, value::funcs, value::location, value::lval, lval_computed, lval_internalvar, lval_internalvar_component, lval_memory, lval_xcallable, PROP_CONST, set_value_address(), TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, value_lazy(), VALUE_LVAL, and value_type().
Referenced by ada_value_primitive_packed_val(), coerce_unspec_val_to_type(), value_from_component(), value_primitive_field(), value_ptradd(), and value_slice().
void set_value_embedded_offset | ( | struct value * | value, |
LONGEST | val | ||
) |
Definition at line 1561 of file value.c.
References value::embedded_offset.
Referenced by readjust_indirect_value_type(), struct_field_searcher::search(), value_full_object(), and value_non_lval().
Definition at line 3086 of file value.c.
References check_type_length_before_alloc(), value::contents, value::enclosing_type, type::length(), value_enclosing_type(), and xrealloc().
Referenced by make_cv_value(), readjust_indirect_value_type(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), and value_full_object().
void set_value_initialized | ( | struct value * | val, |
int | status | ||
) |
Definition at line 3984 of file value.c.
References value::initialized, and status.
Referenced by dwarf_expr_context::fetch_result().
void set_value_lazy | ( | struct value * | value, |
int | val | ||
) |
Definition at line 1446 of file value.c.
References value::lazy.
Referenced by allocate_optimized_out_value(), gnuv2_virtual_fn_field(), value_assign(), value_fetch_lazy(), value_fetch_lazy_register(), and value_of_dwarf_reg_entry().
void set_value_offset | ( | struct value * | value, |
LONGEST | offset | ||
) |
Definition at line 1125 of file value.c.
References value::offset.
Referenced by ada_value_primitive_packed_val(), default_value_from_register(), dwarf_expr_context::fetch_result(), gnuv2_virtual_fn_field(), s390_value_from_register(), and value_slice().
Definition at line 1161 of file value.c.
References value::parent.
Referenced by ada_value_primitive_packed_val(), and value_primitive_field().
void set_value_pointed_to_offset | ( | struct value * | value, |
LONGEST | val | ||
) |
Definition at line 1573 of file value.c.
References value::pointed_to_offset.
Referenced by value_addr(), value_assign(), value_cast(), value_cast_pointers(), and value_non_lval().
void set_value_stack | ( | struct value * | value, |
int | val | ||
) |
Definition at line 1458 of file value.c.
References value::stack.
Referenced by dwarf_expr_context::fetch_result(), and frame_unwind_got_memory().
|
static |
Definition at line 2701 of file value.c.
References fprintf_styled(), gdb_printf(), gdb_stdout, get_current_arch(), get_user_print_options(), internalvars, metadata_style, internalvar::name, internalvar::next, cli_style_option::style(), value_of_internalvar(), and value_print().
|
static |
Definition at line 1005 of file value.c.
References gdb_printf(), and max_value_size.
|
static |
Definition at line 1980 of file value.c.
References access_value_history(), gdb_printf(), gdb_stdout, get_user_print_options(), parse_and_eval_long(), set_repeat_arguments(), value_history, and value_print().
enum return_value_convention struct_return_convention | ( | struct gdbarch * | gdbarch, |
struct value * | function, | ||
struct type * | value_type | ||
) |
Definition at line 3951 of file value.c.
References code, type::code(), gdbarch_return_value(), and value_type().
Referenced by return_command(), and using_struct_return().
LONGEST unpack_bits_as_long | ( | struct type * | field_type, |
const gdb_byte * | valaddr, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize | ||
) |
Definition at line 3297 of file value.c.
References check_typedef(), extract_unsigned_integer(), type::is_unsigned(), type::length(), read_offset(), and type_byte_order().
Referenced by compute_variant_fields_inner(), unpack_field_as_long(), unpack_long(), unpack_value_bitfield(), and unpack_value_field_as_long().
LONGEST unpack_field_as_long | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
int | fieldno | ||
) |
Definition at line 3381 of file value.c.
References type::field(), field::loc_bitpos(), field::type(), TYPE_FIELD_BITSIZE, 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().
LONGEST unpack_long | ( | struct type * | type, |
const gdb_byte * | valaddr | ||
) |
Definition at line 2921 of file value.c.
References gdb_mpz::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(), unpack_long(), gdb_mpz::val, and gdb_mpq::val.
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(), value_as_address(), and value_as_long().
CORE_ADDR unpack_pointer | ( | struct type * | type, |
const gdb_byte * | valaddr | ||
) |
Definition at line 3012 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(), pyuw_value_obj_to_pointer(), f_language::value_print_inner(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
void unpack_value_bitfield | ( | struct value * | dest_val, |
LONGEST | bitpos, | ||
LONGEST | bitsize, | ||
const gdb_byte * | valaddr, | ||
LONGEST | embedded_offset, | ||
const struct value * | val | ||
) |
Definition at line 3399 of file value.c.
References type::length(), store_signed_integer(), type_byte_order(), unpack_bits_as_long(), value_contents_raw(), value_ranges_copy_adjusted(), and value_type().
Referenced by extract_bitfield_from_watchpoint_value(), value_fetch_lazy_bitfield(), and value_field_bitfield().
int unpack_value_field_as_long | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
LONGEST | embedded_offset, | ||
int | fieldno, | ||
const struct value * | val, | ||
LONGEST * | result | ||
) |
Definition at line 3356 of file value.c.
References type::bit_offset(), type::field(), field::loc_bitpos(), field::type(), TYPE_FIELD_BITSIZE, unpack_bits_as_long(), value_bits_any_optimized_out(), and value_bits_available().
Referenced by print_go_string().
int using_struct_return | ( | struct gdbarch * | gdbarch, |
struct value * | function, | ||
struct type * | value_type | ||
) |
Definition at line 3969 of file value.c.
References type::code(), RETURN_VALUE_REGISTER_CONVENTION, struct_return_convention(), and value_type().
Referenced by call_function_by_hand_dummy(), eval_op_objc_msgcall(), and sparc32_push_dummy_code().
struct type * value_actual_type | ( | struct value * | value, |
int | resolve_simple_types, | ||
int * | real_type_found | ||
) |
Definition at line 1197 of file value.c.
References check_typedef(), type::code(), get_user_print_options(), type::is_pointer_or_reference(), type::target_type(), value_enclosing_type(), value_optimized_out(), value_rtti_indirect_type(), and value_type().
Referenced by adjust_value_for_child_access(), create_child_with_value(), update_type_if_necessary(), and varobj_create().
CORE_ADDR value_address | ( | const struct value * | value | ) |
Definition at line 1607 of file value.c.
References value::address, value::location, value::lval, lval_memory, value::offset, value::parent, PROP_CONST, TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, value_address(), and value_type().
Referenced by ada_exception_message_1(), ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value(), ada_value_assign(), ada_value_primitive_packed_val(), ada_value_print_inner(), ada_value_struct_elt(), address_of_variable(), c_get_string(), c_value_print_array(), call_function_by_hand_dummy(), can_use_hardware_watchpoint(), ppc_linux_nat_target::check_condition(), coerce_unspec_val_to_type(), compare_value_and_voffset(), convert_one_symbol(), convert_one_symbol(), cp_print_static_field(), cp_print_value(), d_value_print_inner(), decode_constrained_packed_array(), desc_bounds(), do_compile_dwarf_expr_to_c(), dump_value_to_file(), dwarf2_locexpr_baton_eval(), encode_actions_1(), eq_value_and_voffset(), eval_op_f_loc(), eval_op_func_static_var(), expr::fortran_structop_operation::evaluate(), expr::rust_struct_anon::evaluate(), expr::rust_structop::evaluate(), expr::structop_base_operation::evaluate_funcall(), evaluate_subexp_do_call(), execute_stack_op(), find_function_addr(), find_method_list(), fortran_associated(), frame_register_unwind(), frame_unwind_register_value(), frv_push_dummy_call(), gdbscm_value_to_lazy_string(), generic_val_print_array(), generic_value_print(), gnuv2_value_rtti_type(), gnuv3_get_typeid(), gnuv3_rtti_type(), hash_value_and_voffset(), info_frame_command_core(), is_unique_ancestor(), call_site_target::iterate_over_addresses(), locexpr_get_frame_base(), loclist_get_frame_base(), m2_print_array_contents(), m32r_push_dummy_call(), mips_eabi_push_dummy_call(), mn10300_push_dummy_call(), msp430_push_dummy_call(), or1k_push_dummy_call(), pascal_object_print_static_field(), pascal_object_print_value(), rust_language::print_enum(), print_formatted(), print_one_vtable(), read_fat_string_value(), struct_field_searcher::search(), search_struct_method(), thin_data_pntr(), unwrap_value(), update_watchpoint(), v850_push_dummy_call(), valpy_lazy_string(), value_addr(), value_address(), value_as_address(), value_assign(), value_assign_to_component(), value_cast(), value_cast_structs(), value_coerce_array(), value_coerce_function(), value_dynamic_cast(), value_fetch_lazy_memory(), value_fetch_lazy_register(), value_full_object(), value_pointer(), value_primitive_field(), f_language::value_print_inner(), go_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), value_repeat(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), value_subscripted_rvalue(), and x_command().
CORE_ADDR value_as_address | ( | struct value * | val | ) |
Definition at line 2804 of file value.c.
References type::arch(), code, coerce_array(), gdbarch_addr_bits_remove(), gdbarch_integer_to_address(), gdbarch_integer_to_address_p(), unpack_long(), value_address(), value_as_long(), value_contents(), and value_type().
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(), ppc64_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_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().
LONGEST value_as_long | ( | struct value * | val | ) |
Definition at line 2791 of file value.c.
References coerce_array(), unpack_long(), value_contents(), and value_type().
Referenced by ada_array_bound(), ada_array_length(), ada_get_tcb_types_info(), ada_tag_value_at_base_address(), ada_ternop_slice(), ada_type_of_array(), ada_val_atr(), ada_value_binop(), 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(), eval_op_ternop(), expr::ada_binop_addsub_operation::evaluate(), expr::objc_msgcall_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(), 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_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_assign(), value_cast(), value_complement(), value_dynamic_cast(), value_equal(), value_in(), 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().
LONGEST value_bitpos | ( | const struct value * | value | ) |
Definition at line 1131 of file value.c.
References value::bitpos.
Referenced by ada_value_assign(), ada_value_primitive_field(), ada_value_primitive_packed_val(), check_pieced_synthetic_pointer(), coerce_unspec_val_to_type(), indirect_pieced_value(), rw_pieced_value(), update_watchpoint(), value_assign(), value_assign_to_component(), value_fetch_lazy_bitfield(), and watch_command_1().
int value_bits_any_optimized_out | ( | const struct value * | value, |
int | bit_offset, | ||
int | bit_length | ||
) |
Definition at line 400 of file value.c.
References value::lazy, value::optimized_out, and ranges_contain().
Referenced by c_value_print_array(), dynamic_array_type(), unpack_value_field_as_long(), valprint_check_validity(), value_contents_copy_raw(), value_contents_copy_raw_bitwise(), and value_print_scalar_formatted().
int value_bits_available | ( | const struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 383 of file value.c.
References value::lazy, ranges_contain(), and value::unavailable.
Referenced by unpack_value_field_as_long(), and value_bytes_available().
int value_bits_synthetic_pointer | ( | const struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 1543 of file value.c.
References lval_funcs::check_synthetic_pointer, value::computed, value::funcs, value::location, value::lval, and lval_computed.
Referenced by coerce_pieced_ref(), cp_print_value_fields(), generic_val_print_ref(), lval_func_check_synthetic_pointer(), pascal_object_print_value_fields(), valprint_check_validity(), and value_addr().
LONGEST value_bitsize | ( | const struct value * | value | ) |
Definition at line 1142 of file value.c.
References value::bitsize.
Referenced by ada_value_assign(), check_pieced_synthetic_pointer(), coerce_unspec_val_to_type(), indirect_pieced_value(), rw_pieced_value(), update_watchpoint(), value_assign(), value_assign_to_component(), value_fetch_lazy(), value_fetch_lazy_bitfield(), and watch_command_1().
int value_bytes_available | ( | const struct value * | value, |
LONGEST | offset, | ||
LONGEST | length | ||
) |
Definition at line 391 of file value.c.
References value_bits_available().
Referenced by c_value_print_array(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gnuv2_baseclass_offset(), list_arg_or_local(), valprint_check_validity(), value_contents_copy_raw(), value_contents_copy_raw_bitwise(), and value_print_scalar_formatted().
void * value_computed_closure | ( | const struct value * | v | ) |
Definition at line 1587 of file value.c.
References value::closure, value::computed, value::location, value::lval, and lval_computed.
Referenced by check_pieced_synthetic_pointer(), coerce_pieced_ref(), copy_pieced_value_closure(), entry_data_value_coerce_ref(), entry_data_value_copy_closure(), entry_data_value_free_closure(), free_pieced_value_closure(), indirect_pieced_value(), lval_func_check_synthetic_pointer(), lval_func_copy_closure(), lval_func_free_closure(), lval_func_read(), lval_func_write(), and rw_pieced_value().
const struct lval_funcs * value_computed_funcs | ( | const struct value * | v | ) |
Definition at line 1579 of file value.c.
References value::computed, value::funcs, value::location, lval_computed, and value_lval_const().
Referenced by coerce_ref_if_computed(), value_assign(), value_fetch_lazy(), and value_ind().
gdb::array_view< const gdb_byte > value_contents | ( | struct value * | value | ) |
Definition at line 1464 of file value.c.
References require_available(), require_not_optimized_out(), and value_contents_writeable().
Referenced by aarch64_push_dummy_call(), ada_convert_actual(), ada_to_fixed_value_create(), ada_value_assign(), ada_value_equal(), ada_value_primitive_field(), ada_value_primitive_packed_val(), alpha_push_dummy_call(), amd64_push_arguments(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_push_arguments(), amd64_windows_store_arg_in_reg(), arc_push_dummy_call(), arm_push_dummy_call(), avr_push_dummy_call(), bfin_push_dummy_call(), BP_MANIPULATION(), c_get_string(), call_function_by_hand_dummy(), cast_into_complex(), coerce_ref(), create_value(), cris_push_dummy_call(), csky_push_dummy_call(), dump_value_to_file(), ensure_lval(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), expr::array_operation::evaluate(), expr::rust_struct_anon::evaluate(), expr::rust_structop::evaluate(), expr::array_operation::evaluate_struct_tuple(), dwarf_expr_context::fetch_address(), fixed_point_binop(), fortran_argument_convert(), fortran_ceil_operation(), fortran_floor_operation(), frame_unwind_register_value(), frv_push_dummy_call(), gdbscm_value_to_bytevector(), gdbscm_value_to_real(), gnuv3_method_ptr_to_value(), h8300_push_dummy_call(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), i387_print_float_info(), ia64_push_dummy_call(), indirect_pieced_value(), iq2000_push_dummy_call(), is_floating_value(), loongarch_push_dummy_call(), lval_func_read(), lval_func_write(), m32c_push_dummy_call(), m32r_push_dummy_call(), m68hc11_push_dummy_call(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mn10300_push_dummy_call(), nds32_push_dummy_call(), nios2_push_dummy_call(), or1k_push_dummy_call(), parse_find_args(), pass_in_v_vfp_candidate(), pass_in_x(), pass_on_stack(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_abi_push_dummy_call(), printf_c_string(), printf_floating(), printf_wide_c_string(), push_large_arguments(), pyuw_sniffer(), pyuw_value_obj_to_pointer(), read_frame_register_unsigned(), return_command(), riscv_push_dummy_call(), riscv_return_value(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rw_pieced_value(), s390_handle_arg(), set_internalvar_component(), setting_cmd(), sh_justify_value_in_reg(), sparc32_store_arguments(), sparc64_store_arguments(), store_regs(), tic6x_push_dummy_call(), tilegx_push_dummy_call(), ui_printf(), v850_push_dummy_call(), valpy_float(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_as_long(), value_as_string(), value_assign(), value_assign_to_component(), value_cast(), value_coerce_to_target(), value_concat(), value_equal(), value_equal_contents(), value_fetch_lazy_register(), value_in(), value_literal_complex(), value_logical_not(), value_pos(), value_primitive_field(), value_strcmp(), expr::fortran_undetermined::value_subarray(), value_to_gdb_mpq(), xstormy16_push_dummy_call(), and xtensa_push_dummy_call().
gdb::array_view< const gdb_byte > value_contents_all | ( | struct value * | value | ) |
Definition at line 1284 of file value.c.
References require_available(), require_not_optimized_out(), and value_contents_for_printing().
Referenced by ada_promote_array_of_integrals(), alpha_register_to_value(), expr::opencl_ternop_cond_operation::evaluate(), dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_result(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), hppa_frame_prev_register_helper(), i386_darwin_push_dummy_call(), i386_thiscall_push_dummy_call(), ia64_frame_prev_register(), info_frame_command_core(), infpy_thread_from_thread_handle(), m68k_push_dummy_call(), msp430_push_dummy_call(), print_gp_register_row(), rl78_push_dummy_call(), rw_pieced_value(), rx_frame_prev_register(), rx_push_dummy_call(), value_complement(), value_neg(), value_non_lval(), value_one(), value_vector_widen(), vax_store_arguments(), and vector_binop().
gdb::array_view< gdb_byte > value_contents_all_raw | ( | struct value * | value | ) |
Definition at line 1180 of file value.c.
References allocate_value_contents(), value::contents, type::length(), and value_enclosing_type().
Referenced by siginfo_value_read(), siginfo_value_write(), value_contents_copy_raw(), value_contents_copy_raw_bitwise(), value_copy(), value_fetch_lazy_memory(), value_non_lval(), and value_repeat().
|
static |
Definition at line 848 of file value.c.
References value::contents, value::enclosing_type, find_first_range_overlap_and_match(), value::lazy, type::length(), memcmp_with_bit_offsets(), offset1, value::optimized_out, ranges_and_idx::ranges, and value::unavailable.
Referenced by value_contents_eq().
void value_contents_copy | ( | struct value * | dst, |
LONGEST | dst_offset, | ||
struct value * | src, | ||
LONGEST | src_offset, | ||
LONGEST | length | ||
) |
Definition at line 1430 of file value.c.
References value::lazy, value_contents_copy_raw(), and value_fetch_lazy().
Referenced by coerce_unspec_val_to_type(), fortran_array_repacker_base_impl::copy_element_to_dest(), expr::unop_extract_operation::evaluate(), dwarf_expr_context::fetch_result(), fortran_array_shape(), fortran_bounds_all_dims(), read_frame_register_value(), value_array(), value_fetch_lazy_register(), value_from_component(), and value_slice().
|
static |
Definition at line 1342 of file value.c.
References gdbarch_addressable_memory_unit_size(), get_value_arch(), value::lazy, value_bits_any_optimized_out(), value_bytes_available(), value_contents_all_raw(), and value_ranges_copy_adjusted().
Referenced by value_contents_copy(), and value_primitive_field().
|
static |
Definition at line 1386 of file value.c.
References copy_bitwise(), value::lazy, type_byte_order(), value_bits_any_optimized_out(), value_bytes_available(), value_contents_all_raw(), value_ranges_copy_adjusted(), and value_type().
Referenced by value_from_component_bitsize().
Definition at line 922 of file value.c.
References check_typedef(), type::length(), value_contents_eq(), and value_enclosing_type().
bool value_contents_eq | ( | const struct value * | val1, |
LONGEST | offset1, | ||
const struct value * | val2, | ||
LONGEST | offset2, | ||
LONGEST | length | ||
) |
Definition at line 910 of file value.c.
References offset1, and value_contents_bits_eq().
Referenced by fortran_array_printer_impl::dimension_contents_eq(), fortran_array_printer_impl::process_element(), read_frame_arg(), register_changed_p(), val_print_packed_array_elements(), value_contents_eq(), and value_print_array_elements().
gdb::array_view< const gdb_byte > value_contents_for_printing | ( | struct value * | value | ) |
Definition at line 1265 of file value.c.
References value::contents, value::lazy, type::length(), value_enclosing_type(), and value_fetch_lazy().
Referenced by ada_val_print_enum(), ada_value_print_array(), ada_value_print_inner(), ada_value_print_num(), c_value_print_array(), c_value_print_int(), c_value_print_ptr(), c_value_print_struct(), cp_print_value(), cp_print_value_fields(), decode_constrained_packed_array(), default_print_one_register_info(), dynamic_array_type(), expr::fortran_structop_operation::evaluate(), extract_bitfield_from_watchpoint_value(), find_method_list(), generic_val_print_enum(), generic_val_print_fixed_point(), generic_val_print_float(), generic_val_print_ref(), generic_value_print(), generic_value_print_bool(), generic_value_print_char(), generic_value_print_memberptr(), generic_value_print_ptr(), get_baseclass_offset(), is_unique_ancestor(), m2_print_unbounded_array(), pascal_object_print_value_fields(), rust_language::print_enum(), print_go_string(), riscv_print_one_register_info(), struct_field_searcher::search(), search_struct_method(), val_print_type_code_flags(), value_contents_all(), value_dynamic_cast(), value_fetch_lazy_bitfield(), f_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), rust_language::value_print_inner(), and value_print_scalar_formatted().
gdb::array_view< const gdb_byte > value_contents_for_printing_const | ( | const struct value * | value | ) |
Definition at line 1275 of file value.c.
References value::contents, value::lazy, type::length(), and value_enclosing_type().
Referenced by get_value_addr_contents().
gdb::array_view< gdb_byte > value_contents_raw | ( | struct value * | value | ) |
Definition at line 1167 of file value.c.
References allocate_value_contents(), value::contents, value::embedded_offset, gdbarch_addressable_memory_unit_size(), get_value_arch(), type::length(), and value_type().
Referenced by aarch64_linux_set_memtags(), aarch64_pseudo_read_value(), aarch64_pseudo_read_value_1(), ada_convert_actual(), ada_value_assign(), ada_value_binop(), amd64_pseudo_register_read_value(), cast_into_complex(), readable_regcache::cooked_read(), readable_regcache::cooked_read_value(), elf_gnu_ifunc_resolver_return_stop(), expr::ada_string_operation::evaluate(), expr::c_string_operation::evaluate(), expr::array_operation::evaluate(), dwarf_expr_context::fetch_result(), fixed_point_binop(), frame_unwind_got_bytes(), get_call_return_value(), get_return_value(), i386_pseudo_register_read_into_value(), lval_func_read(), put_frame_register_bytes(), language_defn::read_var_value(), riscv_return_value(), rw_pieced_value(), scalar_binop(), sdata_make_value(), struct_field_searcher::search(), tlb_value_read(), unpack_value_bitfield(), value_assign(), value_cast(), value_cast_to_fixed_point(), value_concat(), value_contents_writeable(), value_cstring(), value_force_lval(), value_from_contents(), value_from_host_double(), value_from_longest(), value_from_pointer(), value_from_register(), value_from_ulongest(), value_literal_complex(), value_of_builtin_frame_fp_reg(), value_of_builtin_frame_pc_reg(), value_of_dwarf_reg_entry(), and value_string().
gdb::array_view< gdb_byte > value_contents_writeable | ( | struct value * | value | ) |
Definition at line 1473 of file value.c.
References value::lazy, value_contents_raw(), and value_fetch_lazy().
Referenced by ada_promote_array_of_integrals(), ada_value_primitive_packed_val(), create_value(), dummy_frame_prev_register(), dwarf2_compute_name(), expr::opencl_ternop_cond_operation::evaluate(), expr::array_operation::evaluate_struct_tuple(), frame_unwind_got_address(), frame_unwind_got_constant(), lval_func_write(), make_array_descriptor(), opencl_logical_not(), put_frame_register_bytes(), set_internalvar_component(), value_assign_to_component(), value_cast(), value_complement(), value_contents(), value_neg(), value_one(), value_struct_elt_for_reference(), value_vector_widen(), vector_binop(), and vector_relop().
Definition at line 1760 of file value.c.
References allocate_value(), allocate_value_lazy(), value::bitpos, value::bitsize, value::closure, value::computed, value::contents, lval_funcs::copy_closure, value::embedded_offset, value::funcs, value::initialized, value::is_zero, value::lazy, type::length(), value::location, value::lval, lval_computed, value::modifiable, value::offset, value::optimized_out, value::parent, value::pointed_to_offset, value::stack, value::type, value::unavailable, value_contents_all_raw(), value_embedded_offset(), value_enclosing_type(), value_entirely_optimized_out(), value_lazy(), and VALUE_LVAL.
Referenced by access_value_history(), ada_coerce_to_simple_array_ptr(), ada_value_assign(), ada_value_print_inner(), ada_value_ptr_subscript(), bpstat::bpstat(), convert_value_from_python(), dwarf2_evaluate_loc_desc_full(), gdbpy_get_varobj_pretty_printer(), make_cv_value(), struct_field_searcher::search(), set_internalvar(), thin_data_pntr(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), value_full_object(), value_of_internalvar(), and vlscm_convert_typed_value_from_scheme().
void value_decref | ( | struct value * | val | ) |
Definition at line 1687 of file value.c.
References value::reference_count.
Referenced by clear_internalvar(), value_ref_policy::decref(), entry_data_value_free_closure(), free_pieced_value_closure(), lval_func_free_closure(), valpy_clear_value(), and vlscm_free_value_smob().
LONGEST value_embedded_offset | ( | const struct value * | value | ) |
Definition at line 1555 of file value.c.
References value::embedded_offset.
Referenced by coerce_pieced_ref(), compare_value_and_voffset(), cp_print_value(), cp_print_value_fields(), d_value_print_inner(), eq_value_and_voffset(), expr::structop_base_operation::evaluate_funcall(), gnuv3_get_typeid(), gnuv3_rtti_type(), hash_value_and_voffset(), is_unique_ancestor(), list_arg_or_local(), print_one_vtable(), struct_field_searcher::search(), val_print_packed_array_elements(), value_addr(), value_cast_structs(), value_copy(), value_dynamic_cast(), value_fetch_lazy_register(), value_from_component(), value_from_component_bitsize(), value_full_object(), value_non_lval(), value_primitive_field(), and go_language::value_print_inner().
Definition at line 1189 of file value.c.
References value::enclosing_type.
Referenced by ada_array_bound(), ada_array_length(), ada_value_ptr_subscript(), bfin_push_dummy_call(), c_value_print(), coerce_ref(), gnuv3_rtti_type(), i386_darwin_push_dummy_call(), i386_thiscall_push_dummy_call(), m68k_push_dummy_call(), make_cv_value(), rl78_push_dummy_call(), rw_pieced_value(), struct_field_searcher::search(), set_value_enclosing_type(), tilegx_push_dummy_call(), value_actual_type(), value_addr(), value_array(), value_assign(), value_contents_all_raw(), value_contents_eq(), value_contents_for_printing(), value_contents_for_printing_const(), value_copy(), value_entirely_covered_by_range_vector(), value_fetch_lazy_memory(), value_full_object(), value_ind(), value_non_lval(), value_primitive_field(), value_repeat(), vax_store_arguments(), and xstormy16_push_dummy_call().
int value_entirely_available | ( | struct value * | value | ) |
Definition at line 408 of file value.c.
References value::lazy, value::unavailable, and value_fetch_lazy().
Referenced by alpha_register_to_value(), c_value_print(), readable_regcache::cooked_read(), default_print_one_register_info(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), i387_print_float_info(), info_frame_command_core(), output_register(), print_gp_register_row(), read_frame_register_unsigned(), riscv_print_one_register_info(), should_validate_memtags(), and store_regs().
|
static |
Definition at line 425 of file value.c.
References value::lazy, range::length, range::offset, value_enclosing_type(), and value_fetch_lazy().
Referenced by value_entirely_optimized_out(), and value_entirely_unavailable().
int value_entirely_optimized_out | ( | struct value * | value | ) |
Definition at line 453 of file value.c.
References value::optimized_out, and value_entirely_covered_by_range_vector().
Referenced by ada_value_print_array(), cp_print_static_field(), pascal_object_print_static_field(), value_check_printable(), and value_copy().
int value_entirely_unavailable | ( | struct value * | value | ) |
Definition at line 447 of file value.c.
References value::unavailable, and value_entirely_covered_by_range_vector().
Referenced by list_arg_or_local(), and value_check_printable().
void value_fetch_lazy | ( | struct value * | val | ) |
Definition at line 4162 of file value.c.
References allocate_value_contents(), value::is_zero, lval_computed, lval_memory, lval_register, value::optimized_out, read(), lval_funcs::read, set_value_lazy(), value::unavailable, value_bitsize(), value_computed_funcs(), value_fetch_lazy_bitfield(), value_fetch_lazy_memory(), value_fetch_lazy_register(), value_lazy(), and VALUE_LVAL.
Referenced by ada_val_print_ref(), common_val_print(), expr::ada_var_value_operation::evaluate_for_cast(), expr::ada_var_msym_value_operation::evaluate_for_cast(), expr::var_value_operation::evaluate_for_cast(), expr::var_msym_value_operation::evaluate_for_cast(), fetch_subexp_value(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gdbscm_value_fetch_lazy_x(), get_value_at(), gnuv2_virtual_fn_field(), install_new_value(), read_frame_arg(), record_latest_value(), return_command(), rust_val_print_slice(), set_internalvar(), valpy_fetch_lazy(), value_contents_copy(), value_contents_for_printing(), value_contents_writeable(), value_entirely_available(), value_entirely_covered_by_range_vector(), value_fetch_lazy_bitfield(), value_fetch_lazy_register(), value_of_internalvar(), value_of_register(), value_optimized_out(), and value_primitive_field().
|
static |
Definition at line 4000 of file value.c.
References value::parent, unpack_value_bitfield(), value_bitpos(), value_bitsize(), value_contents_for_printing(), value_fetch_lazy(), value_lazy(), value_offset(), and value_parent().
Referenced by value_fetch_lazy().
|
static |
Definition at line 4022 of file value.c.
References check_typedef(), type::length(), lval_memory, read_value_memory(), type_length_units(), value_address(), value_contents_all_raw(), value_enclosing_type(), VALUE_LVAL, and value_stack().
Referenced by value_fetch_lazy().
|
static |
Definition at line 4038 of file value.c.
References string_file::c_str(), check_typedef(), frame_debug, frame_debug_printf, frame_find_by_id(), frame_relative_level(), frame_unwind_register_value(), gdb_printf(), gdbarch_convert_register_p(), get_frame_arch(), get_prev_frame_always(), lval_memory, lval_register, paddress(), register_size(), regnum, set_value_lazy(), type_length_units(), user_reg_map_regnum_to_name(), val_print_optimized_out(), value_address(), value_contents(), value_contents_copy(), value_embedded_offset(), value_fetch_lazy(), value_free_to_mark(), value_lazy(), VALUE_LVAL, value_mark(), VALUE_NEXT_FRAME_ID, value_offset(), value_optimized_out(), VALUE_REGNUM, and value_type().
Referenced by value_fetch_lazy().
Definition at line 3229 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().
struct value * value_field_bitfield | ( | struct type * | type, |
int | fieldno, | ||
const gdb_byte * | valaddr, | ||
LONGEST | embedded_offset, | ||
const struct value * | val | ||
) |
Definition at line 3444 of file value.c.
References allocate_value(), value::bitpos, value::bitsize, value::embedded_offset, type::field(), field::loc_bitpos(), field::type(), TYPE_FIELD_BITSIZE, and unpack_value_bitfield().
Referenced by cp_print_value_fields(), and pascal_object_print_value_fields().
struct value * value_fn_field | ( | struct value ** | arg1p, |
struct fn_field * | f, | ||
int | j, | ||
struct type * | type, | ||
LONGEST | offset | ||
) |
Definition at line 3242 of file value.c.
References allocate_value(), 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, set_value_address(), 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(), VALUE_LVAL, value_type(), and VAR_DOMAIN.
Referenced by find_overload_match(), and search_struct_method().
void value_force_lval | ( | struct value * | v, |
CORE_ADDR | addr | ||
) |
Definition at line 1848 of file value.c.
References value::address, value::location, value::lval, lval_memory, not_lval, value_contents_raw(), VALUE_LVAL, value_type(), and write_memory().
Referenced by get_call_return_value().
void value_free_to_mark | ( | const struct value * | mark | ) |
Definition at line 1701 of file value.c.
References all_values.
Referenced by fortran_array_repacker_base_impl::finish_dimension(), scoped_value_mark::free_to_mark(), value_fetch_lazy_register(), watch_command_1(), and watchpoint_check().
Definition at line 3806 of file value.c.
References allocate_value(), allocate_value_lazy(), lval_memory, value::offset, set_value_component_location(), type_length_units(), value_contents_copy(), value_embedded_offset(), value_lazy(), VALUE_LVAL, and value_offset().
Referenced by fortran_array_repacker_impl::process_element(), fortran_array_printer_impl::process_element(), value_from_component_bitsize(), value_imaginary_part(), value_real_part(), expr::fortran_undetermined::value_subarray(), and value_subscripted_rvalue().
struct value * value_from_component_bitsize | ( | struct value * | whole, |
struct type * | type, | ||
LONGEST | bit_offset, | ||
LONGEST | bit_length | ||
) |
Definition at line 3828 of file value.c.
References allocate_value(), is_scalar_type(), type::length(), type_byte_order(), value_contents_copy_raw_bitwise(), value_embedded_offset(), value_from_component(), and value_lazy().
Referenced by value_print_array_elements().
Definition at line 3730 of file value.c.
References allocate_value(), value::contents, type::length(), and value_contents_raw().
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(), printf_floating(), riscv_return_value(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_pos(), and vlscm_convert_bytevector().
struct value * value_from_contents_and_address | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
CORE_ADDR | address | ||
) |
Definition at line 3703 of file value.c.
References value::address, allocate_value_lazy(), check_typedef(), type::length(), lval_memory, PROP_CONST, resolve_dynamic_type(), set_value_address(), TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND, value_from_contents(), and VALUE_LVAL.
Referenced by ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value_create(), ada_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().
struct value * value_from_contents_and_address_unresolved | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
CORE_ADDR | address | ||
) |
Definition at line 3682 of file value.c.
References value::address, allocate_value_lazy(), lval_memory, set_value_address(), value_from_contents(), and VALUE_LVAL.
Referenced by ada_template_to_fixed_record_type_1().
struct value * value_from_history_ref | ( | const char * | h, |
const char ** | endp | ||
) |
Definition at line 3744 of file value.c.
References access_value_history().
Referenced by get_number_trailer(), and get_ulongest().
Definition at line 3665 of file value.c.
References allocate_value(), type::code(), target_float_from_host_double(), value_contents_raw(), and value_type().
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 3625 of file value.c.
References allocate_value(), pack_long(), and value_contents_raw().
Referenced by ada_array_length(), 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::long_const_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(), thin_data_pntr(), thread_num_make_value_helper(), val_atr(), valpy_binop_throw(), value_allocate_space_in_inferior(), value_assign(), value_cast(), value_complement(), 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 3651 of file value.c.
References allocate_value(), check_typedef(), store_typed_address(), and value_contents_raw().
Referenced by aarch64_push_dummy_call(), ada_val_print_ref(), address_of_variable(), alpha_push_dummy_call(), c_value_print(), call_function_by_hand_dummy(), compile_object_run(), 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().
Definition at line 3637 of file value.c.
References allocate_value(), pack_unsigned_long(), and value_contents_raw().
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().
struct value * value_from_xmethod | ( | xmethod_worker_up && | worker | ) |
Definition at line 2751 of file value.c.
References allocate_value(), value::location, value::lval, lval_xcallable, value::modifiable, target_gdbarch(), and value::xm_worker.
Referenced by find_overload_match().
ULONGEST value_history_count | ( | ) |
Definition at line 1974 of file value.c.
References value_history.
Referenced by gdbpy_history_count().
void value_incref | ( | struct value * | val | ) |
Definition at line 1677 of file value.c.
References value::reference_count.
Referenced by allocate_lval_closure(), allocate_piece_closure(), entry_data_value_coerce_ref(), entry_data_value_copy_closure(), value_ref_policy::incref(), value_to_value_object_no_release(), and vlscm_scm_from_value_no_release().
int value_initialized | ( | const struct value * | val | ) |
Definition at line 3992 of file value.c.
References value::initialized.
Referenced by c_value_print().
const char * value_internal_function_name | ( | struct value * | val | ) |
Definition at line 2538 of file value.c.
References get_internalvar_function(), lval_internalvar, internal_function::name, VALUE_INTERNALVAR, and VALUE_LVAL.
Referenced by value_check_printable().
int value_lazy | ( | const struct value * | value | ) |
Definition at line 1440 of file value.c.
References value::lazy.
Referenced by ada_val_print_ref(), ada_value_primitive_packed_val(), address_of_variable(), c_value_of_variable(), can_use_hardware_watchpoint(), coerce_unspec_val_to_type(), common_val_print(), expr::ada_var_value_operation::evaluate_for_cast(), expr::ada_var_msym_value_operation::evaluate_for_cast(), expr::var_value_operation::evaluate_for_cast(), expr::var_msym_value_operation::evaluate_for_cast(), fetch_subexp_value(), fortran_array_repacker_impl::fortran_array_repacker_impl(), frame_unwind_register_value(), gdbpy_apply_val_pretty_printer(), gdbscm_apply_val_pretty_printer(), gdbscm_value_fetch_lazy_x(), gdbscm_value_lazy_p(), gnuv2_virtual_fn_field(), install_new_value(), ppc_linux_nat_target::num_memory_accesses(), read_frame_arg(), record_latest_value(), return_command(), set_internalvar(), set_value_component_location(), update_watchpoint(), valpy_fetch_lazy(), valpy_get_is_lazy(), value_copy(), value_fetch_lazy(), value_fetch_lazy_bitfield(), value_fetch_lazy_register(), value_from_component(), value_from_component_bitsize(), value_of_internalvar(), value_primitive_field(), value_slice(), expr::fortran_undetermined::value_subarray(), varobj_set_display_format(), varobj_set_value(), and x_command().
Definition at line 1601 of file value.c.
References value::lval.
Referenced by coerce_ref_if_computed(), fortran_associated(), get_value_addr_contents(), gnuv3_get_typeid(), val_print_optimized_out(), valprint_check_validity(), and value_computed_funcs().
struct value * value_mark | ( | void | ) |
Definition at line 1667 of file value.c.
References all_values.
Referenced by fetch_subexp_value(), fortran_array_repacker_base_impl::start_dimension(), value_fetch_lazy_register(), watch_command_1(), and watchpoint_check().
Definition at line 1829 of file value.c.
References allocate_value(), not_lval, set_value_embedded_offset(), set_value_pointed_to_offset(), value::type, value_contents_all(), value_contents_all_raw(), value_embedded_offset(), value_enclosing_type(), VALUE_LVAL, and value_pointed_to_offset().
Referenced by eval_op_postdec(), eval_op_postinc(), and expression::evaluate().
struct value * value_of_internalvar | ( | struct gdbarch * | gdbarch, |
struct internalvar * | var | ||
) |
Definition at line 2250 of file value.c.
References allocate_value(), internalvar_data::data, find_trace_state_variable(), internalvar_data::functions, internalvar_data::integer, INTERNALVAR_FUNCTION, INTERNALVAR_INTEGER, INTERNALVAR_MAKE_VALUE, INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lval, lval_computed, lval_internalvar, internalvar_data::make_value, internalvar_funcs::make_value, internalvar::name, trace_state_variable::number, internalvar_data::string, target_get_trace_state_variable_value(), internalvar_data::type, internalvar::u, internalvar_data::val, trace_state_variable::value, internalvar_data::value, value_copy(), value_cstring(), value_fetch_lazy(), value_from_longest(), VALUE_INTERNALVAR, trace_state_variable::value_known, value_lazy(), and VALUE_LVAL.
Referenced by expr::internalvar_operation::evaluate(), gdbpy_convenience_variable(), show_convenience(), value_assign(), and yyparse().
LONGEST value_offset | ( | const struct value * | value | ) |
Definition at line 1120 of file value.c.
References value::offset.
Referenced by check_pieced_synthetic_pointer(), extract_bitfield_from_watchpoint_value(), find_method_list(), get_baseclass_offset(), gnuv2_virtual_fn_field(), indirect_pieced_value(), lval_func_read(), lval_func_write(), read_frame_register_value(), rw_pieced_value(), siginfo_value_read(), siginfo_value_write(), value_assign(), value_fetch_lazy_bitfield(), value_fetch_lazy_register(), value_from_component(), value_primitive_field(), and value_slice().
int value_optimized_out | ( | struct value * | value | ) |
Definition at line 1481 of file value.c.
References value::computed, value::funcs, lval_funcs::is_optimized_out, value::lazy, value::location, lval_computed, lval_memory, value::optimized_out, value_fetch_lazy(), and VALUE_LVAL.
Referenced by address_from_register(), alpha_register_to_value(), coerce_unspec_val_to_type(), default_print_one_register_info(), dwarf2_evaluate_property(), dwarf2_locexpr_baton_eval(), dwarf_expr_context::fetch_result(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), frame_unwind_register_value(), gdbscm_value_optimized_out_p(), get_frame_register_bytes(), info_frame_command_core(), insert_exception_resume_breakpoint(), print_gp_register_row(), read_frame_arg(), read_frame_register_unsigned(), riscv_print_one_register_info(), s390_unwind_pseudo_register(), should_validate_memtags(), store_regs(), valpy_get_is_optimized_out(), value_actual_type(), and value_fetch_lazy_register().
Definition at line 1153 of file value.c.
References value::parent.
Referenced by rw_pieced_value(), value_assign(), and value_fetch_lazy_bitfield().
LONGEST value_pointed_to_offset | ( | const struct value * | value | ) |
Definition at line 1567 of file value.c.
References value::pointed_to_offset.
Referenced by readjust_indirect_value_type(), value_assign(), value_ind(), and value_non_lval().
struct value * value_primitive_field | ( | struct value * | arg1, |
LONGEST | offset, | ||
int | fieldno, | ||
struct type * | arg_type | ||
) |
Definition at line 3105 of file value.c.
References allocate_value(), allocate_value_lazy(), baseclass_offset(), BASETYPE_VIA_VIRTUAL, value::bitpos, value::bitsize, check_typedef(), value::embedded_offset, type::field(), gdbarch_addressable_memory_unit_size(), get_value_arch(), type::length(), field::loc_bitpos(), lval_register, value::offset, PROP_CONST, set_value_component_location(), set_value_parent(), field::type(), value::type, TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_KIND, TYPE_FIELD_BITSIZE, type_length_units(), TYPE_N_BASECLASSES, value_address(), value_contents(), value_contents_copy_raw(), value_embedded_offset(), value_enclosing_type(), value_fetch_lazy(), value_lazy(), VALUE_LVAL, and value_offset().
Referenced by ada_value_primitive_field(), cp_print_value(), cp_print_value_fields(), expr::rust_struct_anon::evaluate(), expr::rust_structop::evaluate(), gnuv2_virtual_fn_field(), pascal_object_print_value(), pascal_object_print_value_fields(), pass_in_v_vfp_candidate(), struct_field_searcher::search(), value_field(), value_struct_element_index(), and value_struct_elt_bitpos().
|
static |
Definition at line 1319 of file value.c.
References value::optimized_out, ranges_copy_adjusted(), and value::unavailable.
Referenced by unpack_value_bitfield(), value_contents_copy_raw(), and value_contents_copy_raw_bitwise().
CORE_ADDR value_raw_address | ( | const struct value * | value | ) |
Definition at line 1623 of file value.c.
References value::address, value::location, value::lval, and lval_memory.
Referenced by lookup_minimal_symbol_by_pc_section(), and minimal_symbol_is_less_than().
std::vector< value_ref_ptr > value_release_to_mark | ( | const struct value * | mark | ) |
int value_stack | ( | const struct value * | value | ) |
Definition at line 1452 of file value.c.
References value::stack.
Referenced by value_fetch_lazy_memory(), and value_repeat().
Definition at line 3039 of file value.c.
References allocate_optimized_out_value(), 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 1109 of file value.c.
References value::type.
Referenced by aarch64_pseudo_read_value_1(), aarch64_push_dummy_call(), ada_abs(), ada_args_match(), ada_array_bound(), ada_array_length(), ada_atr_size(), ada_binop_exp(), ada_binop_in_bounds(), ada_binop_minmax(), ada_coerce_ref(), ada_coerce_to_simple_array(), ada_coerce_to_simple_array_ptr(), ada_convert_actual(), ada_exception_message_1(), ada_funcall(), ada_get_decoded_value(), ada_mult_binop(), ada_promote_array_of_integrals(), ada_tag_name(), ada_tag_type(), ada_tag_value_at_base_address(), ada_template_to_fixed_record_type_1(), ada_ternop_slice(), ada_to_fixed_type_1(), ada_to_fixed_value(), ada_type_of_array(), ada_unop_atr(), ada_val_atr(), ada_val_print_enum(), ada_val_print_ref(), ada_val_print_struct_union(), ada_value_assign(), ada_value_binop(), ada_value_cast(), ada_value_equal(), ada_value_ind(), ada_value_is_changeable_p(), ada_value_print(), ada_value_print_array(), ada_value_print_inner(), ada_value_print_num(), ada_value_print_ptr(), ada_value_slice(), ada_value_struct_elt(), ada_value_subscript(), ada_varobj_adjust_for_child_access(), ada_varobj_decode_var(), ada_varobj_ind(), ada_varobj_simple_array_elt(), ada_varobj_struct_elt(), address_of_variable(), alpha_push_dummy_call(), amd64_pseudo_register_read_value(), amd64_push_arguments(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_push_arguments(), amd64_windows_store_arg_in_reg(), arc_push_dummy_call(), arm_push_dummy_call(), arm_return_value(), expr::ada_name_association::assign(), expr::ada_aggregate_operation::assign_aggregate(), expr::assign_component(), avr_push_dummy_call(), bfin_push_dummy_call(), binop_promote(), binop_user_defined_p(), BP_MANIPULATION(), c_get_string(), c_value_print(), c_value_print_array(), c_value_print_inner(), c_value_print_int(), c_value_print_ptr(), c_value_print_struct(), call_function_by_hand_dummy(), call_thread_fsm::call_thread_fsm(), call_xmethod(), can_use_hardware_watchpoint(), cast_into_complex(), ppc_linux_nat_target::check_condition(), cimag_internal_fn(), coerce_array(), coerce_for_assign(), coerce_pieced_ref(), coerce_ref(), coerce_ref_if_computed(), coerce_unspec_val_to_type(), common_val_print(), expr::structop_base_operation::complete(), complex_binop(), compute_vtable_size(), readable_regcache::cooked_read_value(), fortran_array_repacker_base_impl::copy_element_to_dest(), cp_print_value(), cp_print_value_fields(), creal_internal_fn(), create_value(), cris_push_dummy_call(), csky_push_dummy_call(), d_value_print_inner(), decode_constrained_packed_array(), default_print_one_register_info(), desc_bounds(), desc_data(), expr::repeat_operation::do_generate_ax(), expr::unop_memval_type_operation::do_generate_ax(), expr::unop_cast_type_operation::do_generate_ax(), python_xmethod_worker::do_get_result_type(), dtrace_process_dof_probe(), dump_value_to_file(), dynamic_array_type(), elf_gnu_ifunc_resolver_return_stop(), ensure_lval(), entry_data_value_coerce_ref(), eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_alignof(), eval_op_binary(), eval_op_f_abs(), eval_op_f_allocated(), eval_op_f_cmplx(), eval_op_f_cmplx(), eval_op_f_cmplx(), eval_op_f_kind(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_f_rank(), eval_op_ind(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_member(), eval_op_objc_msgcall(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_op_repeat(), eval_op_rust_array(), eval_op_rust_complement(), eval_op_structop_ptr(), eval_op_structop_struct(), eval_op_sub(), eval_op_subscript(), eval_op_var_msym_value(), eval_opencl_assign(), expr::ada_binop_addsub_operation::evaluate(), expr::ada_binop_equal_operation::evaluate(), expr::ada_bitwise_operation< OP >::evaluate(), expr::ada_unop_atr_operation::evaluate(), expr::ada_unop_ind_operation::evaluate(), expr::ada_structop_operation::evaluate(), expr::ada_funcall_operation::evaluate(), expr::ada_assign_operation::evaluate(), expr::ada_concat_operation::evaluate(), expr::opencl_binop_operation< OP, FUNC, BASE >::evaluate(), expr::opencl_structop_operation::evaluate(), expr::opencl_logical_binop_operation::evaluate(), expr::opencl_ternop_cond_operation::evaluate(), expr::comparison_operation< OP, FUNC >::evaluate(), expr::decltype_operation::evaluate(), expr::unop_memval_type_operation::evaluate(), expr::assign_operation::evaluate(), expr::unop_extract_operation::evaluate(), expr::unop_cast_type_operation::evaluate(), expr::cxx_cast_operation< OP, FUNC >::evaluate(), expr::array_operation::evaluate(), expr::fortran_undetermined::evaluate(), expr::fortran_bound_1arg::evaluate(), expr::fortran_bound_2arg::evaluate(), expr::fortran_structop_operation::evaluate(), expr::rust_struct_anon::evaluate(), expr::rust_structop::evaluate(), expr::fortran_bound_3arg::evaluate(), expr::var_msym_value_operation::evaluate_for_address(), expr::unop_memval_type_operation::evaluate_for_address(), expr::operation::evaluate_for_sizeof(), expr::var_value_operation::evaluate_for_sizeof(), expr::var_msym_value_operation::evaluate_for_sizeof(), expr::subscript_operation::evaluate_for_sizeof(), expr::unop_ind_base_operation::evaluate_for_sizeof(), expr::unop_memval_type_operation::evaluate_for_sizeof(), expr::operation::evaluate_funcall(), expr::structop_base_operation::evaluate_funcall(), expr::structop_member_base::evaluate_funcall(), expr::rust_structop::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), evaluate_subexp_do_call(), evaluate_subexp_for_address_base(), dwarf_expr_context::execute_stack_op(), extract_bitfield_from_watchpoint_value(), dwarf_expr_context::fetch_address(), dwarf_expr_context::fetch_result(), find_function_addr(), find_oload_champ_namespace_loop(), find_overload_match(), fixed_point_binop(), fortran_argument_convert(), fortran_array_shape(), fortran_array_size(), fortran_associated(), fortran_bounds_all_dims(), fortran_bounds_for_dimension(), fortran_ceil_operation(), fortran_floor_operation(), fortran_preserve_arg_pointer(), frame_register_unwind(), frv_push_dummy_call(), gdbarch_push_dummy_code(), gdbpy_apply_val_pretty_printer(), gdbpy_convenience_variable(), gdbscm_apply_val_pretty_printer(), gdbscm_value_call(), gdbscm_value_dynamic_type(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_type(), expr::operation::generate_ax(), generic_val_print_array(), generic_val_print_fixed_point(), generic_value_print(), generic_value_print_bool(), generic_value_print_char(), generic_value_print_memberptr(), generic_value_print_ptr(), get_internalvar_integer(), get_number_trailer(), get_return_value(), get_ulongest(), get_value_arch(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_get_type_from_type_info(), gnuv3_get_typeid(), gnuv3_get_typename_from_type_info(), gnuv3_get_virtual_fn(), gnuv3_method_ptr_to_value(), gnuv3_print_vtable(), gnuv3_rtti_type(), gnuv3_virtual_fn_field(), h8300_push_dummy_call(), h8300_use_struct_convention(), h8300h_use_struct_convention(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), i386_pseudo_register_read_into_value(), i386_windows_push_dummy_call(), ia64_push_dummy_call(), incomplete_type_hint(), indirect_pieced_value(), info_mach_region_command(), infpy_thread_from_thread_handle(), install_new_value(), python_xmethod_worker::invoke(), iq2000_push_dummy_call(), is_floating_value(), is_unique_ancestor(), isvoid_internal_fn(), linespec_parse_variable(), list_arg_or_local(), loongarch_push_dummy_call(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), m2_print_array_contents(), m2_print_unbounded_array(), m32c_push_dummy_call(), m32r_push_dummy_call(), m68hc11_push_dummy_call(), m68k_push_dummy_call(), maintenance_print_type(), make_array_descriptor(), make_cv_value(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mn10300_push_dummy_call(), msp430_push_dummy_call(), nds32_push_dummy_call(), nios2_push_dummy_call(), opencl_component_ref(), opencl_logical_not(), opencl_relop(), opencl_value_cast(), or1k_push_dummy_call(), output_command(), parse_find_args(), pascal_object_print_static_field(), pascal_object_print_value(), pascal_object_print_value_fields(), pass_in_v_vfp_candidate(), pos_atr(), possible_user_operator_p(), ppc64_sysv_abi_push_dummy_call(), ppc64_sysv_abi_return_value(), ppc_sysv_abi_broken_return_value(), ppc_sysv_abi_push_dummy_call(), ppc_sysv_abi_return_value(), print_command_1(), rust_language::print_enum(), print_field_values(), print_formatted(), print_frame_arg(), print_one_vtable(), print_value(), print_variable_or_computed(), print_variant_part(), printf_c_string(), printf_floating(), printf_wide_c_string(), push_dummy_code(), push_large_arguments(), py_print_single_arg(), py_print_type(), py_print_value(), pyuw_sniffer(), pyuw_value_obj_to_pointer(), rank_function(), rank_one_type_parm_ptr(), read_atcb(), read_fat_string_value(), read_frame_arg(), read_frame_register_value(), expr::ada_ternop_slice_operation::resolve(), result_type_of_xmethod(), return_command(), riscv_print_one_register_info(), riscv_push_dummy_call(), rl78_push_dummy_call(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rust_get_trait_object_pointer(), rust_range(), rust_subscript(), rust_val_print_slice(), rw_pieced_value(), rx_push_dummy_call(), s390_handle_arg(), s390_push_dummy_call(), scalar_binop(), scan_discrim_bound(), struct_field_searcher::search(), search_struct_field(), set_internalvar(), set_internalvar_component(), set_value_component_location(), setting_cmd(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_return_value_fpu(), sh_return_value_nofpu(), sh_stack_allocsize(), should_validate_memtags(), siginfo_value_read(), siginfo_value_write(), sparc32_push_dummy_code(), sparc32_store_arguments(), sparc64_store_arguments(), struct_return_convention(), thin_data_pntr(), tic6x_push_dummy_call(), tlb_value_read(), to_fixed_variant_branch_type(), to_record_with_fixed_variant_part(), typecmp(), ui_printf(), unop_promote(), unop_user_defined_p(), unpack_value_bitfield(), unwind_infopy_add_saved_register(), unwrap_value(), update_watchpoint(), using_struct_return(), v850_push_dummy_call(), val_print_packed_array_elements(), rust_language::val_print_struct(), valpy_absolute(), valpy_binop_throw(), valpy_call(), valpy_float(), valpy_get_dynamic_type(), valpy_get_type(), valpy_getitem(), valpy_lazy_string(), valpy_long(), valpy_nonzero(), valpy_referenced_value(), value_actual_type(), value_addr(), value_address(), value_arg_coerce(), value_args_as_target_float(), value_as_address(), value_as_long(), value_assign(), value_assign_to_component(), value_binop(), value_cast(), value_cast_pointers(), value_cast_structs(), value_cast_to_fixed_point(), value_check_printable(), value_coerce_array(), value_coerce_function(), value_coerce_to_target(), value_complement(), value_concat(), value_contents_copy_raw_bitwise(), value_contents_raw(), value_dynamic_cast(), value_equal(), value_equal_contents(), value_fetch_lazy_register(), value_field(), value_find_oload_method_list(), value_fn_field(), value_force_lval(), value_from_host_double(), value_full_object(), value_has_field(), value_imaginary_part(), value_in(), value_ind(), value_less(), value_logical_not(), value_must_coerce_to_target(), value_neg(), value_of_root(), value_pos(), pascal_language::value_print(), rust_language::value_print(), value_print_array_elements(), f_language::value_print_inner(), go_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), rust_language::value_print_inner(), value_print_scalar_formatted(), value_ptradd(), value_ptrdiff(), value_real_part(), value_ref(), value_reinterpret_cast(), value_rtti_indirect_type(), value_rtti_type(), value_slice(), value_strcmp(), value_struct_element_index(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), value_subscript(), value_subscript_packed(), value_subscripted_rvalue(), value_to_gdb_mpq(), value_vector_widen(), value_x_binop(), value_x_unop(), varobj_create(), varobj_get_value_type(), varobj_update(), varobj_value_get_print_value(), vector_binop(), vector_relop(), vlscm_binop_gdbthrow(), vlscm_unop_gdbthrow(), watch_command_1(), whatis_exp(), x_command(), xtensa_push_dummy_call(), and yyparse().
Definition at line 3613 of file value.c.
References allocate_value_lazy(), value::is_zero, lval_computed, not_lval, and VALUE_LVAL.
Referenced by ada_abs(), ada_atr_size(), ada_atr_tag(), ada_binop_exp(), ada_binop_in_bounds(), ada_binop_minmax(), ada_mult_binop(), ada_pos_atr(), ada_unop_atr(), ada_val_atr(), cast_into_complex(), complex_binop(), create_value(), dummy_frame_prev_register(), eval_op_f_cmplx(), eval_op_ind(), eval_op_m2_subscript(), eval_op_member(), eval_op_memval(), eval_op_register(), eval_op_structop_ptr(), eval_op_structop_struct(), eval_op_subscript(), eval_op_var_entry_value(), expr::ada_var_value_operation::evaluate(), expr::ada_unop_ind_operation::evaluate(), expr::ada_structop_operation::evaluate(), expr::ada_funcall_operation::evaluate(), expr::opencl_structop_operation::evaluate(), expr::fortran_structop_operation::evaluate(), expr::rust_structop::evaluate(), expr::var_value_operation::evaluate_for_address(), 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(), expr::var_value_operation::evaluate_for_sizeof(), expr::scope_operation::evaluate_funcall(), expr::structop_member_base::evaluate_funcall(), expr::rust_structop::evaluate_funcall(), evaluate_subexp_do_call(), evaluate_subexp_for_address_base(), evaluate_var_msym_value(), evaluate_var_value(), dwarf_expr_context::execute_stack_op(), frame_unwind_got_address(), frame_unwind_got_bytes(), frame_unwind_got_constant(), rust_range(), rust_subscript(), valpy_absolute(), value_cast(), value_cast_structs(), value_dynamic_cast(), value_neg(), value_x_binop(), value_x_unop(), and vlscm_unop_gdbthrow().
|
static |
Definition at line 941 of file value.c.
Referenced by allocate_value_lazy(), finalize_values(), release_value(), value_free_to_mark(), value_mark(), and value_release_to_mark().
|
static |
Definition at line 175 of file value.c.
Referenced by do_add_internal_function().
|
static |
Definition at line 2102 of file value.c.
Referenced by complete_internalvar(), create_internalvar(), lookup_only_internalvar(), preserve_values(), and show_convenience().
|
static |
Definition at line 972 of file value.c.
Referenced by check_type_length_before_alloc(), set_max_value_size(), and show_max_value_size().
|
static |
Definition at line 934 of file value.c.
Referenced by access_value_history(), preserve_values(), record_latest_value(), show_values(), and value_history_count().