dwarf: write the CFA as SP before the register update, in case the SP itself is updated by a column rule

This commit is contained in:
kcbanner 2023-07-18 00:35:04 -04:00
parent 97bda56306
commit 1a2bb70956

View File

@ -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;