Index: src/debug/mips/debug-mips.cc |
diff --git a/src/debug/mips/debug-mips.cc b/src/debug/mips/debug-mips.cc |
index 1d9f7d603705700adc7821a44d14c93471b497db..2da326c2853dcc7c74a36616da3cd607711898b8 100644 |
--- a/src/debug/mips/debug-mips.cc |
+++ b/src/debug/mips/debug-mips.cc |
@@ -114,9 +114,10 @@ void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, |
void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
// We do not know our frame height, but set sp based on fp. |
- __ Subu(sp, fp, Operand(kPointerSize)); |
+ __ lw(a1, MemOperand(fp, FrameDropperFrameConstants::kFunctionOffset)); |
- __ Pop(ra, fp, a1); // Return address, Frame, Function. |
+ // Pop return address and frame. |
+ __ LeaveFrame(StackFrame::INTERNAL); |
ParameterCount dummy(0); |
__ FloodFunctionIfStepping(a1, no_reg, dummy, dummy); |