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 <map>
#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 | ranges_and_idx |
union | internalvar_data |
struct | internalvar |
union | internalvar::u |
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 bool | ranges_overlap (LONGEST offset1, ULONGEST len1, LONGEST offset2, ULONGEST len2) |
static bool | ranges_contain (const std::vector< range > &ranges, LONGEST offset, ULONGEST length) |
static void | insert_into_bit_range_vector (std::vector< range > *vectorp, LONGEST offset, ULONGEST 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, ULONGEST length, ULONGEST *l, ULONGEST *h) |
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) |
bool | exceeds_max_value_size (ULONGEST length) |
static struct type * | find_array_element_type (struct type *array_type) |
static ULONGEST | calculate_limited_array_length (struct type *array_type) |
struct value * | allocate_repeat_value (struct type *type, int count) |
struct type * | value_actual_type (struct value *value, int resolve_simple_types, int *real_type_found) |
void | error_value_optimized_out (void) |
static void | ranges_copy_adjusted (std::vector< range > *dst_range, int dst_bit_offset, const std::vector< range > &src_range, int src_bit_offset, unsigned int bit_length) |
struct value * | value_mark (void) |
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 * | make_cv_value (int cnst, int voltl, struct value *v) |
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) |
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) |
LONGEST | value_as_long (struct value *val) |
gdb_mpz | value_as_mpz (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) |
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) |
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_from_longest (struct type *type, LONGEST num) |
struct value * | value_from_ulongest (struct type *type, ULONGEST num) |
struct value * | value_from_mpz (struct type *type, const gdb_mpz &v) |
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, frame_info_ptr frame) |
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 * | 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) |
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 gdb::optional< int > | array_length_limiting_element_count |
static std::map< std::string, internalvar > | internalvars |
#define MIN_VALUE_FOR_MAX_VALUE_SIZE 16 |
Definition at line 764 of file value.c.
Referenced by set_max_value_size().
enum internalvar_kind |
void _initialize_values | ( | ) |
Definition at line 4241 of file value.c.
Referenced by initialize_all_files().
struct value * access_value_history | ( | int | num | ) |
Definition at line 1709 of file value.c.
References value_history.
Referenced by dump_arc_instruction_command(), expr::last_operation::evaluate(), gdbpy_history(), gdbscm_history_ref(), linespec_parse_variable(), process_print_command_args(), show_values(), value_from_history_ref(), and whatis_exp().
void add_internal_function | ( | const char * | name, |
const char * | doc, | ||
internal_function_fn | handler, | ||
void * | cookie ) |
Definition at line 2360 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 2369 of file value.c.
References do_add_internal_function(), cmd_list_element::doc_allocated, name, and cmd_list_element::name_allocated.
Definition at line 966 of file value.c.
References value::allocate(), current_language, lookup_array_range_type(), and language_defn::string_lower_bound().
Referenced by eval_op_repeat(), and value_repeat().
|
static |
Definition at line 876 of file value.c.
References array_length_limiting_element_count, check_typedef(), type::code(), find_array_element_type(), and type::length().
Referenced by value::record_latest(), and value::set_limited_array_length().
struct value * call_internal_function | ( | struct gdbarch * | gdbarch, |
const struct language_defn * | language, | ||
struct value * | func, | ||
int | argc, | ||
struct value ** | argv ) |
Definition at line 2318 of file value.c.
References internal_function::cookie, func, get_internalvar_function(), internal_function::handler, lval_internalvar, and VALUE_INTERNALVAR.
Referenced by expr::ada_funcall_operation::evaluate(), and evaluate_subexp_do_call().
|
static |
Definition at line 803 of file value.c.
References exceeds_max_value_size(), type::length(), and type::name().
Referenced by value::allocate_contents(), and value::set_enclosing_type().
|
static |
Definition at line 4068 of file value.c.
References check_typedef(), type::code(), value::type(), and value_imaginary_part().
void clear_internalvar | ( | struct internalvar * | var | ) |
Definition at line 2265 of file value.c.
References INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, and xfree().
Referenced by clear_exit_convenience_vars(), exit_status_set_internal_vars(), gdbpy_set_convenience_variable(), set_internalvar(), set_internalvar_function(), set_internalvar_integer(), set_internalvar_string(), set_traceframe_context(), ada_catchpoint::should_stop_exception(), and x_command().
Definition at line 3776 of file value.c.
References language_defn::c_style_arrays_p(), check_typedef(), type::code(), coerce_ref(), current_language, type::is_vector(), value::type(), value_coerce_array(), and value_coerce_function().
Referenced by expr::unop_ind_base_operation::evaluate_for_address(), value_as_address(), value_as_long(), value_as_mpz(), value_assign(), value_equal(), value_find_oload_method_list(), value_ind(), value_less(), value_logical_not(), value_ptradd(), value_ptrdiff(), value_reinterpret_cast(), value_struct_elt(), value_struct_elt_bitpos(), and varobj_set_value().
Definition at line 3752 of file value.c.
References check_typedef(), coerce_ref_if_computed(), value::contents(), value::enclosing_type(), readjust_indirect_value_type(), type::target_type(), value::type(), TYPE_IS_REFERENCE, unpack_pointer(), and value_at_lazy().
Referenced by ada_coerce_ref(), ada_ternop_slice(), ada_value_binop(), ada_value_print_inner(), ada_value_struct_elt(), binop_promote(), coerce_array(), decode_constrained_packed_array(), eval_multi_subscript(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_subscript(), expr::ada_funcall_operation::evaluate(), find_overload_match(), gdbscm_value_dynamic_type(), gdbscm_value_subscript(), gnuv3_get_typeid(), gnuv3_print_vtable(), install_new_value(), opencl_value_cast(), pos_atr(), read_frame_arg(), scalar_binop(), unop_promote(), valpy_get_dynamic_type(), valpy_getitem(), valpy_referenced_value(), value_addr(), value_assign(), value_cast(), value_cast_pointers(), value_complement(), value_neg(), value_pos(), value_rtti_indirect_type(), value_subscript(), value_x_binop(), value_x_unop(), varobj_value_has_mutated(), and x_command().
Definition at line 3707 of file value.c.
References check_typedef(), lval_funcs::coerce_ref, value::computed_funcs(), value::funcs, value::lval(), lval_computed, value::type(), and TYPE_IS_REFERENCE.
Referenced by ada_val_print_ref(), coerce_ref(), generic_val_print_ref(), and valprint_check_validity().
int compile_internalvar_to_ax | ( | struct internalvar * | var, |
struct agent_expr * | expr, | ||
struct axs_value * | value ) |
Definition at line 1981 of file value.c.
References INTERNALVAR_MAKE_VALUE, and internalvar::kind.
Referenced by expr::internalvar_operation::do_generate_ax().
void complete_internalvar | ( | completion_tracker & | tracker, |
const char * | name ) |
Definition at line 1931 of file value.c.
References completion_tracker::add_completion(), internalvars, name, and internalvar::name.
Referenced by condition_completer().
|
static |
Definition at line 4050 of file value.c.
References check_typedef(), type::code(), value::type(), and value_real_part().
|
static |
Definition at line 2293 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 1950 of file value.c.
References internalvars, and name.
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 1966 of file value.c.
References create_internalvar(), value::funcs, INTERNALVAR_MAKE_VALUE, internalvar::kind, and name.
Referenced by _initialize_windows_tdep(), and initialize_inferiors().
|
static |
Definition at line 2345 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 1074 of file value.c.
Referenced by address_from_register(), and value::require_not_optimized_out().
bool exceeds_max_value_size | ( | ULONGEST | length | ) |
Definition at line 821 of file value.c.
References max_value_size.
Referenced by check_type_length_before_alloc(), printf_c_string(), and printf_wide_c_string().
void finalize_values | ( | ) |
Definition at line 847 of file value.c.
References check_typedef(), type::code(), current_language, language_defn::la_language, language_fortran, and type::target_type().
Referenced by calculate_limited_array_length().
|
static |
Definition at line 431 of file value.c.
References range::length, range::offset, and ranges_overlap().
Referenced by find_first_range_overlap_and_match().
|
static |
Definition at line 568 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 2337 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 2126 of file value.c.
References INTERNALVAR_FUNCTION, and internalvar::kind.
Referenced by call_internal_function(), set_internalvar(), and value_internal_function_name().
int get_internalvar_integer | ( | struct internalvar * | var, |
LONGEST * | result ) |
Definition at line 2103 of file value.c.
References check_typedef(), type::code(), INTERNALVAR_INTEGER, INTERNALVAR_VALUE, internalvar::kind, and value_as_long().
Referenced by get_number_trailer(), get_ulongest(), and linespec_parse_variable().
|
static |
Definition at line 1875 of file value.c.
References expr::internalvar_operation::get_internalvar(), expr::assign_operation::get_lhs(), INTERNALVAR_VOID, internalvar::kind, and parse_expression().
|
static |
Definition at line 247 of file value.c.
References range::length, range::offset, and ranges_overlap().
Referenced by value::mark_bits_optimized_out(), value::mark_bits_unavailable(), and ranges_copy_adjusted().
const char * internalvar_name | ( | const struct internalvar * | var | ) |
Definition at line 2287 of file value.c.
References internalvar::name.
Referenced by expr::internalvar_operation::do_generate_ax(), expr::assign_operation::do_generate_ax(), expr::assign_modify_operation::do_generate_ax(), and expr::dump_for_expression().
bool is_floating_value | ( | struct value * | val | ) |
Definition at line 2851 of file value.c.
References check_typedef(), value::contents(), is_floating_type(), target_float_is_valid(), and value::type().
Referenced by gdbscm_value_to_real(), scalar_binop(), valpy_float(), valpy_long(), valpy_nonzero(), value_cast(), value_equal(), value_less(), value_logical_not(), and value_pos().
|
static |
Definition at line 4032 of file value.c.
References value_from_longest().
struct internalvar * lookup_internalvar | ( | const char * | name | ) |
Definition at line 2001 of file value.c.
References create_internalvar(), lookup_only_internalvar(), and name.
Referenced by clear_exit_convenience_vars(), core_target_open(), do_add_internal_function(), exit_status_set_internal_vars(), find_command(), gdbpy_set_convenience_variable(), get_number_trailer(), get_ulongest(), handle_inferior_event(), search_command_helper(), set_breakpoint_count(), set_hit_convenience_vars(), set_next_address(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), set_tracepoint_num(), ada_catchpoint::should_stop_exception(), and x_command().
struct internalvar * lookup_only_internalvar | ( | const char * | name | ) |
Definition at line 1918 of file value.c.
References internalvars, and name.
Referenced by gdbpy_convenience_variable(), gdbpy_set_convenience_variable(), linespec_parse_variable(), lookup_internalvar(), parser_state::push_dollar(), and yyparse().
Definition at line 1555 of file value.c.
References value::copy(), value::deprecated_set_type(), value::enclosing_type(), value::m_enclosing_type, make_cv_type(), value::set_enclosing_type(), and value::type().
Referenced by gdbscm_value_const_value(), and valpy_const_value().
|
static |
void modify_field | ( | struct type * | type, |
gdb_byte * | addr, | ||
LONGEST | fieldval, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize ) |
Definition at line 3280 of file value.c.
References value::bitpos(), value::bitsize(), extract_unsigned_integer(), store_unsigned_integer(), and type_byte_order().
Referenced by expr::array_operation::evaluate_struct_tuple(), make_array_descriptor(), set_internalvar_component(), and value_assign().
void pack_long | ( | gdb_byte * | buf, |
struct type * | type, | ||
LONGEST | num ) |
Definition at line 3327 of file value.c.
References range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), type::length(), store_signed_integer(), store_typed_address(), target_float_from_longest(), and type_byte_order().
Referenced by emit_numeric_character(), frame_unwind_got_address(), generic_emit_char(), linux_make_mappings_callback(), linux_make_mappings_corefile_notes(), and value_from_longest().
|
static |
Definition at line 3377 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 2397 of file value.c.
References copy_type_recursive(), INTERNALVAR_INTEGER, INTERNALVAR_VALUE, and internalvar::kind.
Referenced by preserve_values().
|
static |
Definition at line 2420 of file value.c.
References copy_type_recursive(), type::is_objfile_owned(), type::objfile_owner(), varobj::type, and varobj::value.
Referenced by preserve_values().
void preserve_values | ( | struct objfile * | objfile | ) |
Definition at line 2441 of file value.c.
References all_root_varobjs(), create_copied_types_hash(), internalvars, preserve_ext_lang_values(), preserve_one_internalvar(), preserve_one_varobj(), and value_history.
Referenced by reread_symbols(), and objfile::~objfile().
|
static |
Definition at line 88 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 1131 of file value.c.
References insert_into_bit_range_vector().
|
static |
Definition at line 74 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 3727 of file value.c.
References value::deprecated_set_type(), type::is_pointer_or_reference(), value::pointed_to_offset(), resolve_dynamic_type(), value::set_embedded_offset(), value::set_enclosing_type(), type::target_type(), and value_full_object().
Referenced by coerce_ref(), and value_ind().
value_ref_ptr release_value | ( | struct value * | val | ) |
Definition at line 1450 of file value.c.
References all_values.
Referenced by address_from_register(), alpha_register_to_value(), bpstat::bpstat(), create_child(), do_examine(), dwarf2_compute_name(), frame_register_unwind(), frame_unwind_register_signed(), frame_unwind_register_unsigned(), get_frame_register_bytes(), info_frame_command_core(), m68hc11_frame_prev_register(), mep_frame_prev_register(), py_varobj_iter::next(), put_frame_register_bytes(), value::record_latest(), register_changed_p(), set_internalvar(), update_watchpoint(), valpy_init(), value_of_dwarf_reg_entry(), vlscm_scm_from_value(), watch_command_1(), and watchpoint_check().
void set_internalvar | ( | struct internalvar * | var, |
struct value * | val ) |
Definition at line 2171 of file value.c.
References check_typedef(), clear_internalvar(), type::code(), value::copy(), DYN_PROP_DATA_LOCATION, internalvar_data::fn, internalvar_data::function, get_internalvar_function(), INTERNALVAR_FUNCTION, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lval(), lval_internalvar, internalvar::name, release_value(), type::remove_dyn_prop(), value::set_modifiable(), value::type(), internalvar_data::value, and VALUE_INTERNALVAR.
Referenced by find_command(), gdbpy_set_convenience_variable(), set_next_address(), ada_catchpoint::should_stop_exception(), value_assign(), and x_command().
void set_internalvar_component | ( | struct internalvar * | var, |
LONGEST | offset, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize, | ||
struct value * | newval ) |
Definition at line 2141 of file value.c.
References value::bitpos(), value::bitsize(), value::contents(), gdbarch_addressable_memory_unit_size(), INTERNALVAR_VALUE, internalvar::kind, type::length(), modify_field(), value::offset(), value::type(), and value_as_long().
Referenced by value_assign().
|
static |
Definition at line 2253 of file value.c.
References clear_internalvar(), f(), INTERNALVAR_FUNCTION, and internalvar::kind.
Referenced by do_add_internal_function().
void set_internalvar_integer | ( | struct internalvar * | var, |
LONGEST | l ) |
Definition at line 2232 of file value.c.
References clear_internalvar(), INTERNALVAR_INTEGER, and internalvar::kind.
Referenced by core_target_open(), exit_status_set_internal_vars(), find_command(), handle_inferior_event(), init_main(), search_command_helper(), set_breakpoint_count(), set_hit_convenience_vars(), set_traceframe_context(), set_traceframe_num(), set_tracepoint_count(), and set_tracepoint_num().
void set_internalvar_string | ( | struct internalvar * | var, |
const char * | string ) |
Definition at line 2243 of file value.c.
References clear_internalvar(), INTERNALVAR_STRING, and internalvar::kind.
Referenced by set_traceframe_context().
|
static |
Definition at line 770 of file value.c.
References max_value_size, and MIN_VALUE_FOR_MAX_VALUE_SIZE.
|
static |
Definition at line 2464 of file value.c.
References fprintf_styled(), gdb_printf(), gdb_stdout, get_current_arch(), get_user_print_options(), internalvars, metadata_style, internalvar::name, cli_style_option::style(), value_of_internalvar(), and value_print().
|
static |
Definition at line 786 of file value.c.
References gdb_printf(), and max_value_size.
|
static |
Definition at line 1742 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 3801 of file value.c.
References code, type::code(), and gdbarch_return_value_as_value().
Referenced by using_struct_return().
LONGEST unpack_bits_as_long | ( | struct type * | field_type, |
const gdb_byte * | valaddr, | ||
LONGEST | bitpos, | ||
LONGEST | bitsize ) |
Definition at line 3119 of file value.c.
References value::bitpos(), value::bitsize(), check_typedef(), extract_unsigned_integer(), type::is_unsigned(), type::length(), read_offset(), and type_byte_order().
Referenced by compute_variant_fields_inner(), value::unpack_bitfield(), unpack_field_as_long(), unpack_long(), and unpack_value_field_as_long().
LONGEST unpack_field_as_long | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
int | fieldno ) |
Definition at line 3203 of file value.c.
References value::bitpos(), field::bitsize(), value::bitsize(), type::field(), field::loc_bitpos(), field::type(), and unpack_bits_as_long().
Referenced by compute_variant_fields_inner(), dynamic_array_type(), m2_print_unbounded_array(), and selftests::unpack::unpack_field_as_long_tests().
LONGEST unpack_long | ( | struct type * | type, |
const gdb_byte * | valaddr ) |
Definition at line 2753 of file value.c.
References gdb_mpz::as_integer(), gdb_mpq::as_integer(), range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), code, type::code(), extract_signed_integer(), extract_typed_address(), extract_unsigned_integer(), type::fixed_point_scaling_factor(), type::fixed_point_type_base_type(), is_fixed_point_type(), type::is_unsigned(), type::length(), gdb_mpq::read_fixed_point(), target_float_to_longest(), type_byte_order(), unpack_bits_as_long(), and unpack_long().
Referenced by aarch64_store_return_value(), ada_val_print_enum(), ada_value_print_num(), address_from_register(), alpha_store_return_value(), arm_store_return_value(), avr_integer_to_address(), c_value_print_int(), do_ppc_sysv_return_value(), expr::c_string_operation::evaluate(), generic_val_print_enum(), generic_value_print_bool(), generic_value_print_char(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_return_value_base(), ppc_sysv_abi_push_dummy_call(), print_scalar_formatted(), rs6000_lynx178_return_value(), rs6000_push_dummy_call(), rs6000_return_value(), unpack_long(), unpack_pointer(), val_print_type_code_flags(), and value_as_long().
CORE_ADDR unpack_pointer | ( | struct type * | type, |
const gdb_byte * | valaddr ) |
Definition at line 2843 of file value.c.
References unpack_long().
Referenced by ada_val_print_ref(), c_value_print_ptr(), coerce_ref(), dynamic_array_type(), generic_val_print_ref(), generic_value_print_ptr(), gnuv2_baseclass_offset(), m2_print_unbounded_array(), print_unpacked_pointer(), print_variable_at_address(), value_as_address(), f_language::value_print_inner(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
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 3178 of file value.c.
References value::bitpos(), value::bits_any_optimized_out(), value::bits_available(), field::bitsize(), value::bitsize(), value::embedded_offset(), type::field(), field::loc_bitpos(), field::type(), and unpack_bits_as_long().
Referenced by print_go_string().
int using_struct_return | ( | struct gdbarch * | gdbarch, |
struct value * | function, | ||
struct type * | value_type ) |
Definition at line 3819 of file value.c.
References type::code(), RETURN_VALUE_REGISTER_CONVENTION, and struct_return_convention().
Referenced by call_function_by_hand_dummy(), eval_op_objc_msgcall(), and sparc32_push_dummy_code().
struct type * value_actual_type | ( | struct value * | value, |
int | resolve_simple_types, | ||
int * | real_type_found ) |
Definition at line 1032 of file value.c.
References check_typedef(), type::code(), value::enclosing_type(), get_user_print_options(), type::is_pointer_or_reference(), value::optimized_out(), type::target_type(), value::type(), and value_rtti_indirect_type().
Referenced by adjust_value_for_child_access(), create_child_with_value(), update_type_if_necessary(), and varobj_create().
CORE_ADDR value_as_address | ( | struct value * | val | ) |
Definition at line 2636 of file value.c.
References value::address, type::arch(), type::code(), coerce_array(), value::contents(), gdbarch_addr_bits_remove(), gdbarch_integer_to_address(), gdbarch_integer_to_address_p(), type::is_pointer_or_reference(), value::type(), unpack_pointer(), and value_as_long().
Referenced by aarch64_linux_get_memtag(), aarch64_linux_memtag_matches_p(), aarch64_linux_memtag_to_string(), aarch64_linux_set_memtags(), aarch64_linux_tagged_address_p(), ada_tag_name_from_tsd(), ada_value_slice_from_ptr(), ada_varobj_adjust_for_child_access(), ada_varobj_get_ptr_number_of_children(), ada_varobj_ind(), frame_command_helper< FPTR >::address(), address_from_register(), arm_m_exception_prev_register(), c_get_string(), c_value_print(), disassemble_command(), do_one_display(), dump_arc_instruction_command(), dwarf2_evaluate_property(), dwarf2_locexpr_baton_eval(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), eval_op_ind(), eval_op_memval(), eval_op_objc_msgcall(), expr::ada_unop_ind_operation::evaluate(), execute_stack_op(), dwarf_expr_context::fetch_result(), find_function_addr(), fortran_associated(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), get_addr_from_python(), gnuv2_value_rtti_type(), gnuv3_get_typename_from_type_info(), gnuv3_get_virtual_fn(), gnuv3_get_vtable(), gnuv3_print_vtable(), gnuv3_rtti_type(), hppa_linux_find_global_pointer(), hppabsd_find_global_pointer(), i386_mpx_set_bounds(), info_mach_region_command(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), call_site_target::iterate_over_addresses(), linespec_expression_to_pc(), linux_infcall_mmap(), memory_tag_check_command(), memory_tag_print_tag_command(), parse_and_eval_address(), parse_find_args(), parse_frame_specification(), parse_set_allocation_tag_input(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_get_return_buf_addr(), print_one_vtable(), printf_c_string(), printf_wide_c_string(), process_event_stop_test(), ptid_from_atcb_common(), read_atcb(), read_known_tasks_list(), language_defn::read_var_value(), rust_get_trait_object_pointer(), rust_slice_to_array(), rust_val_print_slice(), svr4_handle_solib_event(), valpy_lazy_string(), value_equal(), value_ind(), value_less(), rust_language::value_print_inner(), value_ptradd(), frame_command_helper< FPTR >::view(), watch_command_1(), and x_command().
LONGEST value_as_long | ( | struct value * | val | ) |
Definition at line 2554 of file value.c.
References coerce_array(), value::contents(), value::type(), and unpack_long().
Referenced by ada_array_bound(), ada_array_length(), ada_atr_enum_val(), ada_get_tcb_types_info(), ada_tag_value_at_base_address(), ada_ternop_slice(), ada_type_of_array(), ada_val_atr(), ada_which_variant_applies(), dwarf_expr_context::add_piece(), allocate_space_in_inferior(), arm_m_exception_prev_register(), expr::ada_discrete_range_association::assign(), expr::ada_name_association::assign(), call_target_sbrk(), ppc_linux_nat_target::check_condition(), checkpoint_command(), complex_binop(), desc_bounds(), expr::repeat_operation::do_generate_ax(), dwarf2_evaluate_property(), ensure_lval(), eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_m2_subscript(), eval_op_member(), eval_op_objc_msgcall(), eval_op_repeat(), eval_op_rust_array(), eval_op_sub(), eval_op_subscript(), expr::ada_binop_addsub_operation::evaluate(), expr::objc_msgcall_operation::evaluate(), expr::ternop_slice_operation::evaluate(), expr::array_operation::evaluate(), expr::rust_aggregate_operation::evaluate(), expr::structop_member_base::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_result(), find_func_descr(), find_function_addr(), fortran_argument_convert(), fortran_array_size(), fortran_bounds_for_dimension(), fortran_wrap2_kind(), fortran_wrap3_kind(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_real(), expr::operation::generate_ax(), get_baseclass_offset(), ravenscar_thread_target::get_fpu_state(), get_int_var_value(), get_internalvar_integer(), get_number_trailer(), get_ulongest(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_rtti_type(), ignore_command(), inferior_call_waitpid(), info_port_rights(), info_task(), frame_command_helper< FPTR >::level(), linespec_parse_variable(), linux_infcall_munmap(), lookup_child_selector(), lookup_objc_class(), m68hc11_frame_prev_register(), maintenance_print_frame_id(), maintenance_print_record_instruction(), mep_frame_prev_register(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), msp430_prev_register(), parse_and_eval_long(), parse_find_args(), parse_frame_specification(), pos_atr(), print_ada_task_info(), print_object_command(), printf_pointer(), ptid_from_atcb_common(), quit_command(), rank_one_type_parm_ptr(), read_atcb(), read_fat_string_value(), riscv_print_one_register_info(), rl78_prev_register(), rust_compute_range(), rust_range(), rust_slice_to_array(), rust_subscript(), rust_val_print_slice(), s12z_print_ccw_info(), s390_unwind_pseudo_register(), scalar_binop(), scan_discrim_bound(), set_internalvar_component(), svr4_handle_solib_event(), task_command_1(), trace_variable_command(), ui_printf(), valpy_binop_throw(), valpy_float(), valpy_getitem(), valpy_long(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_as_mpz(), value_assign(), value_cast(), value_dynamic_cast(), value_equal(), value_less(), f_language::value_print_inner(), value_ptrdiff(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), vlscm_binop_gdbthrow(), and wrap_ternop_intrinsic().
Definition at line 2566 of file value.c.
References range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), coerce_array(), value::contents(), type::is_unsigned(), gdb_mpz::mask(), gdb_mpz::read(), value::type(), type_byte_order(), and value_as_long().
Referenced by ada_value_binop(), scalar_binop(), value_cast(), and value_complement().
Definition at line 3052 of file value.c.
References value::primitive_field(), and value::type().
Referenced by ada_varobj_struct_elt(), compute_vtable_size(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_get_typeid(), gnuv3_get_virtual_fn(), gnuv3_rtti_type(), rust_language::print_enum(), print_field_values(), print_one_vtable(), print_variant_part(), ptid_from_atcb_common(), read_atcb(), read_fat_string_value(), read_known_tasks_list(), rust_compute_range(), rust_get_trait_object_pointer(), rust_subscript(), rust_language::val_print_struct(), and f_language::value_print_inner().
struct value * value_field_bitfield | ( | struct type * | type, |
int | fieldno, | ||
const gdb_byte * | valaddr, | ||
LONGEST | embedded_offset, | ||
const struct value * | val ) |
Definition at line 3259 of file value.c.
References value::allocate(), value::bitpos(), field::bitsize(), value::bitsize(), value::embedded_offset(), type::field(), field::loc_bitpos(), field::type(), and value::unpack_bitfield().
Referenced by cp_print_value_fields(), and pascal_object_print_value_fields().
struct value * value_fn_field | ( | struct value ** | arg1p, |
struct fn_field * | f, | ||
int | j, | ||
struct type * | type, | ||
LONGEST | offset ) |
Definition at line 3065 of file value.c.
References value::allocate(), objfile::arch(), current_inferior(), block::entry_pc(), f(), gdbarch_convert_from_func_ptr_addr(), lookup_bound_minimal_symbol(), lookup_pointer_type(), lookup_symbol(), lval_memory, bound_minimal_symbol::minsym, bound_minimal_symbol::objfile, value::set_address(), value::set_lval(), block_symbol::symbol, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_TYPE, value_addr(), bound_minimal_symbol::value_address(), symbol::value_block(), value_cast(), value_ind(), and VAR_DOMAIN.
Referenced by find_overload_match(), and search_struct_method().
void value_free_to_mark | ( | const struct value * | mark | ) |
Definition at line 1437 of file value.c.
References all_values.
Referenced by scoped_value_mark::free_to_mark(), watch_command_1(), and watchpoint_check().
Definition at line 3657 of file value.c.
References value::allocate(), value::allocate_lazy(), value::contents_copy(), value::embedded_offset(), value::lazy(), value::lval(), lval_memory, value::offset(), value::set_component_location(), value::set_offset(), and type_length_units().
Referenced by fortran_array_printer_impl::dimension_contents_eq(), value::from_component_bitsize(), fortran_array_repacker_impl::process_element(), fortran_array_printer_impl::process_element(), value_imaginary_part(), value_real_part(), expr::fortran_undetermined::value_subarray(), and value_subscripted_rvalue().
Definition at line 3581 of file value.c.
References value::allocate(), value::contents(), value::contents_raw(), and type::length().
Referenced by ada_to_fixed_value_create(), convert_buffer_and_type_to_value(), dwarf2_evaluate_property(), expr::float_const_operation::evaluate(), dwarf_expr_context::execute_stack_op(), fetch_const_value_from_synthetic_pointer(), maintenance_print_record_instruction(), printf_floating(), riscv_return_value(), value_from_contents_and_address(), value_from_contents_and_address_unresolved(), value_pos(), and vlscm_convert_bytevector().
struct value * value_from_contents_and_address | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
CORE_ADDR | address, | ||
frame_info_ptr | frame ) |
Definition at line 3552 of file value.c.
References value::address, value::allocate_lazy(), check_typedef(), type::length(), lval_memory, resolve_dynamic_type(), value::set_address(), value::set_lval(), TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_ADDR, and value_from_contents().
Referenced by ada_tag_value_at_base_address(), ada_to_fixed_type_1(), ada_to_fixed_value_create(), ada_value_struct_elt(), amd64_windows_adjust_args_passed_by_pointer(), call_function_by_hand_dummy(), cp_print_value(), dwarf_expr_context::execute_stack_op(), fortran_argument_convert(), gdbscm_make_lazy_value(), get_call_return_value(), get_value_at(), pascal_object_print_value(), read_atcb(), read_known_tasks_list(), search_struct_method(), to_record_with_fixed_variant_part(), expr::fortran_undetermined::value_subarray(), and value_tag_from_contents_and_address().
struct value * value_from_contents_and_address_unresolved | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
CORE_ADDR | address ) |
Definition at line 3531 of file value.c.
References value::address, value::allocate_lazy(), lval_memory, value::set_address(), value::set_lval(), and value_from_contents().
Referenced by ada_template_to_fixed_record_type_1().
struct value * value_from_history_ref | ( | const char * | h, |
const char ** | endp ) |
Definition at line 3595 of file value.c.
References access_value_history().
Referenced by get_number_trailer(), and get_ulongest().
Definition at line 3514 of file value.c.
References value::allocate(), type::code(), value::contents_raw(), target_float_from_host_double(), value::type(), and value.
Referenced by convert_value_from_python(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), gdbscm_value_to_real(), vlscm_convert_number(), and vlscm_convert_typed_number().
Definition at line 3438 of file value.c.
References value::allocate(), value::contents_raw(), and pack_long().
Referenced by ada_array_length(), ada_atr_enum_val(), ada_atr_size(), ada_binop_in_bounds(), ada_equal_binop(), ada_pos_atr(), ada_unop_atr(), ada_unop_in_range(), ada_varobj_simple_array_elt(), expr::assign_component(), call_target_sbrk(), checkpoint_command(), complex_binop(), compute_probe_arg(), convert_value_from_python(), desc_bounds(), dwarf2_compute_name(), elf_gnu_ifunc_resolve_addr(), enum_constant_from_type(), eval_op_alignof(), eval_op_equal(), eval_op_f_abs(), eval_op_f_allocated(), eval_op_f_kind(), eval_op_f_loc(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_f_rank(), eval_op_geq(), eval_op_gtr(), eval_op_leq(), eval_op_less(), eval_op_lognot(), eval_op_notequal(), eval_op_objc_msgcall(), eval_op_objc_selector(), eval_op_rust_complement(), eval_op_sub(), eval_ternop_in_range(), expr::ada_binop_addsub_operation::evaluate(), expr::c_string_operation::evaluate(), expr::opencl_logical_binop_operation::evaluate(), expr::bool_operation::evaluate(), expr::logical_and_operation::evaluate(), expr::logical_or_operation::evaluate(), expr::var_msym_value_operation::evaluate_for_sizeof(), expr::subscript_operation::evaluate_for_sizeof(), expr::unop_ind_base_operation::evaluate_for_sizeof(), expr::structop_base_operation::evaluate_funcall(), evaluate_subexp_for_sizeof_base(), fortran_array_shape(), fortran_array_size(), fortran_associated(), fortran_bounds_all_dims(), fortran_bounds_for_dimension(), fortran_ceil_operation(), fortran_floor_operation(), gdbscm_value_to_real(), inferior_call_waitpid(), inferior_id_make_value(), inferior_thread_count_make_value(), isvoid_internal_fn(), linux_infcall_mmap(), opencl_logical_not(), opencl_relop(), f_language::print_array_index(), language_defn::print_array_index(), print_scalar_formatted(), rust_subscript(), s390_unwind_pseudo_register(), shell_internal_fn(), thin_data_pntr(), thread_num_make_value_helper(), val_atr(), valpy_binop_throw(), value_allocate_space_in_inferior(), value_assign(), value_cast(), value_from_setting(), value_neg(), value_nsstring(), value_of_internalvar(), value_one(), value_struct_elt_for_reference(), value_x_unop(), vlscm_binop_gdbthrow(), vlscm_convert_number(), vlscm_convert_typed_number(), vlscm_convert_typed_value_from_scheme(), and vlscm_unop_gdbthrow().
Definition at line 3462 of file value.c.
References value::allocate(), range_bounds::bias, type::bit_offset(), type::bit_size(), type::bit_size_differs_p(), type::bounds(), check_typedef(), type::code(), value::contents_raw(), type::is_unsigned(), gdb_mpz::mask(), gdb_mpz::truncate(), and type_byte_order().
Referenced by ada_value_binop(), expr::long_const_operation::evaluate(), scalar_binop(), value_cast(), and value_complement().
Definition at line 3500 of file value.c.
References value::allocate(), check_typedef(), value::contents_raw(), and store_typed_address().
Referenced by aarch64_push_dummy_call(), ada_val_print_ref(), address_of_variable(), alpha_push_dummy_call(), c_value_print(), call_function_by_hand_dummy(), compile_object_run(), do_module_cleanup(), eval_op_member(), eval_op_objc_msgcall(), expr::structop_member_base::evaluate_funcall(), dwarf_expr_context::fetch_result(), find_command(), find_function_in_inferior(), ravenscar_thread_target::get_fpu_state(), gnuv3_method_ptr_to_value(), inferior_call_waitpid(), linux_infcall_mmap(), linux_infcall_munmap(), lsscm_safe_lazy_string_to_value(), language_defn::read_var_value(), s390_unwind_pseudo_register(), set_next_address(), sparc32_store_arguments(), sparc64_store_arguments(), stpy_convert_to_value(), value_addr(), value_coerce_array(), value_coerce_function(), value_ptradd(), value_struct_elt_for_reference(), vlscm_convert_typed_number(), and x_command().
Definition at line 3450 of file value.c.
References value::allocate(), value::contents_raw(), and pack_unsigned_long().
Referenced by aarch64_linux_get_memtag(), convert_value_from_python(), do_examine(), dwarf_expr_context::execute_stack_op(), fixed_point_binop(), gdbscm_value_to_real(), linux_infcall_mmap(), linux_infcall_munmap(), dwarf_expr_context::push_address(), value_cast(), and value_from_setting().
ULONGEST value_history_count | ( | ) |
Definition at line 1736 of file value.c.
References value_history.
Referenced by gdbpy_history_count().
const char * value_internal_function_name | ( | struct value * | val | ) |
Definition at line 2305 of file value.c.
References get_internalvar_function(), value::lval(), lval_internalvar, internal_function::name, and VALUE_INTERNALVAR.
Referenced by value_check_printable().
struct value * value_mark | ( | void | ) |
Definition at line 1414 of file value.c.
References all_values.
Referenced by fetch_subexp_value(), watch_command_1(), and watchpoint_check().
struct value * value_of_internalvar | ( | struct gdbarch * | gdbarch, |
struct internalvar * | var ) |
Definition at line 2016 of file value.c.
References value::allocate(), current_language, value::fetch_lazy(), find_trace_state_variable(), INTERNALVAR_FUNCTION, INTERNALVAR_INTEGER, INTERNALVAR_MAKE_VALUE, INTERNALVAR_STRING, INTERNALVAR_VALUE, INTERNALVAR_VOID, internalvar::kind, value::lazy(), value::lval(), lval_computed, lval_internalvar, internalvar::name, trace_state_variable::number, value::set_lval(), target_get_trace_state_variable_value(), trace_state_variable::value, value_from_longest(), VALUE_INTERNALVAR, trace_state_variable::value_known, and language_defn::value_string().
Referenced by expr::internalvar_operation::evaluate(), gdbpy_convenience_variable(), show_convenience(), value_assign(), and yyparse().
std::vector< value_ref_ptr > value_release_to_mark | ( | const struct value * | mark | ) |
Definition at line 2870 of file value.c.
References value::allocate_optimized_out(), block_symbol::block, type::field(), FIELD_LOC_KIND_PHYSADDR, FIELD_LOC_KIND_PHYSNAME, field::loc_kind(), field::loc_physaddr(), field::loc_physname(), lookup_minimal_symbol(), lookup_symbol(), bound_minimal_symbol::minsym, block_symbol::symbol, field::type(), bound_minimal_symbol::value_address(), value_at_lazy(), value_of_variable(), and VAR_DOMAIN.
Referenced by cp_print_value_fields(), struct_field_searcher::search(), value_struct_element_index(), and value_struct_elt_for_reference().
|
static |
Definition at line 724 of file value.c.
Referenced by value::allocate_lazy(), finalize_values(), release_value(), value_free_to_mark(), value_mark(), and value_release_to_mark().
|
static |
Definition at line 829 of file value.c.
Referenced by calculate_limited_array_length(), value::record_latest(), scoped_array_length_limiting::scoped_array_length_limiting(), value::set_limited_array_length(), and scoped_array_length_limiting::~scoped_array_length_limiting().
|
static |
Definition at line 149 of file value.c.
Referenced by do_add_internal_function().
|
static |
Definition at line 1870 of file value.c.
Referenced by complete_internalvar(), create_internalvar(), lookup_only_internalvar(), preserve_values(), and show_convenience().
|
static |
Definition at line 753 of file value.c.
Referenced by value::allocate_contents(), exceeds_max_value_size(), value::record_latest(), value::set_limited_array_length(), set_max_value_size(), and show_max_value_size().
|
static |
Definition at line 717 of file value.c.
Referenced by access_value_history(), preserve_values(), value::record_latest(), show_values(), and value_history_count().