25#include "gdbsupport/gdb_ref_ptr.h"
387 gdb::array_view<const gdb_byte>
contents ();
469 LONGEST length)
const;
590 LONGEST src_offset, LONGEST length);
597 struct type *arg_type);
838 int src_bit_offset,
int bit_length)
const;
850 LONGEST src_offset, LONGEST length);
855 LONGEST src_bit_offset, LONGEST bit_length);
883 int resolve_simple_types,
884 int *real_type_found);
928 LONGEST offset,
int length);
936 void *(*copy_closure) (
const struct value *v);
953#define VALUE_INTERNALVAR(val) (*((val)->deprecated_internalvar_hack ()))
959#define VALUE_NEXT_FRAME_ID(val) (*((val)->deprecated_next_frame_id_hack ()))
962#define VALUE_REGNUM(val) (*((val)->deprecated_regnum_hack ()))
980 struct type *enc_type,
981 const struct type *original_type,
982 struct value *original_val,
983 CORE_ADDR original_value_address);
1003 bool stack, CORE_ADDR memaddr,
1004 gdb_byte *buffer,
size_t length);
1010 struct type *vector_type);
1041 const gdb_byte *valaddr,
1061 const gdb_byte *valaddr,
1062 LONGEST bitpos, LONGEST bitsize);
1065 LONGEST embedded_offset,
int fieldno,
1066 const struct value *val, LONGEST *result);
1069 const gdb_byte *valaddr,
1071 const struct value *val);
1100 (
struct type *,
const gdb_byte *, CORE_ADDR);
1102 (
struct type *,
const gdb_byte *, CORE_ADDR,
1121 const struct block *b);
1124 const struct block *b);
1140 const struct block *var_block,
1195 struct type *char_type);
1200 struct type *char_type)
1202 gdb_assert (char_type->
length () == 1);
1203 return value_cstring ((
const gdb_byte *) ptr, count, char_type);
1217 struct type *char_type);
1222 struct type *char_type)
1224 gdb_assert (char_type->
length () == 1);
1225 return value_string ((
const gdb_byte *) ptr, count, char_type);
1229 gdb::array_view<struct value *> elemvec);
1258 struct value *fromval);
1272 gdb::optional<gdb::array_view <value *>> args,
1273 const char *
name,
int *static_memfuncp,
1278 struct type *field_type,
1283 struct type *expect_type,
1296 int *staticp,
const int no_adl,
1327 struct value *bitstring,
1338 struct type *value_type);
1341 struct value *function,
1342 struct type *value_type);
1351namespace expr {
class operation; };
1355 std::vector<value_ref_ptr> *val_chain,
1356 bool preserve_errors);
1370 struct value **arg1);
1392 const char *
string);
1399 struct value *newvalue);
1485 struct type *type2);
1488 struct value *arg2);
1500 struct ui_file *stream,
int show);
1506 struct value **valuep,
int *errp);
1509 int use_local, LONGEST val);
1524 (
const struct value *mark);
1527 struct ui_file *stream,
int recurse,
1532 CORE_ADDR addr,
int len,
1585 struct value **argv);
1600 gdb::unique_xmalloc_ptr<char> &&doc,
1606 struct value *function,
1607 int argc,
struct 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
mach_port_t kern_return_t mach_port_t mach_msg_type_name_t msgportsPoly mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int flags
static struct type * new_type(char *)
void(* compile_to_ax)(struct internalvar *var, struct agent_expr *expr, struct axs_value *value, void *data)
internalvar(std::string name)
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)
bool(* check_synthetic_pointer)(const struct value *value, LONGEST offset, int length)
bool operator==(const range &other) const
bool operator<(const range &other) const
scoped_array_length_limiting(int elements)
gdb::optional< int > m_old_value
~scoped_array_length_limiting()
static void decref(struct value *ptr)
static void incref(struct value *ptr)
static struct value * from_xmethod(xmethod_worker_up &&worker)
void unpack_bitfield(struct value *dest_val, LONGEST bitpos, LONGEST bitsize, const gdb_byte *valaddr, LONGEST embedded_offset) const
std::vector< range > m_optimized_out
static struct value * zero(struct type *type, enum lval_type lv)
void set_parent(struct value *parent)
void set_initialized(bool value)
struct value * primitive_field(LONGEST offset, int fieldno, struct type *arg_type)
static struct value * allocate_optimized_out(struct type *type)
gdb::array_view< const gdb_byte > contents_all()
const struct lval_funcs * funcs
CORE_ADDR address() const
std::vector< range > m_unavailable
void contents_copy(struct value *dst, LONGEST dst_offset, LONGEST src_offset, LONGEST length)
bool bits_any_optimized_out(int bit_offset, int bit_length) const
void set_bitpos(LONGEST bit)
struct frame_id next_frame_id
void preserve(struct objfile *objfile, htab_t copied_types)
void set_modifiable(bool val)
void force_lval(CORE_ADDR)
struct value * non_lval()
void mark_bits_optimized_out(LONGEST offset, LONGEST length)
gdb::unique_xmalloc_ptr< gdb_byte > m_contents
bool deprecated_modifiable() const
LONGEST m_pointed_to_offset
struct value * copy() const
struct value::@203::@205 computed
static struct value * allocate_computed(struct type *type, const struct lval_funcs *funcs, void *closure)
void contents_copy_raw(struct value *dst, LONGEST dst_offset, LONGEST src_offset, LONGEST length)
void ranges_copy_adjusted(struct value *dst, int dst_bit_offset, int src_bit_offset, int bit_length) const
struct gdbarch * arch() const
ULONGEST m_limited_length
void mark_bytes_optimized_out(int offset, int length)
gdb::array_view< gdb_byte > contents_writeable()
void contents_copy_raw_bitwise(struct value *dst, LONGEST dst_bit_offset, LONGEST src_bit_offset, LONGEST bit_length)
static struct value * allocate(struct type *type)
bool bytes_available(LONGEST offset, ULONGEST length) const
struct frame_id * deprecated_next_frame_id_hack()
LONGEST m_embedded_offset
struct internalvar * internalvar
void set_enclosing_type(struct type *new_type)
void set_embedded_offset(LONGEST val)
struct value * from_component_bitsize(struct type *type, LONGEST bit_offset, LONGEST bit_length)
struct xmethod_worker * xm_worker
struct type * enclosing_type() const
void set_lval(lval_type val)
bool entirely_unavailable()
void set_bitsize(LONGEST bit)
const struct lval_funcs * computed_funcs() const
void mark_bytes_unavailable(LONGEST offset, ULONGEST length)
LONGEST embedded_offset() const
gdb::array_view< const gdb_byte > contents()
LONGEST pointed_to_offset() const
void require_available() const
void set_address(CORE_ADDR)
void allocate_contents(bool check_size)
struct internalvar ** deprecated_internalvar_hack()
void set_component_location(const struct value *whole)
bool entirely_available()
bool contents_bits_eq(int offset1, const struct value *val2, int offset2, int length) const
struct type * result_type_of_xmethod(gdb::array_view< value * > argv)
gdb::array_view< gdb_byte > contents_raw()
struct type * type() const
struct value * call_xmethod(gdb::array_view< value * > argv)
void set_offset(LONGEST offset)
bool bits_available(LONGEST offset, ULONGEST length) const
CORE_ADDR raw_address() const
bool entirely_optimized_out()
bool contents_eq(LONGEST offset1, const struct value *val2, LONGEST offset2, LONGEST length) const
void set_pointed_to_offset(LONGEST val)
void fetch_lazy_register()
void require_not_optimized_out() const
void fetch_lazy_bitfield()
union value::@203 m_location
DISABLE_COPY_AND_ASSIGN(value)
void * computed_closure() const
int * deprecated_regnum_hack()
bool set_limited_array_length()
value(struct type *type_)
void mark_bits_unavailable(LONGEST offset, ULONGEST length)
bool entirely_covered_by_range_vector(const std::vector< range > &ranges)
enum lval_type lval() const
struct type * m_enclosing_type
struct value::@203::@204 reg
gdb::array_view< gdb_byte > contents_all_raw()
void deprecated_set_type(struct type *type)
static struct value * allocate_lazy(struct type *type)
bool bits_synthetic_pointer(LONGEST offset, LONGEST length) const
gdb::array_view< const gdb_byte > contents_for_printing()
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)
void read_value_memory(struct value *val, LONGEST bit_offset, bool stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length)
void set_internalvar_string(struct internalvar *var, const char *string)
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 *)
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)
int value_equal_contents(struct value *arg1, struct value *arg2)
bool value_logical_not(struct value *arg1)
struct value * varying_to_slice(struct value *)
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)
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_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)
struct value * value_neg(struct value *arg1)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
CORE_ADDR value_as_address(struct value *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)
const char * internalvar_name(const struct internalvar *var)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
value * evaluate_var_msym_value(enum noside noside, struct objfile *objfile, minimal_symbol *msymbol)
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)
struct value * value_of_this_silent(const struct language_defn *lang)
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)
struct value * value_at_non_lval(struct type *type, CORE_ADDR addr)
int value_bit_index(struct type *type, const gdb_byte *addr, int index)
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)
void error_value_optimized_out(void)
int get_internalvar_integer(struct internalvar *var, LONGEST *l)
struct value * value_static_field(struct type *type, int fieldno)
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()
std::string type_to_string(struct type *type)
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 *)
CORE_ADDR address_from_register(int regnum, frame_info_ptr frame)
struct value * value_literal_complex(struct value *, struct value *, struct type *)
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)
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)
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)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr, frame_info_ptr frame=nullptr)
struct value * value_repeat(struct value *arg1, int count)
struct internalvar * lookup_internalvar(const char *name)
struct value * value_to_array(struct value *val)
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_array(int lowbound, gdb::array_view< struct value * > elemvec)
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)
void modify_field(struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize)
struct value * value_vector_widen(struct value *scalar_value, struct type *vector_type)
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 * coerce_ref(struct value *value)
struct value * value_assign(struct value *toval, struct value *fromval)
struct type * parse_and_eval_type(const char *p, int length)
gdb_mpz value_as_mpz(struct value *val)
struct value * value_from_mpz(struct type *type, const gdb_mpz &v)
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_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 * 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)
bool exceeds_max_value_size(ULONGEST length)
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)
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)
struct value * value_from_pointer(struct type *type, CORE_ADDR addr)
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)
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)
CORE_ADDR parse_and_eval_address(const char *exp)
struct value * value_from_contents_and_address(struct type *, const gdb_byte *, CORE_ADDR, frame_info_ptr frame=nullptr)
struct value * access_value_history(int num)
struct value * value_cstring(const gdb_byte *ptr, ssize_t count, struct type *char_type)
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 * 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)
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 * parse_and_eval(const char *exp, parser_flags flags=0)
struct value * address_of_variable(struct symbol *var, const struct block *b)
gdb_mpq value_to_gdb_mpq(struct value *value)
struct value * allocate_repeat_value(struct type *type, int count)
gdb::ref_ptr< struct value, value_ref_policy > value_ref_ptr
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 value * value_imaginary_part(struct value *value)
int destructor_name_p(const char *name, struct type *type)
int unop_user_defined_p(enum exp_opcode op, struct value *arg1)
struct value * value_reinterpret_cast(struct type *type, struct value *arg)
LONGEST unpack_field_as_long(struct type *type, const gdb_byte *valaddr, int fieldno)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
struct value * value_string(const gdb_byte *ptr, ssize_t count, struct type *char_type)
struct value * register_value_being_returned(struct type *valtype, struct regcache *retbuf)