84 l = std::max (
offset1, offset2);
85 h = std::min (
offset1 + len1, offset2 + len2);
642 const gdb_byte *ptr2,
size_t offset2_bits,
659 mask = (1 <<
bits) - 1;
661 if (length_bits <
bits)
677 offset1_bits +=
bits;
678 offset2_bits +=
bits;
693 o1 = offset1_bits + length_bits -
bits;
694 o2 = offset2_bits + length_bits -
bits;
760 if (rp1->idx == -1 && rp2->idx == -1)
766 else if (rp1->idx == -1 || rp2->idx == -1)
783 l2 = std::max (offset2, r2->
offset);
784 h2 = std::min (offset2 + length, offset2 + r2->
length);
795 if (l1 != l2 || h1 != h2)
813 const struct value *val2,
int offset2,
829 memset (&rp1, 0,
sizeof (rp1));
830 memset (&rp2, 0,
sizeof (rp2));
831 rp1[0].ranges = val1->unavailable;
832 rp2[0].ranges = val2->unavailable;
833 rp1[1].ranges = val1->optimized_out;
834 rp2[1].ranges = val2->optimized_out;
841 for (i = 0; i < 2; i++)
853 if (i == 0 || l_tmp < l)
890 #define VALUE_HISTORY_CHUNK 60 966 #define MIN_VALUE_FOR_MAX_VALUE_SIZE 16 980 error (
_(
"max-value-size set too low, increasing to %d bytes"),
1012 error (
_(
"value of type `%s' requires %u bytes, which is more " 1015 error (
_(
"value requires %u bytes, which is more than " 1016 "max-value-size"), length);
1054 struct type *array_type
1184 int *real_type_found)
1187 struct type *result;
1191 if (real_type_found)
1192 *real_type_found = 0;
1203 struct type *real_type;
1208 if (real_type_found)
1209 *real_type_found = 1;
1213 else if (resolve_simple_types)
1215 if (real_type_found)
1216 *real_type_found = 1;
1227 error (
_(
"value has been optimized out"));
1236 error (
_(
"register has not been saved in frame"));
1278 VEC (
range_s) *src_range,
int src_bit_offset,
1290 (
LONGEST) src_bit_offset + bit_length);
1294 dst_bit_offset + (l - src_bit_offset),
1304 const struct value *src,
int src_bit_offset,
1308 src->unavailable, src_bit_offset,
1311 src->optimized_out, src_bit_offset,
1329 LONGEST src_bit_offset, dst_bit_offset, bit_length;
1350 length * unit_size);
1358 src, src_bit_offset,
1850 const struct value *whole)
1939 error (
_(
"The history is empty."));
1941 error (
_(
"There is only one value in the history."));
1943 error (
_(
"History does not go back to $$%d."), -num);
1946 error (
_(
"History has not yet reached $%d."), absnum);
1956 chunk = chunk->
next;
1972 if (num_exp[0] !=
'+' || num_exp[1] !=
'\0')
2001 if (from_tty && num_exp)
2099 if (expr->nelts == 0 || expr->elts[0].opcode != BINOP_ASSIGN)
2100 error (
_(
"Init-if-undefined requires an assignment expression."));
2104 if (expr->elts[1].opcode != OP_INTERNALVAR)
2105 error (
_(
"The first parameter to init-if-undefined " 2106 "should be a GDB variable."));
2107 intvar = expr->elts[2].internalvar;
2143 len = strlen (
name);
2146 if (strncmp (var->
name,
name, len) == 0)
2162 var->
name = concat (
name, (
char *)NULL);
2387 error (
_(
"Cannot overwrite convenience function %s"), var->
name);
2436 var->
kind = new_kind;
2459 var->
u.
string = xstrdup (
string);
2561 xfree ((
char *) self->name);
2562 xfree ((
char *) self->doc);
2591 htab_t copied_types)
2606 htab_t copied_types)
2631 htab_t copied_types;
2650 htab_delete (copied_types);
2693 "Convenience variables have " 2694 "names starting with \"$\";\n" 2695 "use \"set\" as in \"set " 2696 "$foo = 5\" to define them.\n"));
2705 if (worker->
value == NULL)
2716 return worker->
value;
2915 error (
_(
"Value can't be converted to integer."));
2949 error (
_(
"Invalid floating value found in program."));
2963 struct value *retval;
3029 int fieldno,
struct type *arg_type)
3063 if ((bitpos % container_bitsize) + v->
bitsize <= container_bitsize
3065 v->
bitpos = bitpos % container_bitsize;
3070 + (bitpos - v->
bitpos) / 8);
3178 memset (&msym, 0,
sizeof (msym));
3251 bytes_read = ((bitpos % 8) + bitsize + 7) / 8;
3263 lsbcount = (bytes_read * 8 - bitpos % 8 - bitsize);
3265 lsbcount = (bitpos % 8);
3271 if ((bitsize > 0) && (bitsize < 8 * (int)
sizeof (val)))
3273 valmask = (((
ULONGEST) 1) << bitsize) - 1;
3277 if (val & (valmask ^ (valmask >> 1)))
3294 LONGEST embedded_offset,
int fieldno,
3339 const struct value *val)
3341 enum bfd_endian byte_order;
3353 if (valaddr != NULL)
3366 if (byte_order == BFD_ENDIAN_BIG)
3371 val, src_bit_offset, bitsize);
3417 if ((~fieldval & ~(mask >> 1)) == 0)
3421 if (0 != (fieldval & ~mask))
3441 oword &= ~(mask <<
bitpos);
3442 oword |= fieldval <<
bitpos;
3482 error (
_(
"Unexpected type (%d) encountered for integer constant."),
3494 enum bfd_endian byte_order;
3524 error (
_(
"Unexpected type (%d) encountered " 3525 "for unsigned integer constant."),
3584 if (valaddr == NULL)
3607 if (valaddr == NULL)
3625 struct value *result;
3650 for (; isdigit (h[len]); len++)
3654 if (h[len] ==
'_' || isalpha (h[len]))
3671 index = -strtol (&h[2], &local_end, 10);
3687 index = strtol (&h[1], &local_end, 10);
3740 const struct type *original_type,
3741 const struct value *original_value)
3758 struct value *retval;
3759 struct type *enc_type;
3776 value_type_arg_tmp, arg);
3811 error (
_(
"Function return type unknown."));
3947 _(
"infinite loop while fetching a register"));
3973 "{ value_fetch_lazy " 3974 "(frame=%d,regnum=%d(%s),...) ",
4017 internal_error (__FILE__, __LINE__,
_(
"Unexpected lazy value type."));
4024 static struct value *
4027 void *cookie,
int argc,
struct value **
argv)
4032 error (
_(
"You must provide one argument for $_isvoid."));
4043 Debugger convenience (\"$foo\") variables and functions.\n\ 4044 Convenience variables are created when you assign them values;\n\ 4045 thus, \"set $foo=1\" gives \"$foo\" the value 1. Values may be any type.\n\ 4047 A few convenience variables are given values automatically:\n\ 4048 \"$_\"holds the last address examined with \"x\" or \"info lines\",\n\ 4049 \"$__\" holds the contents of the last address examined with \"x\"." 4052 Convenience functions are defined via the Python API." 4058 Elements of value history around item number IDX (or last ten)."),
4062 Initialize a convenience variable if necessary.\n\ 4063 init-if-undefined VARIABLE = EXPRESSION\n\ 4064 Set an internal VARIABLE to the result of the EXPRESSION if it does not\n\ 4065 exist or does not contain a value. The EXPRESSION is not evaluated if the\n\ 4066 VARIABLE is already initialized."));
4069 Placeholder command for showing help on convenience functions."),
4073 Check whether an expression is void.\n\ 4074 Usage: $_isvoid (expression)\n\ 4075 Return 1 if the expression is void, zero otherwise."),
4080 Set maximum sized value gdb will load from the inferior."),
_(
"\ 4081 Show maximum sized value gdb will load from the inferior."),
_(
"\ 4082 Use this to control the maximum size, in bytes, of a value that gdb\n\ 4083 will load from the inferior. Setting this value to 'unlimited'\n\ 4084 disables checking.\n\ 4085 Setting this does not invalidate already allocated values, it only\n\ 4086 prevents future values, larger than this size, from being allocated."),
CORE_ADDR gdbarch_integer_to_address(struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
struct gdbarch * target_gdbarch(void)
struct frame_info * frame_find_by_id(struct frame_id id)
#define TYPE_FIELD_STATIC_PHYSNAME(thistype, n)
const char * user_reg_map_regnum_to_name(struct gdbarch *gdbarch, int regnum)
ssize_t read(int fd, void *buf, size_t count)
struct frame_id * deprecated_value_next_frame_id_hack(struct value *value)
struct value * value_mark(void)
void(* read)(struct value *v)
struct type * lookup_array_range_type(struct type *element_type, LONGEST low_bound, LONGEST high_bound)
struct internalvar * create_internalvar(const char *name)
void set_value_embedded_offset(struct value *value, LONGEST val)
CORE_ADDR extract_typed_address(const gdb_byte *buf, struct type *type)
struct value * value_next(const struct value *value)
void mark_value_bits_unavailable(struct value *value, LONGEST offset, LONGEST length)
struct value * value_addr(struct value *arg1)
static int value_history_count
#define VALUE_FRAME_ID(val)
#define VALUE_HISTORY_CHUNK
struct value * make_cv_value(int cnst, int voltl, struct value *v)
void set_value_initialized(struct value *val, int status)
void value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
struct value * value_from_contents_and_address(struct type *type, const gdb_byte *valaddr, CORE_ADDR address)
static void allocate_value_contents(struct value *val)
#define TYPE_N_BASECLASSES(thistype)
struct value *(* make_value)(struct gdbarch *arch, struct internalvar *var, void *data)
gdb::unique_xmalloc_ptr< expression > expression_up
void set_internalvar_component(struct internalvar *var, LONGEST offset, LONGEST bitpos, LONGEST bitsize, struct value *newval)
internal_function_fn handler
struct internalvar ** deprecated_value_internalvar_hack(struct value *value)
int value_entirely_optimized_out(struct value *value)
union value::@186 location
struct value * value_from_contents(struct type *type, const gdb_byte *contents)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
LONGEST value_as_long(struct value *val)
struct frame_id next_frame_id
static bool value_contents_bits_eq(const struct value *val1, int offset1, const struct value *val2, int offset2, int length)
#define BMSYMBOL_VALUE_ADDRESS(symbol)
void warning(const char *fmt,...)
#define VALUE_NEXT_FRAME_ID(val)
LONGEST value_embedded_offset(const struct value *value)
struct value * value_coerce_array(struct value *arg1)
#define TYPE_NAME(thistype)
LONGEST value_bitsize(const struct value *value)
static int ranges_overlap(LONGEST offset1, LONGEST len1, LONGEST offset2, LONGEST len2)
static void show_convenience(const char *ignore, int from_tty)
enum lval_type * deprecated_value_lval_hack(struct value *value)
struct internalvar * lookup_only_internalvar(const char *name)
void value_incref(struct value *val)
int deprecated_value_modifiable(const struct value *value)
struct type * value_enclosing_type(const struct value *value)
int compile_internalvar_to_ax(struct internalvar *var, struct agent_expr *expr, struct axs_value *value)
struct value * invoke_xmethod(struct xmethod_worker *worker, struct value *obj, struct value **args, int nargs)
char * plongest(LONGEST l)
static struct cmd_list_element * functionlist
int get_internalvar_integer(struct internalvar *var, LONGEST *result)
struct value * call_xmethod(struct value *method, int argc, struct value **argv)
void mark_value_bytes_unavailable(struct value *value, LONGEST offset, LONGEST length)
static void pack_unsigned_long(gdb_byte *buf, struct type *type, ULONGEST num)
struct value * allocate_value_lazy(struct type *type)
void * memset(T *s, int c, size_t n)=delete
void internal_error(const char *file, int line, const char *fmt,...)
void * value_computed_closure(const struct value *v)
void remove_dyn_prop(enum dynamic_prop_node_kind prop_kind, struct type *type)
#define BASETYPE_VIA_VIRTUAL(thistype, index)
struct xmethod_worker * xm_worker
struct internalvar_data::@189 make_value
#define VALUE_INTERNALVAR(val)
unsigned int type_length_units(struct type *type)
#define VEC_block_remove(T, V, I, L)
int value_lazy(const struct value *value)
struct value * value_coerce_function(struct value *arg1)
struct value * coerce_ref(struct value *arg)
void value_free(struct value *val)
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list)
void read_value_memory(struct value *val, LONGEST bit_offset, int stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length)
int baseclass_offset(struct type *type, int index, const gdb_byte *valaddr, LONGEST embedded_offset, CORE_ADDR address, const struct value *val)
struct value * value_ind(struct value *arg1)
void set_value_lazy(struct value *value, int val)
struct value * value_copy(struct value *arg)
struct value * value_from_contents_and_address_unresolved(struct type *type, const gdb_byte *valaddr, CORE_ADDR address)
struct cmd_list_element * cmdlist
struct block_symbol lookup_symbol(const char *name, const struct block *block, domain_enum domain, struct field_of_this_result *is_a_field_of_this)
struct internalvar * lookup_internalvar(const char *name)
const gdb_byte * value_contents_for_printing(struct value *value)
struct value_history_chunk * next
struct internalvar_data::@190 fn
int value_bytes_available(const struct value *value, LONGEST offset, LONGEST length)
#define TYPE_DATA_LOCATION_KIND(thistype)
static int range_lessthan(const range_s *r1, const range_s *r2)
struct value *(* internal_function_fn)(struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
#define bits(obj, st, fn)
int value_bits_any_optimized_out(const struct value *value, int bit_offset, int bit_length)
#define VEC_lower_bound(T, V, O, LT)
struct value * call_internal_function(struct gdbarch *gdbarch, const struct language_defn *language, struct value *func, int argc, struct value **argv)
void mark_value_bits_optimized_out(struct value *value, LONGEST offset, LONGEST length)
#define TYPE_FIELD_TYPE(thistype, n)
#define TYPE_DATA_LOCATION(thistype)
const struct internalvar_funcs * functions
struct value * allocate_value(struct type *type)
struct internalvar * next
int gdbarch_convert_register_p(struct gdbarch *gdbarch, int regnum, struct type *type)
int value_stack(const struct value *value)
int gdbarch_integer_to_address_p(struct gdbarch *gdbarch)
void unpack_value_bitfield(struct value *dest_val, LONGEST bitpos, LONGEST bitsize, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val)
void printf_filtered(const char *format,...)
static struct value_history_chunk * value_history_chain
const char * paddress(struct gdbarch *gdbarch, CORE_ADDR addr)
static void function_destroyer(struct cmd_list_element *self, void *ignore)
#define TYPE_IS_REFERENCE(t)
void(* compile_to_ax)(struct internalvar *var, struct agent_expr *expr, struct axs_value *value, void *data)
enum lval_type value_lval_const(const struct value *value)
void deprecated_set_value_type(struct value *value, struct type *type)
void set_value_address(struct value *value, CORE_ADDR addr)
void target_float_from_longest(gdb_byte *addr, const struct type *type, LONGEST val)
struct cmd_list_element * add_prefix_cmd(const char *name, enum command_class theclass, cmd_const_cfunc_ftype *fun, const char *doc, struct cmd_list_element **prefixlist, const char *prefixname, int allow_unknown, struct cmd_list_element **list)
struct value * value_non_lval(struct value *arg)
int gdbarch_addressable_memory_unit_size(struct gdbarch *gdbarch)
LONGEST value_offset(const struct value *value)
#define target_get_trace_state_variable_value(tsv, val)
struct value * evaluate_expression(struct expression *exp)
static void insert_into_bit_range_vector(VEC(range_s) **vectorp, LONGEST offset, LONGEST length)
void free_value_chain(struct value *v)
int frame_id_eq(struct frame_id l, struct frame_id r)
void val_print_optimized_out(const struct value *val, struct ui_file *stream)
static struct value * isvoid_internal_fn(struct gdbarch *gdbarch, const struct language_defn *language, void *cookie, int argc, struct value **argv)
static void function_command(const char *command, int from_tty)
struct cmd_list_element * setlist
bool value_contents_eq(const struct value *val1, LONGEST offset1, const struct value *val2, LONGEST offset2, LONGEST length)
static void require_not_optimized_out(const struct value *value)
#define TYPE_FN_FIELD_PHYSNAME(thisfn, n)
#define VEC_iterate(T, V, I, P)
void preserve_one_value(struct value *value, struct objfile *objfile, htab_t copied_types)
void free_xmethod_worker(struct xmethod_worker *worker)
struct type * check_typedef(struct type *type)
struct type * result_type_of_xmethod(struct value *method, int argc, struct value **argv)
const gdb_byte * value_contents(struct value *value)
struct value::@186::@188 computed
#define CATCH(EXCEPTION, MASK)
struct value * value_field(struct value *arg1, int fieldno)
static LONGEST unpack_bits_as_long(struct type *field_type, const gdb_byte *valaddr, LONGEST bitpos, LONGEST bitsize)
static struct internalvar * internalvars
static void show_max_value_size(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
LONGEST unpack_field_as_long(struct type *type, const gdb_byte *valaddr, int fieldno)
static struct value * all_values
std::unique_ptr< T, xfree_deleter< T > > unique_xmalloc_ptr
struct target_ops current_target
CORE_ADDR gdbarch_addr_bits_remove(struct gdbarch *gdbarch, CORE_ADDR addr)
struct value * allocate_computed_value(struct type *type, const struct lval_funcs *funcs, void *closure)
struct value::@186::@187 reg
#define MIN_VALUE_FOR_MAX_VALUE_SIZE
static void value_ranges_copy_adjusted(struct value *dst, int dst_bit_offset, const struct value *src, int src_bit_offset, int bit_length)
struct value * value_static_field(struct type *type, int fieldno)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
void * xzalloc(size_t size)
static ULONGEST extract_unsigned_integer(const gdb_byte *addr, int len, enum bfd_endian byte_order)
void preserve_ext_lang_values(struct objfile *objfile, htab_t copied_types)
void *(* copy_closure)(const struct value *v)
int value_bits_available(const struct value *value, LONGEST offset, LONGEST length)
const struct block * block
static int memcmp_with_bit_offsets(const gdb_byte *ptr1, size_t offset1_bits, const gdb_byte *ptr2, size_t offset2_bits, size_t length_bits)
void set_value_enclosing_type(struct value *val, struct type *new_encl_type)
CORE_ADDR gdbarch_convert_from_func_ptr_addr(struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ)
void fprintf_unfiltered(struct ui_file *stream, const char *format,...)
void set_repeat_arguments(const char *args)
void(* destroyer)(struct cmd_list_element *self, void *context)
int using_struct_return(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
struct cmd_list_element * showlist
void preserve_values(struct objfile *objfile)
const gdb_byte * value_contents_all(struct value *value)
static int find_first_range_overlap(VEC(range_s) *ranges, int pos, LONGEST offset, LONGEST length)
void set_value_parent(struct value *value, struct value *parent)
#define gdb_assert_not_reached(message)
enum internalvar_kind kind
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
char * internalvar_name(const struct internalvar *var)
void set_internalvar(struct internalvar *var, struct value *val)
struct value *(* coerce_ref)(const struct value *value)
struct type * copy_type_recursive(struct objfile *objfile, struct type *type, htab_t copied_types)
static void set_internalvar_function(struct internalvar *var, struct internal_function *f)
struct gdbarch * get_objfile_arch(const struct objfile *objfile)
gdb_static_assert(sizeof(LONGEST)<=MIN_VALUE_FOR_MAX_VALUE_SIZE)
struct type * get_xmethod_result_type(struct xmethod_worker *worker, struct value *object, struct value **args, int nargs)
static void show_values(const char *num_exp, int from_tty)
static struct internalvar * intvar
struct value * value_of_xmethod(struct xmethod_worker *worker)
#define VALUE_REGNUM(val)
#define VEC_index(T, V, I)
struct value * coerce_ref_if_computed(const struct value *arg)
struct gdbarch * get_type_arch(const struct type *type)
int value_initialized(const struct value *val)
struct gdbarch * get_current_arch(void)
enum return_value_convention gdbarch_return_value(struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
gdb_byte * value_contents_writeable(struct value *value)
struct value * coerce_array(struct value *arg)
struct value * value_from_longest(struct type *type, LONGEST num)
int unpack_value_field_as_long(struct type *type, const gdb_byte *valaddr, LONGEST embedded_offset, int fieldno, const struct value *val, LONGEST *result)
mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int status
htab_t create_copied_types_hash(struct objfile *objfile)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr)
const gdb_byte * value_contents_for_printing_const(const struct value *value)
struct value * value_cast(struct type *type, struct value *arg2)
#define TYPE_DATA_LOCATION_ADDR(thistype)
struct internal_function * function
gdb_byte * value_contents_all_raw(struct value *value)
static void set_max_value_size(const char *args, int from_tty, struct cmd_list_element *c)
void set_value_offset(struct value *value, LONGEST offset)
void printf_unfiltered(const char *format,...)
LONGEST value_bitpos(const struct value *value)
enum return_value_convention struct_return_convention(struct gdbarch *gdbarch, struct value *function, struct type *value_type)
struct value * frame_unwind_register_value(struct frame_info *frame, int regnum)
struct value * value_full_object(struct value *argp, struct type *rtype, int xfull, int xtop, int xusing_enc)
#define TYPE_FIELD_BITSIZE(thistype, n)
struct value * value_of_internalvar(struct gdbarch *gdbarch, struct internalvar *var)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
#define TYPE_FIELD_BITPOS(thistype, n)
struct cmd_list_element * add_alias_cmd(const char *name, cmd_list_element *old, enum command_class theclass, int abbrev_flag, struct cmd_list_element **list)
CORE_ADDR value_raw_address(const struct value *value)
void target_float_from_ulongest(gdb_byte *addr, const struct type *type, ULONGEST val)
static void ranges_copy_adjusted(VEC(range_s) **dst_range, int dst_bit_offset, VEC(range_s) *src_range, int src_bit_offset, int bit_length)
struct value * value_release_to_mark(const struct value *mark)
static void init_if_undefined_command(const char *args, int from_tty)
struct value * value_fn_field(struct value **arg1p, struct fn_field *f, int j, struct type *type, LONGEST offset)
int value_bits_synthetic_pointer(const struct value *value, LONGEST offset, LONGEST length)
PTR xrealloc(PTR ptr, size_t size)
struct internalvar_data::@191 integer
int is_floating_type(struct type *t)
void release_value_or_incref(struct value *val)
struct value * values[VALUE_HISTORY_CHUNK]
#define TYPE_FN_FIELD_TYPE(thisfn, n)
struct value * allocate_repeat_value(struct type *type, int count)
int value_entirely_available(struct value *value)
void free_all_values(void)
struct value * value_from_pointer(struct type *type, CORE_ADDR addr)
static LONGEST read_offset(bfd *, const gdb_byte *, const struct comp_unit_head *, unsigned int *)
struct type * make_cv_type(int cnst, int voltl, struct type *type, struct type **typeptr)
const struct language_defn * current_language
int value_optimized_out(struct value *value)
#define TYPE_TARGET_TYPE(thistype)
void value_fetch_lazy(struct value *val)
char * value_internal_function_name(struct value *val)
void mark_value_bytes_optimized_out(struct value *value, int offset, int length)
static int max_value_size
int frame_relative_level(struct frame_info *fi)
#define SYMBOL_BLOCK_VALUE(symbol)
#define TYPE_CODE(thistype)
void set_internalvar_string(struct internalvar *var, const char *string)
struct type * resolve_dynamic_type(struct type *type, const gdb_byte *valaddr, CORE_ADDR addr)
void _initialize_values(void)
struct value * value_of_variable(struct symbol *var, const struct block *b)
void value_contents_copy(struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length)
struct minimal_symbol * minsym
void set_internalvar_integer(struct internalvar *var, LONGEST l)
void get_user_print_options(struct value_print_options *opts)
struct bound_minimal_symbol lookup_bound_minimal_symbol(const char *name)
bool target_float_is_valid(const gdb_byte *addr, const struct type *type)
void set_value_pointed_to_offset(struct value *value, LONGEST val)
static struct internal_function * create_internal_function(const char *name, internal_function_fn handler, void *cookie)
void add_completion(gdb::unique_xmalloc_ptr< char > name, completion_match_for_lcd *match_for_lcd=NULL, const char *text=NULL, const char *word=NULL)
void clear_internalvar(struct internalvar *var)
LONGEST value_pointed_to_offset(const struct value *value)
static LONGEST extract_signed_integer(const gdb_byte *addr, int len, enum bfd_endian byte_order)
void add_internal_function(const char *name, const char *doc, internal_function_fn handler, void *cookie)
static int get_internalvar_function(struct internalvar *var, struct internal_function **result)
void complete_internalvar(completion_tracker &tracker, const char *name)
void value_free_to_mark(const struct value *mark)
void error_value_optimized_out(void)
static int find_first_range_overlap_and_match(struct ranges_and_idx *rp1, struct ranges_and_idx *rp2, LONGEST offset1, LONGEST offset2, LONGEST length, ULONGEST *l, ULONGEST *h)
int record_latest_value(struct value *val)
void set_value_stack(struct value *value, int val)
const struct lval_funcs * funcs
void set_value_bitsize(struct value *value, LONGEST bit)
struct value * value_parent(const struct value *value)
int gdbarch_bits_big_endian(struct gdbarch *gdbarch)
void(* destroy)(void *data)
LONGEST pointed_to_offset
unsigned long long ULONGEST
struct value * value_field_bitfield(struct type *type, int fieldno, const gdb_byte *valaddr, LONGEST embedded_offset, const struct value *val)
static int ignore(struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
expression_up parse_expression(const char *)
void release_value(struct value *val)
int register_size(struct gdbarch *gdbarch, int regnum)
static void check_type_length_before_alloc(const struct type *type)
void value_force_lval(struct value *v, CORE_ADDR addr)
struct value * value_primitive_field(struct value *arg1, LONGEST offset, int fieldno, struct type *arg_type)
struct trace_state_variable * find_trace_state_variable(const char *name)
struct type * value_type(const struct value *value)
void(* free_closure)(struct value *v)
int * deprecated_value_regnum_hack(struct value *value)
struct value * access_value_history(int num)
struct value * value_from_ulongest(struct type *type, ULONGEST num)
CORE_ADDR value_as_address(struct value *val)
void value_contents_copy_raw(struct value *dst, LONGEST dst_offset, struct value *src, LONGEST src_offset, LONGEST length)
#define TYPE_FIELD_STATIC_PHYSADDR(thistype, n)
gdb_byte * value_contents_raw(struct value *value)
#define VEC_safe_insert(T, V, I, O)
#define TYPE_LENGTH(thistype)
void store_typed_address(gdb_byte *buf, struct type *type, CORE_ADDR addr)
static void preserve_one_internalvar(struct internalvar *var, struct objfile *objfile, htab_t copied_types)
struct value * readjust_indirect_value_type(struct value *value, struct type *enc_type, const struct type *original_type, const struct value *original_value)
struct value * value_cstring(const char *ptr, ssize_t len, struct type *char_type)
struct gdbarch * get_value_arch(const struct value *value)
static int value_entirely_covered_by_range_vector(struct value *value, VEC(range_s) **ranges)
struct value * allocate_optimized_out_value(struct type *type)
LONGEST target_float_to_longest(const gdb_byte *addr, const struct type *type)
void write_memory(CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
struct cmd_list_element * add_com(const char *name, enum command_class theclass, cmd_const_cfunc_ftype *fun, const char *doc)
#define TYPE_FIELD_LOC_KIND(thistype, n)
CORE_ADDR value_address(const struct value *value)
struct bound_minimal_symbol lookup_minimal_symbol(const char *name, const char *sfile, struct objfile *objf)
struct value * value_from_component(struct value *whole, struct type *type, LONGEST offset)
void pack_long(gdb_byte *buf, struct type *type, LONGEST num)
enum bfd_endian byte_order
void set_value_bitpos(struct value *value, LONGEST bit)
struct internalvar * create_internalvar_type_lazy(const char *name, const struct internalvar_funcs *funcs, void *data)
int value_entirely_unavailable(struct value *value)
struct type * value_actual_type(struct value *value, int resolve_simple_types, int *real_type_found)
void add_setshow_zuinteger_unlimited_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_const_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
static void store_signed_integer(gdb_byte *addr, int len, enum bfd_endian byte_order, LONGEST val)
void error(const char *fmt,...)
struct value * value_from_history_ref(const char *h, const char **endp)
static void require_available(const struct value *value)
struct type * lookup_pointer_type(struct type *type)
struct gdbarch * get_frame_arch(struct frame_info *this_frame)
void throw_error(enum errors error, const char *fmt,...)
bool is_floating_value(struct value *val)
struct internalvar * internalvar
struct type * enclosing_type
void set_value_component_location(struct value *component, const struct value *whole)
static int ranges_contain(VEC(range_s) *ranges, LONGEST offset, LONGEST length)
static void store_unsigned_integer(gdb_byte *addr, int len, enum bfd_endian byte_order, ULONGEST val)
void modify_field(struct type *type, gdb_byte *addr, LONGEST fieldval, LONGEST bitpos, LONGEST bitsize)
struct type * value_rtti_indirect_type(struct value *v, int *full, LONGEST *top, int *using_enc)
const struct lval_funcs * value_computed_funcs(const struct value *v)
LONGEST parse_and_eval_long(const char *exp)