Skip to content

Commit 8eb2fc4

Browse files
committed
fix dumb error
1 parent a1d7bf8 commit 8eb2fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,11 +1164,11 @@ ThreadStack::unwind(Process &p, const CoreRegisters &regs)
11641164

11651165
if (segment && segment->p_flags & PF_X) {
11661166
CoreRegisters newRegs = prev.regs;
1167-
stack.back().cfa = newBp; // BP is the CFA of the previous frame.
11681167

11691168
SP(newRegs) = oldBp + ELF_BYTES * 2;
11701169
IP(newRegs) = newIp;
11711170
BP(newRegs) = newBp;
1171+
stack.back().cfa = SP(newRegs);
11721172

11731173
stack.emplace_back(UnwindMechanism::FRAMEPOINTER, newRegs);
11741174
continue;

0 commit comments

Comments
 (0)