20 #if !defined (VALUE_H)
201 int resolve_simple_types,
202 int *real_type_found);
253 void *(*copy_closure) (
const struct value *v);
283 const struct value *val);
376 int bit_offset,
int bit_length);
403 const struct value *whole);
411 #define VALUE_LVAL(val) (*deprecated_value_lval_hack (val))
431 #define VALUE_INTERNALVAR(val) (*deprecated_value_internalvar_hack (val))
436 #define VALUE_FRAME_ID(val) (*deprecated_value_frame_id_hack (val))
440 #define VALUE_REGNUM(val) (*deprecated_value_regnum_hack (val))
456 struct type *enc_type,
457 struct type *original_type,
458 struct value *original_val);
567 const struct value *val2,
int offset2,
585 struct type *vector_type);
613 int embedded_offset,
int fieldno,
617 int bitpos,
int bitsize,
618 const gdb_byte *valaddr,
int embedded_offset,
619 const struct value *val);
624 const struct value *val);
661 const struct block *b);
664 const struct block *b);
681 struct value *src,
int src_offset,
684 struct value *src,
int src_offset,
694 struct type *char_type);
696 struct type *char_type);
699 struct value **elemvec);
725 struct value *fromval);
735 const char *
name,
int *static_memfuncp,
740 struct type *field_type,
745 struct type *expect_type,
758 int *staticp,
const int no_adl,
765 struct type *arg_type);
792 struct value *bitstring,
808 struct value *
function,
824 struct value **val_chain,
825 int preserve_errors);
843 struct gdbarch *gdbarch,
844 struct value **arg1);
847 struct gdbarch *gdbarch,
869 struct value *newvalue);
886 struct value *(*make_value) (
struct gdbarch *arch,
979 struct ui_file *stream,
int show);
985 struct value **valuep,
int *errp);
1000 struct ui_file *stream,
int format,
1007 struct ui_file *stream,
int recurse,
1008 const struct value *val,
1013 struct ui_file *stream,
int recurse,
1062 LONGEST index,
int lowerbound);
1066 typedef struct value *(*internal_function_fn) (
struct gdbarch *gdbarch,
1070 struct value **argv);
1078 struct value *
function,
1079 int argc,
struct value **argv);
1086 int argc,
struct value **argv);
1089 int argc,
struct value **argv);
struct value * evaluate_expression(struct expression *exp)
struct value * value_subscripted_rvalue(struct value *array, LONGEST index, int lowerbound)
char * type_to_string(struct type *type)
struct value * value_bitstring_subscript(struct type *type, struct value *bitstring, LONGEST index)
void value_incref(struct value *val)
void print_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
void(* read)(struct value *v)
struct value * default_value_from_register(struct gdbarch *gdbarch, struct type *type, int regnum, struct frame_id frame_id)
int value_equal(struct value *arg1, struct value *arg2)
struct type * parse_and_eval_type(char *p, int length)
void set_value_enclosing_type(struct value *val, struct type *new_type)
struct value * value_x_unop(struct value *arg1, enum exp_opcode op, enum noside noside)
struct value * make_cv_value(int, int, struct value *)
struct value * evaluate_subexp_with_coercion(struct expression *, int *, enum noside)
struct value * value_from_ulongest(struct type *type, ULONGEST num)
const gdb_byte * value_contents_all(struct value *)
struct value * readjust_indirect_value_type(struct value *value, struct type *enc_type, struct type *original_type, struct value *original_val)
DOUBLEST unpack_double(struct type *type, const gdb_byte *valaddr, int *invp)
struct value * value_binop(struct value *arg1, struct value *arg2, enum exp_opcode op)
void value_force_lval(struct value *, CORE_ADDR)
struct value * value_from_longest(struct type *type, LONGEST num)
struct value * allocate_value_lazy(struct type *type)
int value_pointed_to_offset(struct value *value)
void set_value_address(struct value *, CORE_ADDR)
int unop_user_defined_p(enum exp_opcode op, struct value *arg1)
int value_bitsize(const struct value *)
LONGEST value_as_long(struct value *val)
int unpack_value_field_as_long(struct type *type, const gdb_byte *valaddr, int embedded_offset, int fieldno, const struct value *val, LONGEST *result)
struct type * value_actual_type(struct value *value, int resolve_simple_types, int *real_type_found)
DOUBLEST value_as_double(struct value *val)
int value_bytes_available(const struct value *value, int offset, int length)
struct value * value_primitive_field(struct value *arg1, int offset, int fieldno, struct type *arg_type)
CORE_ADDR address_from_register(int regnum, struct frame_info *frame)
void deprecated_set_value_type(struct value *value, struct type *type)
void add_internal_function(const char *name, const char *doc, internal_function_fn handler, void *cookie)
struct value * value_complement(struct value *arg1)
struct value * read_var_value(struct symbol *var, struct frame_info *frame)
struct value * value_cast_pointers(struct type *, struct value *, int)
int value_bits_available(const struct value *value, int offset, int length)
struct value * value_zero(struct type *type, enum lval_type lv)
void set_value_bitsize(struct value *, int bit)
void binop_promote(const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1, struct value **arg2)
char * extract_field_op(struct expression *exp, int *subexp)
int value_entirely_optimized_out(struct value *value)
struct value * value_repeat(struct value *arg1, int count)
struct value * value_copy(struct value *)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
void type_print(struct type *type, const char *varstring, struct ui_file *stream, int show)
struct value * allocate_repeat_value(struct type *type, int count)
void value_contents_copy_raw(struct value *dst, int dst_offset, struct value *src, int src_offset, int length)
struct type * value_type(const struct value *)
struct value * value_from_pointer(struct type *type, CORE_ADDR addr)
struct value * value_dynamic_cast(struct type *type, struct value *arg)
struct value * value_struct_elt(struct value **argp, struct value **args, const char *name, int *static_memfuncp, const char *err)
struct value *(* internal_function_fn)(struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
int value_contents_eq(const struct value *val1, int offset1, const struct value *val2, int offset2, int length)
int value_less(struct value *arg1, struct value *arg2)
int value_in(struct value *element, struct value *set)
int value_offset(const struct value *)
struct value * value_static_field(struct type *type, int fieldno)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr)
int value_equal_contents(struct value *arg1, struct value *arg2)
int compile_internalvar_to_ax(struct internalvar *var, struct agent_expr *expr, struct axs_value *value)
struct value * value_from_history_ref(const char *, const char **)
struct internalvar * lookup_internalvar(const char *name)
void val_print(struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, const struct language_defn *language)
struct value * value_subscript(struct value *array, LONGEST index)
struct value * value_reinterpret_cast(struct type *type, struct value *arg)
struct value * evaluate_type(struct expression *exp)
static struct type * new_type(char *)
void set_value_bitpos(struct value *, int bit)
struct value * value_array(int lowbound, int highbound, struct value **elemvec)
void(* compile_to_ax)(struct internalvar *var, struct agent_expr *expr, struct axs_value *value, void *data)
int value_bits_any_optimized_out(const struct value *value, int bit_offset, int bit_length)
void unpack_value_bitfield(struct value *dest_val, int bitpos, int bitsize, const gdb_byte *valaddr, int embedded_offset, const struct value *val)
void value_contents_copy(struct value *dst, int dst_offset, struct value *src, int src_offset, int length)
struct type * result_type_of_xmethod(struct value *method, int argc, struct value **argv)
struct value * value_struct_elt_bitpos(struct value **argp, int bitpos, struct type *field_type, const char *err)
int value_initialized(struct value *)
void value_free(struct value *val)
int find_overload_match(struct value **args, int nargs, const char *name, enum oload_search_type method, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl, enum noside noside)
struct value * value_string(char *ptr, ssize_t len, struct type *char_type)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
struct value * value_of_this(const struct language_defn *lang)
struct value * coerce_ref_if_computed(const struct value *arg)
struct value * parse_and_eval(const char *exp)
struct value * find_function_in_inferior(const char *, struct objfile **)
enum lval_type * deprecated_value_lval_hack(struct value *)
struct value * call_xmethod(struct value *method, int argc, struct value **argv)
struct value * value_ptradd(struct value *arg1, LONGEST arg2)
int value_embedded_offset(struct value *value)
int value_logical_not(struct value *arg1)
struct value * value_of_xmethod(struct xmethod_worker *)
struct value * allocate_value(struct type *type)
mach_port_t mach_port_t name mach_port_t mach_port_t name error_t err
void set_internalvar(struct internalvar *var, struct value *val)
struct value * value_allocate_space_in_inferior(int)
short * deprecated_value_regnum_hack(struct value *)
void release_value_or_incref(struct value *val)
LONGEST unpack_field_as_long(struct type *type, const gdb_byte *valaddr, int fieldno)
struct value * value_non_lval(struct value *)
void(* write)(struct value *toval, struct value *fromval)
int value_lazy(struct value *)
struct type * value_enclosing_type(struct value *)
struct value * value_parent(struct value *)
int binop_user_defined_p(enum exp_opcode op, struct value *arg1, struct value *arg2)
struct value * value_of_internalvar(struct gdbarch *gdbarch, struct internalvar *var)
struct value * address_of_variable(struct symbol *var, const struct block *b)
char * internalvar_name(struct internalvar *var)
void print_variable_and_value(const char *name, struct symbol *var, struct frame_info *frame, struct ui_file *stream, int indent)
struct value * parse_to_comma_and_eval(const char **expp)
const gdb_byte * value_contents_for_printing(struct value *value)
struct value * value_assign(struct value *toval, struct value *fromval)
void value_print_array_elements(struct value *val, struct ui_file *stream, int format, enum val_prettyformat pretty)
void mark_value_bits_unavailable(struct value *value, int offset, int length)
CORE_ADDR parse_and_eval_address(const char *exp)
struct value * register_value_being_returned(struct type *valtype, struct regcache *retbuf)
struct value * value_coerce_to_target(struct value *arg1)
void mark_value_bits_optimized_out(struct value *value, int offset, int length)
struct value * value_from_decfloat(struct type *type, const gdb_byte *decbytes)
void set_internalvar_integer(struct internalvar *var, LONGEST l)
struct value * default_read_var_value(struct symbol *var, struct frame_info *frame)
struct value * evaluate_subexpression_type(struct expression *exp, int subexp)
void pack_long(gdb_byte *buf, struct type *type, LONGEST num)
int value_must_coerce_to_target(struct value *arg1)
void set_internalvar_component(struct internalvar *var, int offset, int bitpos, int bitsize, struct value *newvalue)
void free_all_values(void)
struct value * value_release_to_mark(struct value *mark)
struct value * allocate_computed_value(struct type *type, const struct lval_funcs *funcs, void *closure)
struct value * value_aggregate_elt(struct type *curtype, const char *name, struct type *expect_type, int want_address, enum noside noside)
const struct lval_funcs * value_computed_funcs(const struct value *)
struct internalvar * lookup_only_internalvar(const char *name)
struct value * value_of_register(int regnum, struct frame_info *frame)
void mark_value_bytes_optimized_out(struct value *value, int offset, int length)
void print_decimal_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
const gdb_byte * value_contents_for_printing_const(const struct value *value)
const gdb_byte * value_contents(struct value *)
struct value * value_next(struct value *)
struct value * value_full_object(struct value *, struct type *, int, int, int)
struct value * value_field(struct value *arg1, int fieldno)
struct value * value_cast(struct type *type, struct value *arg2)
struct internalvar * create_internalvar(const char *name)
int(* check_synthetic_pointer)(const struct value *value, int offset, int length)
struct value * value_from_contents_and_address_unresolved(struct type *, const gdb_byte *, CORE_ADDR)
int valprint_check_validity(struct ui_file *stream, struct type *type, int embedded_offset, const struct value *val)
void mark_value_bytes_unavailable(struct value *value, int offset, int length)
void value_fetch_lazy(struct value *val)
void read_value_memory(struct value *val, int embedded_offset, int stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length)
struct value * evaluate_subexp(struct type *expect_type, struct expression *exp, int *pos, enum noside noside)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
struct value * value_vector_widen(struct value *scalar_value, struct type *vector_type)
void value_free_to_mark(struct value *mark)
void read_frame_register_value(struct value *value, struct frame_info *frame)
const char const char int
void modify_field(struct type *type, gdb_byte *addr, LONGEST fieldval, int bitpos, int bitsize)
void set_value_stack(struct value *value, int val)
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)
struct value * value_at(struct type *type, CORE_ADDR addr)
int using_struct_return(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
struct value * value_coerce_array(struct value *arg1)
void set_value_parent(struct value *value, struct value *parent)
struct value * value_coerce_function(struct value *arg1)
void set_value_offset(struct value *, int offset)
int value_entirely_unavailable(struct value *value)
struct value * coerce_array(struct value *value)
int value_entirely_available(struct value *value)
gdb_byte * value_contents_all_raw(struct value *)
struct value * coerce_ref(struct value *value)
struct value * value_one(struct type *type)
void set_value_initialized(struct value *, int)
int print_address_demangle(const struct value_print_options *, struct gdbarch *, CORE_ADDR, struct ui_file *, int)
void set_value_pointed_to_offset(struct value *value, int val)
void fetch_subexp_value(struct expression *exp, int *pc, struct value **valp, struct value **resultp, struct value **val_chain, int preserve_errors)
struct frame_id * deprecated_value_frame_id_hack(struct value *)
CORE_ADDR value_raw_address(struct value *)
gdb_byte * baseclass_addr(struct type *type, int index, gdb_byte *valaddr, struct value **valuep, int *errp)
struct value * call_internal_function(struct gdbarch *gdbarch, const struct language_defn *language, struct value *function, int argc, struct value **argv)
void set_internalvar_string(struct internalvar *var, const char *string)
struct value * value_from_contents(struct type *, const gdb_byte *)
struct value * value_fn_field(struct value **arg1p, struct fn_field *f, int j, struct type *type, int offset)
void release_value(struct value *val)
struct value * value_of_this_silent(const struct language_defn *lang)
struct value * value_x_binop(struct value *arg1, struct value *arg2, enum exp_opcode op, enum exp_opcode otherop, enum noside noside)
int deprecated_value_modifiable(struct value *value)
struct value * value_of_variable(struct symbol *var, const struct block *b)
char * value_internal_function_name(struct value *)
void set_value_lazy(struct value *value, int val)
CORE_ADDR value_as_address(struct value *val)
const struct lval_funcs * funcs
struct value * value_addr(struct value *arg1)
int value_optimized_out(struct value *value)
void(* destroy)(void *data)
LONGEST value_ptrdiff(struct value *arg1, struct value *arg2)
unsigned long long ULONGEST
void clear_internalvar(struct internalvar *var)
struct value * value_pos(struct value *arg1)
int value_bitpos(const struct value *)
struct value * value_slice(struct value *, int, int)
void value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
void set_value_component_location(struct value *component, const struct value *whole)
int value_stack(struct value *)
void error_value_optimized_out(void)
int get_internalvar_integer(struct internalvar *var, LONGEST *l)
void(* free_closure)(struct value *v)
struct value * value_ref(struct value *arg1)
int binop_types_user_defined_p(enum exp_opcode op, struct type *type1, struct type *type2)
void preserve_one_value(struct value *, struct objfile *, htab_t)
int record_latest_value(struct value *val)
int value_bit_index(struct type *type, const gdb_byte *addr, int index)
void typedef_print(struct type *type, struct symbol *news, struct ui_file *stream)
int value_bits_synthetic_pointer(const struct value *value, int offset, int length)
struct internalvar ** deprecated_value_internalvar_hack(struct value *)
void unop_promote(const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1)
struct value * value_of_register_lazy(struct frame_info *frame, int regnum)
void preserve_values(struct objfile *)
struct value * value_mark(void)
void print_longest(struct ui_file *stream, int format, int use_local, LONGEST val)
struct internalvar * create_internalvar_type_lazy(const char *name, const struct internalvar_funcs *funcs, void *data)
struct value * value_from_register(struct type *type, int regnum, struct frame_info *frame)
LONGEST parse_and_eval_long(const char *exp)
void * value_computed_closure(const struct value *value)
struct value * access_value_history(int num)
enum lval_type value_lval_const(const struct value *value)
VEC(char_ptr)*complete_internalvar(const char *name)
void set_value_embedded_offset(struct value *value, int val)
int symbol_read_needs_frame(struct symbol *)
CORE_ADDR value_address(const struct value *)
struct value * value_literal_complex(struct value *, struct value *, struct type *)
struct value * value_neg(struct value *arg1)
struct value * varying_to_slice(struct value *)
struct value * value_field_bitfield(struct type *type, int fieldno, const gdb_byte *valaddr, int embedded_offset, const struct value *val)
void free_value_chain(struct value *v)
struct value * value_cstring(char *ptr, ssize_t len, struct type *char_type)
struct value * allocate_optimized_out_value(struct type *type)
int destructor_name_p(const char *name, struct type *type)
struct value * value_from_contents_and_address(struct type *, const gdb_byte *, CORE_ADDR)
gdb_byte * value_contents_raw(struct value *)
struct value * value_concat(struct value *arg1, struct value *arg2)
gdb_byte * value_contents_writeable(struct value *)
struct type * value_rtti_indirect_type(struct value *, int *, int *, int *)
enum return_value_convention struct_return_convention(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
struct value * value_ind(struct value *arg1)
const ULONGEST const LONGEST len
struct value * value_from_double(struct type *type, DOUBLEST num)