forked from Imagelibrary/binutils-gdb
Turn remaining value_contents functions into methods
This turns the remaining value_contents functions -- value_contents, value_contents_all, value_contents_for_printing, and value_contents_for_printing_const -- into methods of value. It also converts the static functions require_not_optimized_out and require_available to be private methods. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -745,7 +745,7 @@ hppa32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
struct_ptr += align_up (type->length (), 8);
|
||||
if (write_pass)
|
||||
write_memory (struct_end - struct_ptr,
|
||||
value_contents (arg).data (), type->length ());
|
||||
arg->contents ().data (), type->length ());
|
||||
store_unsigned_integer (param_val, 4, byte_order,
|
||||
struct_end - struct_ptr);
|
||||
}
|
||||
@@ -757,13 +757,13 @@ hppa32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
param_len = align_up (type->length (), 4);
|
||||
store_unsigned_integer
|
||||
(param_val, param_len, byte_order,
|
||||
unpack_long (type, value_contents (arg).data ()));
|
||||
unpack_long (type, arg->contents ().data ()));
|
||||
}
|
||||
else if (type->code () == TYPE_CODE_FLT)
|
||||
{
|
||||
/* Floating point value store, right aligned. */
|
||||
param_len = align_up (type->length (), 4);
|
||||
memcpy (param_val, value_contents (arg).data (), param_len);
|
||||
memcpy (param_val, arg->contents ().data (), param_len);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -771,7 +771,7 @@ hppa32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
|
||||
/* Small struct value are stored right-aligned. */
|
||||
memcpy (param_val + param_len - type->length (),
|
||||
value_contents (arg).data (), type->length ());
|
||||
arg->contents ().data (), type->length ());
|
||||
|
||||
/* Structures of size 5, 6 and 7 bytes are special in that
|
||||
the higher-ordered word is stored in the lower-ordered
|
||||
@@ -1027,7 +1027,7 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
the right halves of the floating point registers;
|
||||
the left halves are unused." */
|
||||
regcache->cooked_write_part (regnum, offset % 8, len,
|
||||
value_contents (arg).data ());
|
||||
arg->contents ().data ());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1051,7 +1051,7 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
{
|
||||
ULONGEST codeptr, fptr;
|
||||
|
||||
codeptr = unpack_long (type, value_contents (arg).data ());
|
||||
codeptr = unpack_long (type, arg->contents ().data ());
|
||||
fptr = hppa64_convert_code_addr_to_fptr (gdbarch, codeptr);
|
||||
store_unsigned_integer (fptrbuf, type->length (), byte_order,
|
||||
fptr);
|
||||
@@ -1059,7 +1059,7 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
}
|
||||
else
|
||||
{
|
||||
valbuf = value_contents (arg).data ();
|
||||
valbuf = arg->contents ().data ();
|
||||
}
|
||||
|
||||
/* Always store the argument in memory. */
|
||||
@@ -2722,7 +2722,7 @@ hppa_frame_prev_register_helper (frame_info_ptr this_frame,
|
||||
trad_frame_get_prev_register (this_frame, saved_regs,
|
||||
HPPA_PCOQ_HEAD_REGNUM);
|
||||
|
||||
pc = extract_unsigned_integer (value_contents_all (pcoq_val).data (),
|
||||
pc = extract_unsigned_integer (pcoq_val->contents_all ().data (),
|
||||
size, byte_order);
|
||||
return frame_unwind_got_constant (this_frame, regnum, pc + 4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user