Index: runtime/vm/debugger_ia32.cc |
diff --git a/runtime/vm/debugger_ia32.cc b/runtime/vm/debugger_ia32.cc |
index 594113ed3e62b06df467de606ed248f2cb62470b..9737dce8d299457abdf4fcb8397c81751dd00e2e 100644 |
--- a/runtime/vm/debugger_ia32.cc |
+++ b/runtime/vm/debugger_ia32.cc |
@@ -50,12 +50,22 @@ void CodeBreakpoint::PatchCode() { |
WritableInstructionsScope writable(instrs.EntryPoint(), instrs.size()); |
switch (breakpoint_kind_) { |
case PcDescriptors::kIcCall: |
- case PcDescriptors::kUnoptStaticCall: |
- case PcDescriptors::kRuntimeCall: |
+ case PcDescriptors::kUnoptStaticCall: { |
+ saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code); |
+ CodePatcher::PatchStaticCallAt( |
+ pc_, code, StubCode::ICCallBreakpointEntryPoint()); |
+ break; |
+ } |
case PcDescriptors::kClosureCall: { |
saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code); |
- CodePatcher::PatchStaticCallAt(pc_, code, |
- StubCode::BreakpointRuntimeEntryPoint()); |
+ CodePatcher::PatchStaticCallAt( |
+ pc_, code, StubCode::ClosureCallBreakpointEntryPoint()); |
+ break; |
+ } |
+ case PcDescriptors::kRuntimeCall: { |
+ saved_value_ = CodePatcher::GetStaticCallTargetAt(pc_, code); |
+ CodePatcher::PatchStaticCallAt( |
+ pc_, code, StubCode::RuntimeCallBreakpointEntryPoint()); |
break; |
} |
default: |