From: Simon Marchi Date: Mon, 18 Dec 2023 20:02:47 +0000 (-0500) Subject: gdb: use put_frame_register instead of put_frame_register_bytes in pseudo_to_concat_raw X-Git-Tag: upstream/2.42~499 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb;p=platform%2Fupstream%2Fbinutils.git gdb: use put_frame_register instead of put_frame_register_bytes in pseudo_to_concat_raw Here, we write single complete registers, we don't need the functionality of put_frame_register_bytes, use put_frame_register instead. Change-Id: I987867a27249db4f792a694b47ecb21c44f64d08 Approved-By: Tom Tromey --- diff --git a/gdb/value.c b/gdb/value.c index bca3fd0..7523af1 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -4123,13 +4123,13 @@ pseudo_to_concat_raw (frame_info_ptr next_frame, gdbarch *arch = frame_unwind_arch (next_frame); int raw_reg_1_size = register_size (arch, raw_reg_1_num); - put_frame_register_bytes (next_frame, raw_reg_1_num, 0, - pseudo_buf.slice (src_offset, raw_reg_1_size)); + put_frame_register (next_frame, raw_reg_1_num, + pseudo_buf.slice (src_offset, raw_reg_1_size)); src_offset += raw_reg_1_size; int raw_reg_2_size = register_size (arch, raw_reg_2_num); - put_frame_register_bytes (next_frame, raw_reg_2_num, 0, - pseudo_buf.slice (src_offset, raw_reg_2_size)); + put_frame_register (next_frame, raw_reg_2_num, + pseudo_buf.slice (src_offset, raw_reg_2_size)); src_offset += raw_reg_2_size; gdb_assert (src_offset == pseudo_buf.size ()); @@ -4177,18 +4177,18 @@ pseudo_to_concat_raw (frame_info_ptr next_frame, gdbarch *arch = frame_unwind_arch (next_frame); int raw_reg_1_size = register_size (arch, raw_reg_1_num); - put_frame_register_bytes (next_frame, raw_reg_1_num, 0, - pseudo_buf.slice (src_offset, raw_reg_1_size)); + put_frame_register (next_frame, raw_reg_1_num, + pseudo_buf.slice (src_offset, raw_reg_1_size)); src_offset += raw_reg_1_size; int raw_reg_2_size = register_size (arch, raw_reg_2_num); - put_frame_register_bytes (next_frame, raw_reg_2_num, 0, - pseudo_buf.slice (src_offset, raw_reg_2_size)); + put_frame_register (next_frame, raw_reg_2_num, + pseudo_buf.slice (src_offset, raw_reg_2_size)); src_offset += raw_reg_2_size; int raw_reg_3_size = register_size (arch, raw_reg_3_num); - put_frame_register_bytes (next_frame, raw_reg_3_num, 0, - pseudo_buf.slice (src_offset, raw_reg_3_size)); + put_frame_register (next_frame, raw_reg_3_num, + pseudo_buf.slice (src_offset, raw_reg_3_size)); src_offset += raw_reg_3_size; gdb_assert (src_offset == pseudo_buf.size ());