aboutsummaryrefslogtreecommitdiff
path: root/gdb/tramp-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tramp-frame.c')
-rw-r--r--gdb/tramp-frame.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/tramp-frame.c b/gdb/tramp-frame.c
index 5f5d1b4..b13ca51 100644
--- a/gdb/tramp-frame.c
+++ b/gdb/tramp-frame.c
@@ -102,14 +102,15 @@ tramp_frame_start (const struct tramp_frame *tramp,
{
gdb_byte buf[sizeof (tramp->insn[0])];
ULONGEST insn;
+ size_t insn_size = tramp->insn_size;
if (tramp->insn[i].bytes == TRAMP_SENTINEL_INSN)
return func;
if (!safe_frame_unwind_memory (this_frame,
- func + i * tramp->insn_size,
- buf, tramp->insn_size))
+ func + i * insn_size,
+ {buf, insn_size}))
break;
- insn = extract_unsigned_integer (buf, tramp->insn_size, byte_order);
+ insn = extract_unsigned_integer (buf, insn_size, byte_order);
if (tramp->insn[i].bytes != (insn & tramp->insn[i].mask))
break;
}