diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-12-18 15:02:47 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-12-19 11:11:34 -0500 |
commit | 80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb (patch) | |
tree | acc78e82ad5657dea2b9b9e18ee1c68de8eb8880 /gdb | |
parent | f00c5474efae435e6680afa86a075cd212222ebe (diff) | |
download | gdb-80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb.zip gdb-80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb.tar.gz gdb-80d2ef0c44bb56e9de7ca2939643ae5269b9e9eb.tar.bz2 |
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 <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/value.c | 20 |
1 files 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 ()); |