aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-12-01 11:27:25 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-12-14 16:04:49 +0000
commit9fc79b423697825f7afcb4f1143edd3827711c4c (patch)
treedd9209b57792b9cc1a78ffcef2b113c2d700937a /gdb/valops.c
parent534dcbcb80957fffe9d9d55b02b5c9db20002bcf (diff)
downloadbinutils-9fc79b423697825f7afcb4f1143edd3827711c4c.zip
binutils-9fc79b423697825f7afcb4f1143edd3827711c4c.tar.gz
binutils-9fc79b423697825f7afcb4f1143edd3827711c4c.tar.bz2
gdb: make get_frame_register_bytes take the next frame
Similar to the previous patches, change get_frame_register_bytes to take the "next frame" instead of "this frame". Change-Id: Ie8f35042bfa6e93565fcefaee71b6b3903f0fe9f Reviewed-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index eb30a52..21b0106 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1227,8 +1227,7 @@ value_assign (struct value *toval, struct value *fromval)
"don't fit in a %d bit word."),
(int) sizeof (LONGEST) * HOST_CHAR_BIT);
- if (!get_frame_register_bytes (get_prev_frame_always (next_frame),
- value_reg, offset,
+ if (!get_frame_register_bytes (next_frame, value_reg, offset,
{ buffer, changed_len }, &optim,
&unavail))
{