gdb: make put_frame_register take the next frame

Similar to the previous patches, change put_frame_register to take the
"next frame" instead of "this frame".

Change-Id: I062fd4663b8f54f0fc7bbf39c860b7341363821b
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
This commit is contained in:
Simon Marchi
2023-12-01 11:27:23 -05:00
parent 2461802cbe
commit 584468de6c
9 changed files with 24 additions and 19 deletions

View File

@@ -269,8 +269,9 @@ alpha_value_to_register (frame_info_ptr frame, int regnum,
gdb_byte out[ALPHA_REGISTER_SIZE];
alpha_lds (get_frame_arch (frame), out, in);
auto out_view = gdb::make_array_view (out, reg_size);
put_frame_register (frame, regnum, out_view);
put_frame_register (get_next_frame_sentinel_okay (frame), regnum, out_view);
}