]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remove read_frame_register_value's frame parameter
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Dec 2023 16:28:19 +0000 (16:28 +0000)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 24 Dec 2023 14:02:08 +0000 (09:02 -0500)
commitc465f4303776f6609f1ca4835b4bf3627e7c61af
tree329c9362f5f9393c3799647f9f66d6a37ab214bd
parent8ada4c640ba066a0129cb8c3928f676d1f0fd917
gdb: remove read_frame_register_value's frame parameter

By now, all register struct values should have a valid next frame id
(assuming they are created using value::allocate_register or
value::allocate_register_lazy), so there should be no need to pass a
frame alongside the value to read_frame_register_value.  Remove the
frame parameter and adjust read_frame_register_value accordingly.

While at it, make read_frame_register_value static, it's only used in
findvar.c.

Change-Id: I118959ef8c628499297c67810916e8ba9934bfac
gdb/findvar.c
gdb/value.h