Reviewers: Søren Gjesse,
Description:
Add Debug::CancelDebugBreak method to api
Please review this at http://codereview.chromium.org/3499006/show
Affected files:
M include/v8-debug.h
M src/api.cc
Index: include/v8-debug.h
diff --git a/include/v8-debug.h b/include/v8-debug.h
index
414fd8622a49db23c4ff227c74f8a61d718044bc..2b5fee4c5585dbeacd0c7df0b8fe2761e7ac4827
100644
--- a/include/v8-debug.h
+++ b/include/v8-debug.h
@@ -255,6 +255,7 @@ class EXPORT Debug {
// Break execution of JavaScript.
static void DebugBreak();
+ 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
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index
47105573fda7f763ff1abc0f31d98887703272f5..7f7eb537bbbd91dcf94596681d1f328e4b1b26cc
100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4246,6 +4246,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);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev