From 584468de6c4c305eac9e89801b82406a3fdb3c3b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 1 Dec 2023 11:27:23 -0500 Subject: 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 --- gdb/mips-tdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/mips-tdep.c') diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index adaa091..dbdf8a6 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -991,8 +991,9 @@ mips_value_to_register (frame_info_ptr frame, int regnum, if (mips_convert_register_float_case_p (gdbarch, regnum, type)) { auto from_view = gdb::make_array_view (from, 8); - put_frame_register (frame, regnum, from_view.slice (4)); - put_frame_register (frame, regnum + 1, from_view.slice (0, 4)); + frame_info_ptr next_frame = get_next_frame_sentinel_okay (frame); + put_frame_register (next_frame, regnum, from_view.slice (4)); + put_frame_register (next_frame, regnum + 1, from_view.slice (0, 4)); } else if (mips_convert_register_gpreg_case_p (gdbarch, regnum, type)) { -- cgit v1.1