From 80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 18 Dec 2023 15:02:47 -0500 Subject: [PATCH] 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 --- gdb/value.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 ()); -- 2.7.4