diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 14:38:30 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:16 -0700 |
commit | efaf1ae025cbef5438d2fe943dd010b773d757ac (patch) | |
tree | d51e1d379430439462d5cb1358c642e679647f12 /gdb/hppa-tdep.c | |
parent | cdf3de175d41acec85d6c3cc8b599f79658edb06 (diff) | |
download | binutils-efaf1ae025cbef5438d2fe943dd010b773d757ac.zip binutils-efaf1ae025cbef5438d2fe943dd010b773d757ac.tar.gz binutils-efaf1ae025cbef5438d2fe943dd010b773d757ac.tar.bz2 |
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>
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 08fea0c..d054e80 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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); } |