25#include "gdbsupport/gdb_ref_ptr.h"
236 int resolve_simple_types,
237 int *real_type_found);
286 LONGEST offset,
int length);
294 void *(*copy_closure) (
const struct value *v);
388extern gdb::array_view<const gdb_byte>
403 int bit_offset,
int bit_length);
413 int offset,
int length);
419 LONGEST offset, LONGEST length);
430 const struct value *whole);
438#define VALUE_LVAL(val) (*deprecated_value_lval_hack (val))
458#define VALUE_INTERNALVAR(val) (*deprecated_value_internalvar_hack (val))
465#define VALUE_NEXT_FRAME_ID(val) (*deprecated_value_next_frame_id_hack (val))
469#define VALUE_REGNUM(val) (*deprecated_value_regnum_hack (val))
487 struct type *enc_type,
488 const struct type *original_type,
489 struct value *original_val,
490 CORE_ADDR original_value_address);
507 LONGEST
offset, LONGEST length);
515 LONGEST
offset, LONGEST length);
523 LONGEST
offset, LONGEST length);
537 LONGEST
offset, LONGEST length);
543 LONGEST
offset, LONGEST length);
599 const struct value *val2, LONGEST offset2,
606 const struct value *val2);
615 int stack, CORE_ADDR memaddr,
616 gdb_byte *buffer,
size_t length);
622 struct type *vector_type);
648 const gdb_byte *valaddr,
668 const gdb_byte *valaddr,
669 LONGEST bitpos, LONGEST bitsize);
672 LONGEST embedded_offset,
int fieldno,
673 const struct value *val, LONGEST *result);
676 LONGEST bitpos, LONGEST bitsize,
677 const gdb_byte *valaddr,
678 LONGEST embedded_offset,
679 const struct value *val);
682 const gdb_byte *valaddr,
684 const struct value *val);
715 (
struct type *,
const gdb_byte *, CORE_ADDR);
736 const struct block *b);
739 const struct block *b);
755 const struct block *var_block,
761 struct value *src, LONGEST src_offset,
807 struct type *char_type);
809 struct type *char_type);
812 struct value **elemvec);
841 struct value *fromval);
850 gdb::optional<gdb::array_view <value *>> args,
851 const char *
name,
int *static_memfuncp,
856 struct type *field_type,
861 struct type *expect_type,
874 int *staticp,
const int no_adl,
881 struct type *arg_type);
908 struct value *bitstring,
924 struct value *function,
934 struct type *expect_type =
nullptr);
945namespace expr {
class operation; };
949 std::vector<value_ref_ptr> *val_chain,
950 bool preserve_errors);
964 struct value **arg1);
993 struct value *newvalue);
1079 struct type *type2);
1082 struct value *arg2);
1096 struct ui_file *stream,
int show);
1102 struct value **valuep,
int *errp);
1105 int use_local, LONGEST val);
1120 (
const struct value *mark);
1123 struct ui_file *stream,
int recurse,
1128 CORE_ADDR addr,
int len,
1189 struct value **argv);
1204 gdb::unique_xmalloc_ptr<char> &&doc,
1210 struct value *function,
1211 int argc,
struct value **argv);
1221 gdb::array_view<value *> argv);
1224 gdb::array_view<value *> argv);
const struct value * m_value
DISABLE_COPY_AND_ASSIGN(scoped_value_mark)
scoped_value_mark(scoped_value_mark &&other)=default
std::unique_ptr< xmethod_worker > xmethod_worker_up
mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t err
static struct type * new_type(char *)
void(* compile_to_ax)(struct internalvar *var, struct agent_expr *expr, struct axs_value *value, void *data)
void(* write)(struct value *toval, struct value *fromval)
void(* read)(struct value *v)
bool(* is_optimized_out)(struct value *v)
void(* free_closure)(struct value *v)
int(* check_synthetic_pointer)(const struct value *value, LONGEST offset, int length)
static void decref(struct value *ptr)
static void incref(struct value *ptr)
const struct lval_funcs * funcs
int value_bytes_available(const struct value *value, LONGEST offset, LONGEST length)
enum return_value_convention struct_return_convention(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
value * evaluate_var_value(enum noside noside, const block *blk, symbol *var)
struct value * value_from_register(struct type *type, int regnum, frame_info_ptr frame)
int value_entirely_optimized_out(struct value *value)
void set_internalvar_string(struct internalvar *var, const char *string)
struct value * value_zero(struct type *type, enum lval_type lv)
LONGEST value_embedded_offset(const struct value *value)
struct value * value_from_contents(struct type *, const gdb_byte *)
struct value * value_of_internalvar(struct gdbarch *gdbarch, struct internalvar *var)
int symbol_read_needs_frame(struct symbol *)
void unpack_value_bitfield(struct value *dest_val, LONGEST bitpos, LONGEST bitsize, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val)
LONGEST value_bitpos(const struct value *)
struct value * value_coerce_to_target(struct value *arg1)
struct value * readjust_indirect_value_type(struct value *value, struct type *enc_type, const struct type *original_type, struct value *original_val, CORE_ADDR original_value_address)
struct value * allocate_value_lazy(struct type *type)
void set_value_initialized(struct value *, int)
void set_value_address(struct value *, CORE_ADDR)
int value_equal_contents(struct value *arg1, struct value *arg2)
bool value_logical_not(struct value *arg1)
struct value * varying_to_slice(struct value *)
int value_entirely_available(struct value *value)
int value_in(struct value *element, struct value *set)
struct value * value_subscript(struct value *array, LONGEST index)
struct value * value_at(struct type *type, CORE_ADDR addr)
bool is_floating_value(struct value *val)
void value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
struct value * coerce_ref_if_computed(const struct value *arg)
void clear_internalvar(struct internalvar *var)
gdb::array_view< const gdb_byte > value_contents_for_printing_const(const struct value *value)
struct value * value_struct_elt_bitpos(struct value **argp, int bitpos, struct type *field_type, const char *err)
struct value * value_x_binop(struct value *arg1, struct value *arg2, enum exp_opcode op, enum exp_opcode otherop, enum noside noside)
struct value * value_string(const char *ptr, ssize_t len, struct type *char_type)
struct value * value_field(struct value *arg1, int fieldno)
struct value * default_value_from_register(struct gdbarch *gdbarch, struct type *type, int regnum, struct frame_id frame_id)
void value_contents_copy(struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length)
struct value * value_neg(struct value *arg1)
struct value * value_array(int lowbound, int highbound, struct value **elemvec)
struct value * allocate_value(struct type *type)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
CORE_ADDR value_as_address(struct value *val)
struct gdbarch * get_value_arch(const struct value *value)
void set_value_embedded_offset(struct value *value, LONGEST val)
void set_value_stack(struct value *value, int val)
int compile_internalvar_to_ax(struct internalvar *var, struct agent_expr *expr, struct axs_value *value)
struct value * value_from_contents_and_address_unresolved(struct type *, const gdb_byte *, CORE_ADDR)
struct value * value_next(const struct value *)
LONGEST value_offset(const struct value *)
struct value * value_from_contents_and_address(struct type *, const gdb_byte *, CORE_ADDR)
int value_lazy(const struct value *)
const char * internalvar_name(const struct internalvar *var)
void set_value_component_location(struct value *component, const struct value *whole)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
void value_fetch_lazy(struct value *val)
value * evaluate_var_msym_value(enum noside noside, struct objfile *objfile, minimal_symbol *msymbol)
struct value * value_cstring(const char *ptr, ssize_t len, struct type *char_type)
int * deprecated_value_regnum_hack(struct value *)
void preserve_one_value(struct value *, struct objfile *, htab_t)
struct value * value_allocate_space_in_inferior(int)
struct value * value_aggregate_elt(struct type *curtype, const char *name, struct type *expect_type, int want_address, enum noside noside)
struct internalvar * create_internalvar(const char *name)
void set_value_bitsize(struct value *, LONGEST bit)
struct value * value_of_this_silent(const struct language_defn *lang)
LONGEST value_bitsize(const struct value *)
struct value * value_primitive_field(struct value *arg1, LONGEST offset, int fieldno, struct type *arg_type)
struct value * parse_to_comma_and_eval(const char **expp)
gdb_byte * baseclass_addr(struct type *type, int index, gdb_byte *valaddr, struct value **valuep, int *errp)
int value_bit_index(struct type *type, const gdb_byte *addr, int index)
struct value * value_from_xmethod(xmethod_worker_up &&worker)
struct value * value_copy(const value *)
struct value * value_from_ulongest(struct type *type, ULONGEST num)
struct value * value_of_register_lazy(frame_info_ptr frame, int regnum)
struct value * value_slice(struct value *, int, int)
const char * value_internal_function_name(struct value *)
struct value * value_of_register(int regnum, frame_info_ptr frame)
struct value * allocate_optimized_out_value(struct type *type)
void mark_value_bytes_unavailable(struct value *value, LONGEST offset, LONGEST length)
void error_value_optimized_out(void)
int get_internalvar_integer(struct internalvar *var, LONGEST *l)
void set_value_parent(struct value *value, struct value *parent)
struct value * value_static_field(struct type *type, int fieldno)
struct value * evaluate_expression(struct expression *exp, struct type *expect_type=nullptr)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr)
struct internalvar * create_internalvar_type_lazy(const char *name, const struct internalvar_funcs *funcs, void *data)
struct value * value_one(struct type *type)
struct value * value_full_object(struct value *, struct type *, int, int, int)
struct internalvar * lookup_only_internalvar(const char *name)
ULONGEST value_history_count()
struct value * value_from_component_bitsize(struct value *whole, struct type *type, LONGEST bit_offset, LONGEST bit_length)
std::string type_to_string(struct type *type)
int record_latest_value(struct value *val)
void binop_promote(const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1, struct value **arg2)
int unpack_value_field_as_long(struct type *type, const gdb_byte *valaddr, LONGEST embedded_offset, int fieldno, const struct value *val, LONGEST *result)
struct value * value_from_longest(struct type *type, LONGEST num)
struct value * value_x_unop(struct value *arg1, enum exp_opcode op, enum noside noside)
struct value * value_from_history_ref(const char *, const char **)
struct value * find_function_in_inferior(const char *, struct objfile **)
struct value * make_cv_value(int, int, struct value *)
struct value * evaluate_type(struct expression *exp)
int value_stack(const struct value *)
gdb::array_view< gdb_byte > value_contents_all_raw(struct value *)
void set_value_offset(struct value *, LONGEST offset)
CORE_ADDR address_from_register(int regnum, frame_info_ptr frame)
struct value * value_literal_complex(struct value *, struct value *, struct type *)
void mark_value_bits_unavailable(struct value *value, LONGEST offset, LONGEST length)
struct value * value_coerce_array(struct value *arg1)
static bool value_true(struct value *val)
LONGEST parse_and_eval_long(const char *exp)
void add_internal_function(const char *name, const char *doc, internal_function_fn handler, void *cookie)
void set_internalvar(struct internalvar *var, struct value *val)
struct value * value_cast_pointers(struct type *, struct value *, int)
void typedef_print(struct type *type, struct symbol *news, struct ui_file *stream)
void complete_internalvar(completion_tracker &tracker, const char *name)
void set_value_enclosing_type(struct value *val, struct type *new_type)
struct value * value_complement(struct value *arg1)
struct value * value_bitstring_subscript(struct type *type, struct value *bitstring, LONGEST index)
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 mark_value_bits_optimized_out(struct value *value, LONGEST offset, LONGEST length)
int value_bits_any_optimized_out(const struct value *value, int bit_offset, int bit_length)
struct value * value_struct_elt(struct value **argp, gdb::optional< gdb::array_view< value * > > args, const char *name, int *static_memfuncp, const char *err)
void preserve_values(struct objfile *)
bool value_must_coerce_to_target(struct value *arg1)
struct value * value_of_variable(struct symbol *var, const struct block *b)
struct value * value_addr(struct value *arg1)
int value_bits_available(const struct value *value, LONGEST offset, LONGEST length)
struct type * result_type_of_xmethod(struct value *method, gdb::array_view< value * > argv)
struct value * value_repeat(struct value *arg1, int count)
void value_incref(struct value *val)
struct internalvar * lookup_internalvar(const char *name)
struct value * value_fn_field(struct value **arg1p, struct fn_field *f, int j, struct type *type, LONGEST offset)
LONGEST value_as_long(struct value *val)
struct value * value_pos(struct value *arg1)
struct value * value_non_lval(struct value *)
struct type * value_type(const struct value *)
void unop_promote(const struct language_defn *language, struct gdbarch *gdbarch, struct value **arg1)
void read_frame_register_value(struct value *value, frame_info_ptr frame)
struct value * value_cast(struct type *type, struct value *arg2)
const struct lval_funcs * value_computed_funcs(const struct value *)
bool value_contents_eq(const struct value *val1, LONGEST offset1, const struct value *val2, LONGEST offset2, LONGEST length)
void modify_field(struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize)
struct internalvar ** deprecated_value_internalvar_hack(struct value *)
void set_value_pointed_to_offset(struct value *value, LONGEST val)
struct value * value_vector_widen(struct value *scalar_value, struct type *vector_type)
LONGEST value_pointed_to_offset(const struct value *value)
void print_longest(struct ui_file *stream, int format, int use_local, LONGEST val)
int binop_user_defined_p(enum exp_opcode op, struct value *arg1, struct value *arg2)
struct value * value_parent(const struct value *)
struct value * coerce_ref(struct value *value)
struct value * value_assign(struct value *toval, struct value *fromval)
CORE_ADDR value_raw_address(const struct value *)
enum lval_type value_lval_const(const struct value *value)
struct type * parse_and_eval_type(const char *p, int length)
void print_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
enum symbol_needs_kind symbol_read_needs(struct symbol *)
void pack_long(gdb_byte *buf, struct type *type, LONGEST num)
void set_internalvar_integer(struct internalvar *var, LONGEST l)
int value_optimized_out(struct value *value)
int value_equal(struct value *arg1, struct value *arg2)
struct type * value_rtti_indirect_type(struct value *, int *, LONGEST *, int *)
int print_address_demangle(const struct value_print_options *, struct gdbarch *, CORE_ADDR, struct ui_file *, int)
struct value * allocate_computed_value(struct type *type, const struct lval_funcs *funcs, void *closure)
int value_initialized(const struct value *)
struct value * read_var_value(struct symbol *var, const struct block *var_block, frame_info_ptr frame)
int binop_types_user_defined_p(enum exp_opcode op, struct type *type1, struct type *type2)
struct value * value_real_part(struct value *value)
gdb::array_view< const gdb_byte > value_contents_for_printing(struct value *value)
struct value * call_internal_function(struct gdbarch *gdbarch, const struct language_defn *language, struct value *function, int argc, struct value **argv)
struct value * value_from_host_double(struct type *type, double d)
void mark_value_bytes_optimized_out(struct value *value, int offset, int length)
struct value * value_field_bitfield(struct type *type, int fieldno, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val)
int value_less(struct value *arg1, struct value *arg2)
struct value * value_coerce_function(struct value *arg1)
std::vector< value_ref_ptr > value_release_to_mark(const struct value *mark)
void print_variable_and_value(const char *name, struct symbol *var, frame_info_ptr frame, struct ui_file *stream, int indent)
void set_value_bitpos(struct value *, LONGEST bit)
struct value * value_from_pointer(struct type *type, CORE_ADDR addr)
CORE_ADDR value_address(const struct value *)
struct type * value_actual_type(struct value *value, int resolve_simple_types, int *real_type_found)
struct value * value_ind(struct value *arg1)
void type_print(struct type *type, const char *varstring, struct ui_file *stream, int show)
int deprecated_value_modifiable(const struct value *value)
gdb::array_view< const gdb_byte > value_contents(struct 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)
struct value * value_mark(void)
void deprecated_set_value_type(struct value *value, struct type *type)
gdb::array_view< gdb_byte > value_contents_raw(struct value *)
CORE_ADDR parse_and_eval_address(const char *exp)
int value_bits_synthetic_pointer(const struct value *value, LONGEST offset, LONGEST length)
enum lval_type * deprecated_value_lval_hack(struct value *)
struct value * access_value_history(int num)
void value_free_to_mark(const struct value *mark)
LONGEST unpack_bits_as_long(struct type *field_type, const gdb_byte *valaddr, LONGEST bitpos, LONGEST bitsize)
value_ref_ptr release_value(struct value *val)
int find_overload_match(gdb::array_view< value * > args, const char *name, enum oload_search_type method, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl, enum noside noside)
struct value * parse_and_eval(const char *exp)
struct value * value_concat(struct value *arg1, struct value *arg2)
struct value * value_ptradd(struct value *arg1, LONGEST arg2)
struct value * value_from_component(struct value *, struct type *, LONGEST)
struct value *(* internal_function_fn)(struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
int value_entirely_unavailable(struct value *value)
gdb::array_view< const gdb_byte > value_contents_all(struct value *)
struct value * value_ref(struct value *arg1, enum type_code refcode)
LONGEST value_ptrdiff(struct value *arg1, struct value *arg2)
struct value * coerce_array(struct value *value)
int using_struct_return(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
struct value * value_dynamic_cast(struct type *type, struct value *arg)
struct value * address_of_variable(struct symbol *var, const struct block *b)
gdb_mpq value_to_gdb_mpq(struct value *value)
void value_force_lval(struct value *, CORE_ADDR)
void set_value_lazy(struct value *value, int val)
void read_value_memory(struct value *val, LONGEST bit_offset, int stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length)
struct value * allocate_repeat_value(struct type *type, int count)
gdb::ref_ptr< struct value, value_ref_policy > value_ref_ptr
gdb::array_view< gdb_byte > value_contents_writeable(struct value *)
struct value * value_binop(struct value *arg1, struct value *arg2, enum exp_opcode op)
void set_internalvar_component(struct internalvar *var, LONGEST offset, LONGEST bitpos, LONGEST bitsize, struct value *newvalue)
struct value * value_of_this(const struct language_defn *lang)
struct frame_id * deprecated_value_next_frame_id_hack(struct value *)
struct value * value_imaginary_part(struct value *value)
int destructor_name_p(const char *name, struct type *type)
void value_decref(struct value *val)
int unop_user_defined_p(enum exp_opcode op, struct value *arg1)
struct value * value_reinterpret_cast(struct type *type, struct value *arg)
struct value * call_xmethod(struct value *method, gdb::array_view< value * > argv)
LONGEST unpack_field_as_long(struct type *type, const gdb_byte *valaddr, int fieldno)
struct type * value_enclosing_type(const struct value *)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
void * value_computed_closure(const struct value *value)
struct value * register_value_being_returned(struct type *valtype, struct regcache *retbuf)