GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
value.h File Reference
#include "frame.h"
#include "extension.h"
#include "gdbsupport/gdb_ref_ptr.h"
#include "gmp-utils.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"

Go to the source code of this file.

Classes

struct  range
 
struct  value_ref_policy
 
struct  value
 
struct  lval_funcs
 
class  scoped_value_mark
 
struct  internalvar_funcs
 
struct  scoped_array_length_limiting
 

Namespaces

namespace  expr
 

Macros

#define VALUE_INTERNALVAR(val)   (*((val)->deprecated_internalvar_hack ()))
 
#define VALUE_NEXT_FRAME_ID(val)   (*((val)->deprecated_next_frame_id_hack ()))
 
#define VALUE_REGNUM(val)   (*((val)->deprecated_regnum_hack ()))
 

Typedefs

typedef gdb::ref_ptr< struct value, value_ref_policyvalue_ref_ptr
 
typedef struct value *(* internal_function_fn) (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
 

Enumerations

enum  oload_search_type { NON_METHOD , METHOD , BOTH }
 

Functions

struct typevalue_actual_type (struct value *value, int resolve_simple_types, int *real_type_found)
 
void error_value_optimized_out (void)
 
struct valuecoerce_ref_if_computed (const struct value *arg)
 
struct valuereadjust_indirect_value_type (struct value *value, struct type *enc_type, const struct type *original_type, struct value *original_val, CORE_ADDR original_value_address)
 
struct valuecoerce_ref (struct value *value)
 
struct valuecoerce_array (struct value *value)
 
void read_value_memory (struct value *val, LONGEST bit_offset, bool stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length)
 
struct valuevalue_vector_widen (struct value *scalar_value, struct type *vector_type)
 
int print_address_demangle (const struct value_print_options *, struct gdbarch *, CORE_ADDR, struct ui_file *, int)
 
bool is_floating_value (struct value *val)
 
LONGEST value_as_long (struct value *val)
 
CORE_ADDR value_as_address (struct value *val)
 
gdb_mpz value_as_mpz (struct value *val)
 
LONGEST unpack_long (struct type *type, const gdb_byte *valaddr)
 
CORE_ADDR unpack_pointer (struct type *type, const gdb_byte *valaddr)
 
LONGEST unpack_field_as_long (struct type *type, const gdb_byte *valaddr, int fieldno)
 
LONGEST unpack_bits_as_long (struct type *field_type, const gdb_byte *valaddr, LONGEST bitpos, LONGEST bitsize)
 
int unpack_value_field_as_long (struct type *type, const gdb_byte *valaddr, LONGEST embedded_offset, int fieldno, const struct value *val, LONGEST *result)
 
struct valuevalue_field_bitfield (struct type *type, int fieldno, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val)
 
void pack_long (gdb_byte *buf, struct type *type, LONGEST num)
 
struct valuevalue_from_longest (struct type *type, LONGEST num)
 
struct valuevalue_from_ulongest (struct type *type, ULONGEST num)
 
struct valuevalue_from_pointer (struct type *type, CORE_ADDR addr)
 
struct valuevalue_from_host_double (struct type *type, double d)
 
struct valuevalue_from_history_ref (const char *, const char **)
 
struct valuevalue_from_component (struct value *, struct type *, LONGEST)
 
struct valuevalue_from_mpz (struct type *type, const gdb_mpz &v)
 
struct valuevalue_at (struct type *type, CORE_ADDR addr)
 
struct valuevalue_at_lazy (struct type *type, CORE_ADDR addr, frame_info_ptr frame=nullptr)
 
struct valuevalue_at_non_lval (struct type *type, CORE_ADDR addr)
 
struct valuevalue_from_contents_and_address_unresolved (struct type *, const gdb_byte *, CORE_ADDR)
 
struct valuevalue_from_contents_and_address (struct type *, const gdb_byte *, CORE_ADDR, frame_info_ptr frame=nullptr)
 
struct valuevalue_from_contents (struct type *, const gdb_byte *)
 
struct valuedefault_value_from_register (struct gdbarch *gdbarch, struct type *type, int regnum, struct frame_id frame_id)
 
void read_frame_register_value (struct value *value, frame_info_ptr frame)
 
struct valuevalue_from_register (struct type *type, int regnum, frame_info_ptr frame)
 
CORE_ADDR address_from_register (int regnum, frame_info_ptr frame)
 
struct valuevalue_of_variable (struct symbol *var, const struct block *b)
 
struct valueaddress_of_variable (struct symbol *var, const struct block *b)
 
struct valuevalue_of_register (int regnum, frame_info_ptr frame)
 
struct valuevalue_of_register_lazy (frame_info_ptr frame, int regnum)
 
enum symbol_needs_kind symbol_read_needs (struct symbol *)
 
int symbol_read_needs_frame (struct symbol *)
 
struct valueread_var_value (struct symbol *var, const struct block *var_block, frame_info_ptr frame)
 
struct valueallocate_repeat_value (struct type *type, int count)
 
struct valuevalue_mark (void)
 
void value_free_to_mark (const struct value *mark)
 
struct valuevalue_cstring (const gdb_byte *ptr, ssize_t count, struct type *char_type)
 
struct valuevalue_cstring (const char *ptr, ssize_t count, struct type *char_type)
 
struct valuevalue_string (const gdb_byte *ptr, ssize_t count, struct type *char_type)
 
struct valuevalue_string (const char *ptr, ssize_t count, struct type *char_type)
 
struct valuevalue_array (int lowbound, gdb::array_view< struct value * > elemvec)
 
struct valuevalue_concat (struct value *arg1, struct value *arg2)
 
struct valuevalue_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
 
struct valuevalue_ptradd (struct value *arg1, LONGEST arg2)
 
LONGEST value_ptrdiff (struct value *arg1, struct value *arg2)
 
bool value_must_coerce_to_target (struct value *arg1)
 
struct valuevalue_coerce_to_target (struct value *arg1)
 
struct valuevalue_coerce_array (struct value *arg1)
 
struct valuevalue_coerce_function (struct value *arg1)
 
struct valuevalue_ind (struct value *arg1)
 
struct valuevalue_addr (struct value *arg1)
 
struct valuevalue_ref (struct value *arg1, enum type_code refcode)
 
struct valuevalue_assign (struct value *toval, struct value *fromval)
 
struct valuevalue_pos (struct value *arg1)
 
struct valuevalue_neg (struct value *arg1)
 
struct valuevalue_complement (struct value *arg1)
 
struct valuevalue_struct_elt (struct value **argp, gdb::optional< gdb::array_view< value * > > args, const char *name, int *static_memfuncp, const char *err)
 
struct valuevalue_struct_elt_bitpos (struct value **argp, int bitpos, struct type *field_type, const char *err)
 
struct valuevalue_aggregate_elt (struct type *curtype, const char *name, struct type *expect_type, int want_address, enum noside noside)
 
struct valuevalue_static_field (struct type *type, int fieldno)
 
int find_overload_match (gdb::array_view< value * > args, const char *name, enum oload_search_type method, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl, enum noside noside)
 
struct valuevalue_field (struct value *arg1, int fieldno)
 
struct typevalue_rtti_indirect_type (struct value *, int *, LONGEST *, int *)
 
struct valuevalue_full_object (struct value *, struct type *, int, int, int)
 
struct valuevalue_cast_pointers (struct type *, struct value *, int)
 
struct valuevalue_cast (struct type *type, struct value *arg2)
 
struct valuevalue_reinterpret_cast (struct type *type, struct value *arg)
 
struct valuevalue_dynamic_cast (struct type *type, struct value *arg)
 
struct valuevalue_one (struct type *type)
 
struct valuevalue_repeat (struct value *arg1, int count)
 
struct valuevalue_subscript (struct value *array, LONGEST index)
 
struct valuevalue_to_array (struct value *val)
 
struct valuevalue_bitstring_subscript (struct type *type, struct value *bitstring, LONGEST index)
 
struct valueregister_value_being_returned (struct type *valtype, struct regcache *retbuf)
 
int value_bit_index (struct type *type, const gdb_byte *addr, int index)
 
enum return_value_convention struct_return_convention (struct gdbarch *gdbarch, struct value *function, struct type *value_type)
 
int using_struct_return (struct gdbarch *gdbarch, struct value *function, struct type *value_type)
 
valueevaluate_var_value (enum noside noside, const block *blk, symbol *var)
 
valueevaluate_var_msym_value (enum noside noside, struct objfile *objfile, minimal_symbol *msymbol)
 
void fetch_subexp_value (struct expression *exp, expr::operation *op, struct value **valp, struct value **resultp, std::vector< value_ref_ptr > *val_chain, bool preserve_errors)
 
struct valueparse_and_eval (const char *exp, parser_flags flags=0)
 
struct valueparse_to_comma_and_eval (const char **expp)
 
struct typeparse_and_eval_type (const char *p, int length)
 
CORE_ADDR parse_and_eval_address (const char *exp)
 
LONGEST parse_and_eval_long (const char *exp)
 
void unop_promote (const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1)
 
void binop_promote (const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1, struct value **arg2)
 
struct valueaccess_value_history (int num)
 
ULONGEST value_history_count ()
 
struct valuevalue_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var)
 
int get_internalvar_integer (struct internalvar *var, LONGEST *l)
 
void set_internalvar (struct internalvar *var, struct value *val)
 
void set_internalvar_integer (struct internalvar *var, LONGEST l)
 
void set_internalvar_string (struct internalvar *var, const char *string)
 
void clear_internalvar (struct internalvar *var)
 
void set_internalvar_component (struct internalvar *var, LONGEST offset, LONGEST bitpos, LONGEST bitsize, struct value *newvalue)
 
struct internalvarlookup_only_internalvar (const char *name)
 
struct internalvarcreate_internalvar (const char *name)
 
void complete_internalvar (completion_tracker &tracker, const char *name)
 
struct internalvarcreate_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 internalvarlookup_internalvar (const char *name)
 
int value_equal (struct value *arg1, struct value *arg2)
 
int value_equal_contents (struct value *arg1, struct value *arg2)
 
int value_less (struct value *arg1, struct value *arg2)
 
bool value_logical_not (struct value *arg1)
 
static bool value_true (struct value *val)
 
struct valuevalue_of_this (const struct language_defn *lang)
 
struct valuevalue_of_this_silent (const struct language_defn *lang)
 
struct valuevalue_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, enum exp_opcode otherop, enum noside noside)
 
struct valuevalue_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside)
 
struct valuevalue_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *type, LONGEST offset)
 
int binop_types_user_defined_p (enum exp_opcode op, struct type *type1, struct type *type2)
 
int binop_user_defined_p (enum exp_opcode op, struct value *arg1, struct value *arg2)
 
int unop_user_defined_p (enum exp_opcode op, struct value *arg1)
 
int destructor_name_p (const char *name, struct type *type)
 
value_ref_ptr release_value (struct value *val)
 
void modify_field (struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize)
 
void type_print (struct type *type, const char *varstring, struct ui_file *stream, int show)
 
std::string type_to_string (struct type *type)
 
gdb_byte * baseclass_addr (struct type *type, int index, gdb_byte *valaddr, struct value **valuep, int *errp)
 
void print_longest (struct ui_file *stream, int format, int use_local, LONGEST val)
 
void print_floating (const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
 
void value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options)
 
std::vector< value_ref_ptrvalue_release_to_mark (const struct value *mark)
 
void common_val_print (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
 
int val_print_string (struct type *elttype, const char *encoding, CORE_ADDR addr, int len, struct ui_file *stream, const struct value_print_options *options)
 
void print_variable_and_value (const char *name, struct symbol *var, frame_info_ptr frame, struct ui_file *stream, int indent)
 
void typedef_print (struct type *type, struct symbol *news, struct ui_file *stream)
 
const char * internalvar_name (const struct internalvar *var)
 
void preserve_values (struct objfile *)
 
struct valuemake_cv_value (int, int, struct value *)
 
struct valuevarying_to_slice (struct value *)
 
struct valuevalue_slice (struct value *, int, int)
 
struct valuevalue_literal_complex (struct value *, struct value *, struct type *)
 
struct valuevalue_real_part (struct value *value)
 
struct valuevalue_imaginary_part (struct value *value)
 
struct valuefind_function_in_inferior (const char *, struct objfile **)
 
struct valuevalue_allocate_space_in_inferior (int)
 
void add_internal_function (const char *name, const char *doc, internal_function_fn handler, void *cookie)
 
void add_internal_function (gdb::unique_xmalloc_ptr< char > &&name, gdb::unique_xmalloc_ptr< char > &&doc, internal_function_fn handler, void *cookie)
 
struct valuecall_internal_function (struct gdbarch *gdbarch, const struct language_defn *language, struct value *function, int argc, struct value **argv)
 
const char * value_internal_function_name (struct value *)
 
void finalize_values ()
 
gdb_mpq value_to_gdb_mpq (struct value *value)
 
bool exceeds_max_value_size (ULONGEST length)
 

Variables

bool overload_resolution
 

Macro Definition Documentation

◆ VALUE_INTERNALVAR

#define VALUE_INTERNALVAR ( val)    (*((val)->deprecated_internalvar_hack ()))

◆ VALUE_NEXT_FRAME_ID

#define VALUE_NEXT_FRAME_ID ( val)    (*((val)->deprecated_next_frame_id_hack ()))

◆ VALUE_REGNUM

#define VALUE_REGNUM ( val)    (*((val)->deprecated_regnum_hack ()))

Typedef Documentation

◆ internal_function_fn

typedef struct value *(* internal_function_fn) (struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)

Definition at line 1577 of file value.h.

◆ value_ref_ptr

typedef gdb::ref_ptr<struct value, value_ref_policy> value_ref_ptr

Definition at line 124 of file value.h.

Enumeration Type Documentation

◆ oload_search_type

Enumerator
NON_METHOD 
METHOD 
BOTH 

Definition at line 1289 of file value.h.

Function Documentation

◆ access_value_history()

struct value * access_value_history ( int num)
extern

◆ add_internal_function() [1/2]

void add_internal_function ( const char * name,
const char * doc,
internal_function_fn handler,
void * cookie )
extern

Definition at line 2360 of file value.c.

References do_add_internal_function(), and name.

Referenced by fnpy_init().

◆ add_internal_function() [2/2]

void add_internal_function ( gdb::unique_xmalloc_ptr< char > && name,
gdb::unique_xmalloc_ptr< char > && doc,
internal_function_fn handler,
void * cookie )
extern

◆ address_from_register()

CORE_ADDR address_from_register ( int regnum,
frame_info_ptr frame )
extern

◆ address_of_variable()

struct value * address_of_variable ( struct symbol * var,
const struct block * b )
extern

◆ allocate_repeat_value()

struct value * allocate_repeat_value ( struct type * type,
int count )
extern

◆ baseclass_addr()

gdb_byte * baseclass_addr ( struct type * type,
int index,
gdb_byte * valaddr,
struct value ** valuep,
int * errp )
extern

◆ binop_promote()

void binop_promote ( const struct language_defn * language,
struct gdbarch * gdbarch,
struct value ** arg1,
struct value ** arg2 )
extern

◆ binop_types_user_defined_p()

int binop_types_user_defined_p ( enum exp_opcode op,
struct type * type1,
struct type * type2 )
extern

◆ binop_user_defined_p()

int binop_user_defined_p ( enum exp_opcode op,
struct value * arg1,
struct value * arg2 )
extern

◆ call_internal_function()

struct value * call_internal_function ( struct gdbarch * gdbarch,
const struct language_defn * language,
struct value * function,
int argc,
struct value ** argv )

◆ clear_internalvar()

void clear_internalvar ( struct internalvar * var)
extern

◆ coerce_array()

struct value * coerce_array ( struct value * value)
extern

◆ coerce_ref()

struct value * coerce_ref ( struct value * value)
extern

◆ coerce_ref_if_computed()

struct value * coerce_ref_if_computed ( const struct value * arg)
extern

◆ common_val_print()

void common_val_print ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
const struct language_defn * language )
extern

Definition at line 1033 of file valprint.c.

References ada_to_fixed_value(), apply_ext_lang_val_pretty_printer(), check_typedef(), value::fetch_lazy(), fprintf_styled(), gdb_printf(), type::is_stub(), language_ada, value::lazy(), metadata_style, value_print_options::prettyformat, value_print_options::prettyformat_structs, QUIT, value_print_options::raw, cli_style_option::style(), value_print_options::summary, value::type(), Val_no_prettyformat, Val_prettyformat, Val_prettyformat_default, val_print_check_max_depth(), val_print_scalar_or_string_type_p(), val_print_scalar_type_p(), and valprint_check_validity().

Referenced by ada_val_print_ref(), ada_value_print(), ada_value_print_inner(), ada_value_print_num(), ada_value_print_ptr(), ada_varobj_get_value_image(), c_value_print(), common_val_print_checked(), cp_print_static_field(), cp_print_value_fields(), default_print_one_register_info(), gdbscm_value_print(), generic_val_print_ref(), list_arg_or_local(), mi_cmd_data_evaluate_expression(), output_register(), pascal_object_print_static_field(), pascal_object_print_value_fields(), ppscm_print_children(), ppscm_print_string_repr(), print_children(), rust_language::print_enum(), print_field_values(), print_string_repr(), print_unpacked_pointer(), print_variable_at_address(), print_variable_or_computed(), fortran_array_printer_impl::process_element(), py_print_value(), riscv_print_one_register_info(), val_print_packed_array_elements(), rust_language::val_print_struct(), valpy_format_string(), valpy_str(), pascal_language::value_print(), rust_language::value_print(), value_print_array_elements(), f_language::value_print_inner(), pascal_language::value_print_inner(), value_print_scalar_formatted(), varobj_value_get_print_value(), and vlscm_print_value_smob().

◆ compile_internalvar_to_ax()

int compile_internalvar_to_ax ( struct internalvar * var,
struct agent_expr * expr,
struct axs_value * value )
extern

Definition at line 1981 of file value.c.

References INTERNALVAR_MAKE_VALUE, and internalvar::kind.

Referenced by expr::internalvar_operation::do_generate_ax().

◆ complete_internalvar()

void complete_internalvar ( completion_tracker & tracker,
const char * name )
extern

Definition at line 1931 of file value.c.

References completion_tracker::add_completion(), internalvars, name, and internalvar::name.

Referenced by condition_completer().

◆ create_internalvar()

struct internalvar * create_internalvar ( const char * name)
extern

◆ create_internalvar_type_lazy()

struct internalvar * create_internalvar_type_lazy ( const char * name,
const struct internalvar_funcs * funcs,
void * data )
extern

◆ default_value_from_register()

struct value * default_value_from_register ( struct gdbarch * gdbarch,
struct type * type,
int regnum,
struct frame_id frame_id )
extern

◆ destructor_name_p()

int destructor_name_p ( const char * name,
struct type * type )
extern

Definition at line 3366 of file valops.c.

References name, and type_name_or_error().

Referenced by yyparse().

◆ error_value_optimized_out()

void error_value_optimized_out ( void )
extern

Definition at line 1074 of file value.c.

Referenced by address_from_register(), and value::require_not_optimized_out().

◆ evaluate_var_msym_value()

value * evaluate_var_msym_value ( enum noside noside,
struct objfile * objfile,
minimal_symbol * msymbol )
extern

◆ evaluate_var_value()

value * evaluate_var_value ( enum noside noside,
const block * blk,
symbol * var )
extern

◆ exceeds_max_value_size()

bool exceeds_max_value_size ( ULONGEST length)
extern

Definition at line 821 of file value.c.

References max_value_size.

Referenced by check_type_length_before_alloc(), printf_c_string(), and printf_wide_c_string().

◆ fetch_subexp_value()

void fetch_subexp_value ( struct expression * exp,
expr::operation * op,
struct value ** valp,
struct value ** resultp,
std::vector< value_ref_ptr > * val_chain,
bool preserve_errors )
extern

◆ finalize_values()

void finalize_values ( )
extern

Definition at line 4327 of file value.c.

References all_values.

Referenced by quit_force().

◆ find_function_in_inferior()

struct value * find_function_in_inferior ( const char * name,
struct objfile ** objf_p )
extern

◆ find_overload_match()

int find_overload_match ( gdb::array_view< value * > args,
const char * name,
enum oload_search_type method,
struct value ** objp,
struct symbol * fsym,
struct value ** valp,
struct symbol ** symp,
int * staticp,
const int no_adl,
enum noside noside )
extern

◆ get_internalvar_integer()

int get_internalvar_integer ( struct internalvar * var,
LONGEST * l )
extern

◆ internalvar_name()

const char * internalvar_name ( const struct internalvar * var)
extern

◆ is_floating_value()

bool is_floating_value ( struct value * val)
extern

◆ lookup_internalvar()

struct internalvar * lookup_internalvar ( const char * name)
extern

◆ lookup_only_internalvar()

struct internalvar * lookup_only_internalvar ( const char * name)
extern

◆ make_cv_value()

struct value * make_cv_value ( int cnst,
int voltl,
struct value * v )
extern

◆ modify_field()

void modify_field ( struct type * type,
gdb_byte * addr,
LONGEST fieldval,
LONGEST bitpos,
LONGEST bitsize )
extern

◆ pack_long()

void pack_long ( gdb_byte * buf,
struct type * type,
LONGEST num )
extern

◆ parse_and_eval()

struct value * parse_and_eval ( const char * exp,
parser_flags flags = 0 )
extern

◆ parse_and_eval_address()

CORE_ADDR parse_and_eval_address ( const char * exp)
extern

◆ parse_and_eval_long()

LONGEST parse_and_eval_long ( const char * exp)
extern

◆ parse_and_eval_type()

struct type * parse_and_eval_type ( const char * p,
int length )
extern

Definition at line 2877 of file eval.c.

References expr::unop_cast_operation::get_type(), type::length(), and parse_expression().

Referenced by safe_parse_type().

◆ parse_to_comma_and_eval()

struct value * parse_to_comma_and_eval ( const char ** expp)
extern

◆ preserve_values()

void preserve_values ( struct objfile * objfile)
extern

◆ print_address_demangle()

int print_address_demangle ( const struct value_print_options * opts,
struct gdbarch * gdbarch,
CORE_ADDR addr,
struct ui_file * stream,
int do_demangle )
extern

◆ print_floating()

void print_floating ( const gdb_byte * valaddr,
struct type * type,
struct ui_file * stream )
extern

◆ print_longest()

void print_longest ( struct ui_file * stream,
int format,
int use_local,
LONGEST val )
extern

◆ print_variable_and_value()

void print_variable_and_value ( const char * name,
struct symbol * var,
frame_info_ptr frame,
struct ui_file * stream,
int indent )
extern

◆ read_frame_register_value()

void read_frame_register_value ( struct value * value,
frame_info_ptr frame )
extern

◆ read_value_memory()

void read_value_memory ( struct value * val,
LONGEST bit_offset,
bool stack,
CORE_ADDR memaddr,
gdb_byte * buffer,
size_t length )
extern

◆ read_var_value()

struct value * read_var_value ( struct symbol * var,
const struct block * var_block,
frame_info_ptr frame )
extern

◆ readjust_indirect_value_type()

struct value * readjust_indirect_value_type ( struct value * value,
struct type * enc_type,
const struct type * original_type,
struct value * original_val,
CORE_ADDR original_value_address )
extern

◆ register_value_being_returned()

struct value * register_value_being_returned ( struct type * valtype,
struct regcache * retbuf )
extern

◆ release_value()

value_ref_ptr release_value ( struct value * val)
extern

◆ set_internalvar()

void set_internalvar ( struct internalvar * var,
struct value * val )
extern

◆ set_internalvar_component()

void set_internalvar_component ( struct internalvar * var,
LONGEST offset,
LONGEST bitpos,
LONGEST bitsize,
struct value * newvalue )
extern

◆ set_internalvar_integer()

void set_internalvar_integer ( struct internalvar * var,
LONGEST l )
extern

◆ set_internalvar_string()

void set_internalvar_string ( struct internalvar * var,
const char * string )
extern

Definition at line 2243 of file value.c.

References clear_internalvar(), INTERNALVAR_STRING, and internalvar::kind.

Referenced by set_traceframe_context().

◆ struct_return_convention()

enum return_value_convention struct_return_convention ( struct gdbarch * gdbarch,
struct value * function,
struct type * value_type )
extern

Definition at line 3801 of file value.c.

References code, type::code(), and gdbarch_return_value_as_value().

Referenced by using_struct_return().

◆ symbol_read_needs()

enum symbol_needs_kind symbol_read_needs ( struct symbol * sym)
extern

◆ symbol_read_needs_frame()

int symbol_read_needs_frame ( struct symbol * sym)
extern

◆ type_print()

void type_print ( struct type * type,
const char * varstring,
struct ui_file * stream,
int show )
extern

◆ type_to_string()

std::string type_to_string ( struct type * type)
extern

◆ typedef_print()

void typedef_print ( struct type * type,
struct symbol * news,
struct ui_file * stream )
extern

Definition at line 375 of file typeprint.c.

References current_language, and language_defn::print_typedef().

Referenced by symbol_to_info_string().

◆ unop_promote()

void unop_promote ( const struct language_defn * language,
struct gdbarch * gdbarch,
struct value ** arg1 )
extern

◆ unop_user_defined_p()

int unop_user_defined_p ( enum exp_opcode op,
struct value * arg1 )
extern

◆ unpack_bits_as_long()

LONGEST unpack_bits_as_long ( struct type * field_type,
const gdb_byte * valaddr,
LONGEST bitpos,
LONGEST bitsize )
extern

◆ unpack_field_as_long()

LONGEST unpack_field_as_long ( struct type * type,
const gdb_byte * valaddr,
int fieldno )
extern

◆ unpack_long()

LONGEST unpack_long ( struct type * type,
const gdb_byte * valaddr )
extern

◆ unpack_pointer()

CORE_ADDR unpack_pointer ( struct type * type,
const gdb_byte * valaddr )
extern

◆ unpack_value_field_as_long()

int unpack_value_field_as_long ( struct type * type,
const gdb_byte * valaddr,
LONGEST embedded_offset,
int fieldno,
const struct value * val,
LONGEST * result )
extern

◆ using_struct_return()

int using_struct_return ( struct gdbarch * gdbarch,
struct value * function,
struct type * value_type )
extern

◆ val_print_string()

int val_print_string ( struct type * elttype,
const char * encoding,
CORE_ADDR addr,
int len,
struct ui_file * stream,
const struct value_print_options * options )
extern

◆ value_actual_type()

struct type * value_actual_type ( struct value * value,
int resolve_simple_types,
int * real_type_found )
extern

◆ value_addr()

struct value * value_addr ( struct value * arg1)
extern

◆ value_aggregate_elt()

struct value * value_aggregate_elt ( struct type * curtype,
const char * name,
struct type * expect_type,
int want_address,
enum noside noside )
extern

◆ value_allocate_space_in_inferior()

struct value * value_allocate_space_in_inferior ( int len)
extern

◆ value_array()

struct value * value_array ( int lowbound,
gdb::array_view< struct value * > elemvec )
extern

◆ value_as_address()

CORE_ADDR value_as_address ( struct value * val)
extern

Definition at line 2636 of file value.c.

References value::address, type::arch(), type::code(), coerce_array(), value::contents(), gdbarch_addr_bits_remove(), gdbarch_integer_to_address(), gdbarch_integer_to_address_p(), type::is_pointer_or_reference(), value::type(), unpack_pointer(), and value_as_long().

Referenced by aarch64_linux_get_memtag(), aarch64_linux_memtag_matches_p(), aarch64_linux_memtag_to_string(), aarch64_linux_set_memtags(), aarch64_linux_tagged_address_p(), ada_tag_name_from_tsd(), ada_value_slice_from_ptr(), ada_varobj_adjust_for_child_access(), ada_varobj_get_ptr_number_of_children(), ada_varobj_ind(), frame_command_helper< FPTR >::address(), address_from_register(), arm_m_exception_prev_register(), c_get_string(), c_value_print(), disassemble_command(), do_one_display(), dump_arc_instruction_command(), dwarf2_evaluate_property(), dwarf2_locexpr_baton_eval(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolver_return_stop(), eval_op_ind(), eval_op_memval(), eval_op_objc_msgcall(), expr::ada_unop_ind_operation::evaluate(), execute_stack_op(), dwarf_expr_context::fetch_result(), find_function_addr(), fortran_associated(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), get_addr_from_python(), gnuv2_value_rtti_type(), gnuv3_get_typename_from_type_info(), gnuv3_get_virtual_fn(), gnuv3_get_vtable(), gnuv3_print_vtable(), gnuv3_rtti_type(), hppa_linux_find_global_pointer(), hppabsd_find_global_pointer(), i386_mpx_set_bounds(), info_mach_region_command(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), call_site_target::iterate_over_addresses(), linespec_expression_to_pc(), linux_infcall_mmap(), memory_tag_check_command(), memory_tag_print_tag_command(), parse_and_eval_address(), parse_find_args(), parse_frame_specification(), parse_set_allocation_tag_input(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_get_return_buf_addr(), print_one_vtable(), printf_c_string(), printf_wide_c_string(), process_event_stop_test(), ptid_from_atcb_common(), read_atcb(), read_known_tasks_list(), language_defn::read_var_value(), rust_get_trait_object_pointer(), rust_slice_to_array(), rust_val_print_slice(), svr4_handle_solib_event(), valpy_lazy_string(), value_equal(), value_ind(), value_less(), rust_language::value_print_inner(), value_ptradd(), frame_command_helper< FPTR >::view(), watch_command_1(), and x_command().

◆ value_as_long()

LONGEST value_as_long ( struct value * val)
extern

Definition at line 2554 of file value.c.

References coerce_array(), value::contents(), value::type(), and unpack_long().

Referenced by ada_array_bound(), ada_array_length(), ada_atr_enum_val(), ada_get_tcb_types_info(), ada_tag_value_at_base_address(), ada_ternop_slice(), ada_type_of_array(), ada_val_atr(), ada_which_variant_applies(), dwarf_expr_context::add_piece(), allocate_space_in_inferior(), arm_m_exception_prev_register(), expr::ada_discrete_range_association::assign(), expr::ada_name_association::assign(), call_target_sbrk(), ppc_linux_nat_target::check_condition(), checkpoint_command(), complex_binop(), desc_bounds(), expr::repeat_operation::do_generate_ax(), dwarf2_evaluate_property(), ensure_lval(), eval_binop_assign_modify(), eval_multi_subscript(), eval_op_add(), eval_op_f_abs(), eval_op_f_mod(), eval_op_f_modulo(), eval_op_m2_subscript(), eval_op_member(), eval_op_objc_msgcall(), eval_op_repeat(), eval_op_rust_array(), eval_op_sub(), eval_op_subscript(), expr::ada_binop_addsub_operation::evaluate(), expr::objc_msgcall_operation::evaluate(), expr::ternop_slice_operation::evaluate(), expr::array_operation::evaluate(), expr::rust_aggregate_operation::evaluate(), expr::structop_member_base::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), dwarf_expr_context::execute_stack_op(), dwarf_expr_context::fetch_result(), find_func_descr(), find_function_addr(), fortran_argument_convert(), fortran_array_size(), fortran_bounds_for_dimension(), fortran_wrap2_kind(), fortran_wrap3_kind(), gdbscm_value_subscript(), gdbscm_value_to_bool(), gdbscm_value_to_integer(), gdbscm_value_to_real(), expr::operation::generate_ax(), get_baseclass_offset(), ravenscar_thread_target::get_fpu_state(), get_int_var_value(), get_internalvar_integer(), get_number_trailer(), get_ulongest(), gnuv2_virtual_fn_field(), gnuv3_baseclass_offset(), gnuv3_rtti_type(), ignore_command(), inferior_call_waitpid(), info_port_rights(), info_task(), frame_command_helper< FPTR >::level(), linespec_parse_variable(), linux_infcall_munmap(), lookup_child_selector(), lookup_objc_class(), m68hc11_frame_prev_register(), maintenance_print_frame_id(), maintenance_print_record_instruction(), mep_frame_prev_register(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), msp430_prev_register(), parse_and_eval_long(), parse_find_args(), parse_frame_specification(), pos_atr(), print_ada_task_info(), print_object_command(), printf_pointer(), ptid_from_atcb_common(), quit_command(), rank_one_type_parm_ptr(), read_atcb(), read_fat_string_value(), riscv_print_one_register_info(), rl78_prev_register(), rust_compute_range(), rust_range(), rust_slice_to_array(), rust_subscript(), rust_val_print_slice(), s12z_print_ccw_info(), s390_unwind_pseudo_register(), scalar_binop(), scan_discrim_bound(), set_internalvar_component(), svr4_handle_solib_event(), task_command_1(), trace_variable_command(), ui_printf(), valpy_binop_throw(), valpy_float(), valpy_getitem(), valpy_long(), valpy_nonzero(), value_args_as_target_float(), value_as_address(), value_as_mpz(), value_assign(), value_cast(), value_dynamic_cast(), value_equal(), value_less(), f_language::value_print_inner(), value_ptrdiff(), value_struct_elt_for_reference(), expr::fortran_undetermined::value_subarray(), vlscm_binop_gdbthrow(), and wrap_ternop_intrinsic().

◆ value_as_mpz()

gdb_mpz value_as_mpz ( struct value * val)
extern

◆ value_assign()

struct value * value_assign ( struct value * toval,
struct value * fromval )
extern

Definition at line 1085 of file valops.c.

References value::address, type::arch(), value::bitpos(), value::bitsize(), check_typedef(), type::code(), coerce_array(), coerce_ref(), value::computed_funcs(), value::contents(), value::contents_raw(), value::copy(), current_inferior(), value::deprecated_modifiable(), deprecated_safe_get_selected_frame(), value::enclosing_type(), frame_find_by_id(), gdbarch_convert_register_p(), gdbarch_value_to_register(), get_frame_arch(), get_frame_id(), get_frame_register_bytes(), get_prev_frame_always(), type::is_unsigned(), type::length(), value::lval(), lval_computed, lval_internalvar, lval_internalvar_component, lval_memory, lval_register, modify_field(), value::offset(), value::parent(), value::pointed_to_offset(), put_frame_register_bytes(), read_memory(), gdb::observers::register_changed, select_frame(), value::set_enclosing_type(), set_internalvar(), set_internalvar_component(), value::set_lazy(), value::set_pointed_to_offset(), gdb::observers::target_changed, type, value::type(), type_length_units(), value_as_long(), value_cast(), value_from_longest(), VALUE_INTERNALVAR, value_must_coerce_to_target(), VALUE_NEXT_FRAME_ID, value_of_internalvar(), VALUE_REGNUM, lval_funcs::write, and write_memory_with_notification().

Referenced by ada_value_assign(), eval_binop_assign_modify(), eval_op_postdec(), eval_op_postinc(), eval_op_predec(), eval_op_preinc(), eval_opencl_assign(), expr::rust_aggregate_operation::evaluate(), lval_func_write(), rust_range(), rust_subscript(), valpy_assign(), and varobj_set_value().

◆ value_at()

struct value * value_at ( struct type * type,
CORE_ADDR addr )
extern

◆ value_at_lazy()

struct value * value_at_lazy ( struct type * type,
CORE_ADDR addr,
frame_info_ptr frame = nullptr )
extern

◆ value_at_non_lval()

struct value * value_at_non_lval ( struct type * type,
CORE_ADDR addr )
extern

◆ value_binop()

struct value * value_binop ( struct value * arg1,
struct value * arg2,
enum exp_opcode op )
extern

◆ value_bit_index()

int value_bit_index ( struct type * type,
const gdb_byte * addr,
int index )
extern

◆ value_bitstring_subscript()

struct value * value_bitstring_subscript ( struct type * type,
struct value * bitstring,
LONGEST index )
extern

◆ value_cast()

struct value * value_cast ( struct type * type,
struct value * arg2 )
extern

Definition at line 403 of file valops.c.

References value::address, value::allocate(), type::arch(), gdb_mpq::as_double(), type::bounds(), language_defn::c_style_arrays_p(), cast_into_complex(), check_typedef(), type::code(), coerce_ref(), value::contents(), value::contents_raw(), value::contents_writeable(), value::copy(), cplus_make_method_ptr(), create_array_type(), create_static_range_type(), current_language, value::deprecated_set_type(), extract_unsigned_integer(), type::fixed_point_scaling_factor(), gdbarch_addr_bit(), get_discrete_bounds(), range_bounds::high, type::index_type(), is_fixed_point_type(), is_floating_type(), is_floating_value(), type::is_unsigned(), type::is_vector(), dynamic_prop::kind(), language_defn::la_language, language_ada, type::length(), value::lval(), lval_memory, type::name(), not_lval, PROP_UNDEFINED, gdb_mpq::read_fixed_point(), value::set_enclosing_type(), value::set_pointed_to_offset(), target_float_convert(), target_float_from_host_double(), type::target_type(), type, value::type(), type_byte_order(), TYPE_IS_REFERENCE, types_deeply_equal(), value_as_long(), value_as_mpz(), value_at_lazy(), value_cast(), value_cast_pointers(), value_cast_structs(), value_cast_to_fixed_point(), value_coerce_array(), value_coerce_function(), value_from_longest(), value_from_mpz(), value_from_ulongest(), value_ref(), and value::zero().

Referenced by aarch64_push_dummy_call(), ada_atr_enum_rep(), ada_coerce_to_simple_array_ptr(), ada_get_tsd_from_tag(), ada_promote_array_of_integrals(), ada_tag_value_at_base_address(), ada_value_assign(), ada_value_cast(), ada_value_print_num(), ada_value_ptr_subscript(), ada_value_slice(), adjust_value_for_child_access(), alpha_push_dummy_call(), binop_promote(), BP_MANIPULATION(), c_value_print(), complex_binop(), compute_exception(), cplus_describe_child(), desc_bounds(), python_xmethod_worker::do_get_result_type(), eval_op_f_cmplx(), eval_op_m2_high(), eval_op_m2_subscript(), eval_op_structop_ptr(), expr::ada_binop_addsub_operation::evaluate(), expr::ada_bitwise_operation< OP >::evaluate(), expr::ada_unop_ind_operation::evaluate(), expr::array_operation::evaluate(), expr::unop_memval_operation::evaluate_for_address(), expr::unop_memval_type_operation::evaluate_for_address(), expr::operation::evaluate_for_cast(), expr::var_value_operation::evaluate_for_cast(), expr::var_msym_value_operation::evaluate_for_cast(), expr::structop_member_base::evaluate_funcall(), expr::array_operation::evaluate_struct_tuple(), expr::var_value_operation::evaluate_with_coercion(), dwarf_expr_context::execute_stack_op(), fixed_point_binop(), generic_value_print(), gnuv2_value_rtti_type(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_get_virtual_fn(), gnuv3_method_ptr_to_value(), gnuv3_virtual_fn_field(), hppa64_push_dummy_call(), python_xmethod_worker::invoke(), memory_tag_with_logical_tag_command(), opencl_value_cast(), printf_floating(), riscv_push_dummy_call(), riscv_return_value(), rust_get_trait_object_pointer(), s390_unwind_pseudo_register(), sparc64_store_arguments(), thin_data_pntr(), unop_promote(), valpy_do_cast(), valpy_getitem(), valpy_long(), value_arg_coerce(), value_assign(), value_assign_to_component(), value_cast(), value_dynamic_cast(), value_fn_field(), value_literal_complex(), m2_language::value_print_inner(), value_reinterpret_cast(), value_vector_widen(), varobj_create(), vlscm_do_cast(), and xtensa_push_dummy_call().

◆ value_cast_pointers()

struct value * value_cast_pointers ( struct type * type,
struct value * arg2,
int subclass_check )
extern

◆ value_coerce_array()

struct value * value_coerce_array ( struct value * arg1)
extern

◆ value_coerce_function()

struct value * value_coerce_function ( struct value * arg1)
extern

◆ value_coerce_to_target()

struct value * value_coerce_to_target ( struct value * arg1)
extern

◆ value_complement()

struct value * value_complement ( struct value * arg1)
extern

◆ value_concat()

struct value * value_concat ( struct value * arg1,
struct value * arg2 )
extern

◆ value_cstring() [1/2]

struct value * value_cstring ( const char * ptr,
ssize_t count,
struct type * char_type )
inline

Definition at line 1199 of file value.h.

References type::length(), and value_cstring().

◆ value_cstring() [2/2]

struct value * value_cstring ( const gdb_byte * ptr,
ssize_t count,
struct type * char_type )
extern

◆ value_dynamic_cast()

struct value * value_dynamic_cast ( struct type * type,
struct value * arg )
extern

◆ value_equal()

int value_equal ( struct value * arg1,
struct value * arg2 )
extern

◆ value_equal_contents()

int value_equal_contents ( struct value * arg1,
struct value * arg2 )
extern

Definition at line 1630 of file valarith.c.

References check_typedef(), type::code(), value::contents(), type::length(), and value::type().

Referenced by watchpoint_check().

◆ value_field()

struct value * value_field ( struct value * arg1,
int fieldno )
extern

◆ value_field_bitfield()

struct value * value_field_bitfield ( struct type * type,
int fieldno,
const gdb_byte * valaddr,
LONGEST embedded_offset,
const struct value * val )
extern

◆ value_fn_field()

struct value * value_fn_field ( struct value ** arg1p,
struct fn_field * f,
int j,
struct type * type,
LONGEST offset )
extern

◆ value_free_to_mark()

void value_free_to_mark ( const struct value * mark)
extern

Definition at line 1437 of file value.c.

References all_values.

Referenced by scoped_value_mark::free_to_mark(), watch_command_1(), and watchpoint_check().

◆ value_from_component()

struct value * value_from_component ( struct value * whole,
struct type * type,
LONGEST offset )
extern

◆ value_from_contents()

struct value * value_from_contents ( struct type * type,
const gdb_byte * contents )
extern

◆ value_from_contents_and_address()

struct value * value_from_contents_and_address ( struct type * type,
const gdb_byte * valaddr,
CORE_ADDR address,
frame_info_ptr frame = nullptr )
extern

◆ value_from_contents_and_address_unresolved()

struct value * value_from_contents_and_address_unresolved ( struct type * type,
const gdb_byte * valaddr,
CORE_ADDR address )
extern

◆ value_from_history_ref()

struct value * value_from_history_ref ( const char * h,
const char ** endp )
extern

Definition at line 3595 of file value.c.

References access_value_history().

Referenced by get_number_trailer(), and get_ulongest().

◆ value_from_host_double()

struct value * value_from_host_double ( struct type * type,
double d )
extern

◆ value_from_longest()

struct value * value_from_longest ( struct type * type,
LONGEST num )
extern

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().

◆ value_from_mpz()

struct value * value_from_mpz ( struct type * type,
const gdb_mpz & v )
extern

◆ value_from_pointer()

struct value * value_from_pointer ( struct type * type,
CORE_ADDR addr )
extern

◆ value_from_register()

struct value * value_from_register ( struct type * type,
int regnum,
frame_info_ptr frame )
extern

◆ value_from_ulongest()

struct value * value_from_ulongest ( struct type * type,
ULONGEST num )
extern

◆ value_full_object()

struct value * value_full_object ( struct value * argp,
struct type * rtype,
int xfull,
int xtop,
int xusing_enc )
extern

◆ value_history_count()

ULONGEST value_history_count ( )
extern

Definition at line 1736 of file value.c.

References value_history.

Referenced by gdbpy_history_count().

◆ value_imaginary_part()

struct value * value_imaginary_part ( struct value * value)
extern

◆ value_ind()

struct value * value_ind ( struct value * arg1)
extern

Definition at line 1630 of file valops.c.

References check_typedef(), code, type::code(), coerce_array(), value::computed_funcs(), value::enclosing_type(), find_function_addr(), value::funcs, lval_funcs::indirect, value::lval(), lval_computed, value::pointed_to_offset(), readjust_indirect_value_type(), type::target_type(), value::type(), value_as_address(), and value_at_lazy().

Referenced by ada_array_bound(), ada_array_length(), ada_coerce_to_simple_array(), ada_get_tsd_from_tag(), ada_tag_value_at_base_address(), ada_ternop_slice(), ada_value_ind(), ada_value_ptr_subscript(), ada_value_struct_elt(), adjust_value_for_child_access(), c_describe_child(), c_value_print(), compute_exception(), decode_constrained_packed_array(), do_module_cleanup(), eval_op_ind(), eval_op_m2_subscript(), eval_op_member(), expr::fortran_undetermined::evaluate(), expr::rust_unop_ind_operation::evaluate(), expr::unop_ind_base_operation::evaluate_for_sizeof(), expr::structop_member_base::evaluate_funcall(), expr::rust_structop::evaluate_funcall(), find_overload_match(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), ravenscar_thread_target::get_fpu_state(), gnuv2_virtual_fn_field(), gnuv3_get_typeid(), gnuv3_method_ptr_to_value(), gnuv3_print_vtable(), info_mach_region_command(), read_fat_string_value(), valpy_dereference(), valpy_get_dynamic_type(), valpy_referenced_value(), value_cast_pointers(), value_dynamic_cast(), value_find_oload_method_list(), value_fn_field(), value_reinterpret_cast(), value_rtti_indirect_type(), value_struct_elt(), value_struct_elt_bitpos(), value_struct_elt_for_reference(), value_subscript(), and value_user_defined_cpp_op().

◆ value_internal_function_name()

const char * value_internal_function_name ( struct value * val)

◆ value_less()

int value_less ( struct value * arg1,
struct value * arg2 )
extern

◆ value_literal_complex()

struct value * value_literal_complex ( struct value * arg1,
struct value * arg2,
struct type * type )
extern

◆ value_logical_not()

bool value_logical_not ( struct value * arg1)
extern

◆ value_mark()

struct value * value_mark ( void )
extern

Definition at line 1414 of file value.c.

References all_values.

Referenced by fetch_subexp_value(), watch_command_1(), and watchpoint_check().

◆ value_must_coerce_to_target()

bool value_must_coerce_to_target ( struct value * arg1)
extern

◆ value_neg()

struct value * value_neg ( struct value * arg1)
extern

◆ value_of_internalvar()

struct value * value_of_internalvar ( struct gdbarch * gdbarch,
struct internalvar * var )
extern

◆ value_of_register()

struct value * value_of_register ( int regnum,
frame_info_ptr frame )
extern

◆ value_of_register_lazy()

struct value * value_of_register_lazy ( frame_info_ptr frame,
int regnum )

◆ value_of_this()

struct value * value_of_this ( const struct language_defn * lang)
extern

◆ value_of_this_silent()

struct value * value_of_this_silent ( const struct language_defn * lang)
extern

Definition at line 4010 of file valops.c.

References value_of_this().

Referenced by value_struct_elt_for_reference(), and yyparse().

◆ value_of_variable()

struct value * value_of_variable ( struct symbol * var,
const struct block * b )
extern

◆ value_one()

struct value * value_one ( struct type * type)
extern

◆ value_pos()

struct value * value_pos ( struct value * arg1)
extern

◆ value_print()

void value_print ( struct value * val,
struct ui_file * stream,
const struct value_print_options * options )
extern

◆ value_ptradd()

struct value * value_ptradd ( struct value * arg1,
LONGEST arg2 )
extern

◆ value_ptrdiff()

LONGEST value_ptrdiff ( struct value * arg1,
struct value * arg2 )
extern

◆ value_real_part()

struct value * value_real_part ( struct value * value)
extern

◆ value_ref()

struct value * value_ref ( struct value * arg1,
enum type_code refcode )
extern

◆ value_reinterpret_cast()

struct value * value_reinterpret_cast ( struct type * type,
struct value * arg )
extern

◆ value_release_to_mark()

std::vector< value_ref_ptr > value_release_to_mark ( const struct value * mark)
extern

Definition at line 1475 of file value.c.

References all_values.

Referenced by fetch_subexp_value().

◆ value_repeat()

struct value * value_repeat ( struct value * arg1,
int count )
extern

◆ value_rtti_indirect_type()

struct type * value_rtti_indirect_type ( struct value * v,
int * full,
LONGEST * top,
int * using_enc )
extern

◆ value_slice()

struct value * value_slice ( struct value * array,
int lowbound,
int length )
extern

◆ value_static_field()

struct value * value_static_field ( struct type * type,
int fieldno )
extern

◆ value_string() [1/2]

struct value * value_string ( const char * ptr,
ssize_t count,
struct type * char_type )
inline

Definition at line 1221 of file value.h.

References type::length(), and value_string().

◆ value_string() [2/2]

struct value * value_string ( const gdb_byte * ptr,
ssize_t count,
struct type * char_type )
extern

◆ value_struct_elt()

struct value * value_struct_elt ( struct value ** argp,
gdb::optional< gdb::array_view< value * > > args,
const char * name,
int * static_memfuncp,
const char * err )
extern

◆ value_struct_elt_bitpos()

struct value * value_struct_elt_bitpos ( struct value ** argp,
int bitpos,
struct type * field_type,
const char * err )
extern

◆ value_subscript()

struct value * value_subscript ( struct value * array,
LONGEST index )
extern

◆ value_to_array()

struct value * value_to_array ( struct value * val)
extern

◆ value_to_gdb_mpq()

gdb_mpq value_to_gdb_mpq ( struct value * value)
extern

◆ value_true()

static bool value_true ( struct value * val)
inlinestatic

◆ value_vector_widen()

struct value * value_vector_widen ( struct value * scalar_value,
struct type * vector_type )

◆ value_x_binop()

struct value * value_x_binop ( struct value * arg1,
struct value * arg2,
enum exp_opcode op,
enum exp_opcode otherop,
enum noside noside )
extern

◆ value_x_unop()

struct value * value_x_unop ( struct value * arg1,
enum exp_opcode op,
enum noside noside )
extern

◆ varying_to_slice()

struct value * varying_to_slice ( struct value * )
extern

Variable Documentation

◆ overload_resolution

bool overload_resolution
extern