gdb: pass frame_info_ptr to gdbarch_value_from_register
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Dec 2023 16:03:02 +0000 (16:03 +0000)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 24 Dec 2023 14:02:08 +0000 (09:02 -0500)
commit9f02b3a0249e61be6150ff3450726573916fca91
tree3bc14163215990f6eb9c8f666c4af6cad12362d6
parent6658f874cf7b521bf2ce431fcf31cc89aebc7009
gdb: pass frame_info_ptr to gdbarch_value_from_register

Pass a frame_info_ptr rather than a frame_id.  This avoids having to do
a frame lookup on the callee side, when we can just pass the frame down
directly.

I think this fixes a bug in rs6000-tdep.c where the id of the wrong
frame was set to `VALUE_NEXT_FRAME_ID (v)`.

Change-Id: I77039bc87ea8fc5262f16d0e1446515efa21c565
gdb/findvar.c
gdb/gdbarch-gen.h
gdb/gdbarch.c
gdb/gdbarch_components.py
gdb/rs6000-tdep.c
gdb/s390-tdep.c
gdb/value.h