Index: src/debug/arm/debug-arm.cc |
diff --git a/src/debug/arm/debug-arm.cc b/src/debug/arm/debug-arm.cc |
index 2d4cbf13d76ddd145760f7be49d80f82a9bf344d..5fdda4fedc34144011441d4165f8db5372f78489 100644 |
--- a/src/debug/arm/debug-arm.cc |
+++ b/src/debug/arm/debug-arm.cc |
@@ -62,6 +62,10 @@ void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, |
patcher.masm()->blx(ip); |
} |
+bool DebugCodegen::DebugBreakSlotIsPatched(Address pc) { |
+ Instr current_instr = Assembler::instr_at(pc); |
+ return !Assembler::IsNop(current_instr, Assembler::DEBUG_BREAK_NOP); |
+} |
void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, |
DebugBreakCallHelperMode mode) { |