From 0012576e2bc8f0e35fdd88426a8c34183ed66ae3 Mon Sep 17 00:00:00 2001 From: "podivilov@chromium.org" Date: Mon, 27 Sep 2010 15:09:55 +0000 Subject: [PATCH] Add Debug::CancelDebugBreak method to api git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5535 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8-debug.h | 5 ++++- src/api.cc | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 include/v8-debug.h diff --git a/include/v8-debug.h b/include/v8-debug.h old mode 100644 new mode 100755 index 414fd86..4314727 --- a/include/v8-debug.h +++ b/include/v8-debug.h @@ -253,9 +253,12 @@ class EXPORT Debug { static bool SetDebugEventListener(v8::Handle that, Handle data = Handle()); - // Break execution of JavaScript. + // Schedule a debugger break to happen when JavaScript code is run. static void DebugBreak(); + // Remove scheduled debugger break if it has not happened yet. + static void CancelDebugBreak(); + // Break execution of JavaScript (this method can be invoked from a // non-VM thread) for further client command execution on a VM // thread. Client data is then passed in EventDetails to diff --git a/src/api.cc b/src/api.cc index 5f480c9..344e9d7 100644 --- a/src/api.cc +++ b/src/api.cc @@ -4265,6 +4265,11 @@ void Debug::DebugBreak() { } +void Debug::CancelDebugBreak() { + i::StackGuard::Continue(i::DEBUGBREAK); +} + + void Debug::DebugBreakForCommand(ClientData* data) { if (!i::V8::IsRunning()) return; i::Debugger::EnqueueDebugCommand(data); -- 2.7.4