commit 1a2bb70956df44e9c1dd2f06e1e98b4b7ff265d6 (tree)
parent 97bda56306622784b2f2e4f036d817bbe5f2025e
Author: kcbanner <kcbanner@gmail.com>
Date: Tue, 18 Jul 2023 00:35:04 -0400
dwarf: write the CFA as SP before the register update, in case the SP itself is updated by a column rule
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;