From 1a2bb70956df44e9c1dd2f06e1e98b4b7ff265d6 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Tue, 18 Jul 2023 00:35:04 -0400 Subject: [PATCH] dwarf: write the CFA as SP before the register update, in case the SP itself is updated by a column rule --- lib/std/dwarf.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/dwarf.zig b/lib/std/dwarf.zig index 1721cc2d88..6681c5501c 100644 --- a/lib/std/dwarf.zig +++ b/lib/std/dwarf.zig @@ -1810,6 +1810,7 @@ pub const DwarfInfo = struct { } } + (try abi.regValueNative(usize, context.thread_context, abi.spRegNum(context.reg_context), context.reg_context)).* = context.cfa.?; while (update_tail) |tail| { @memcpy(tail.old_value, tail.new_value); update_tail = tail.prev;