Add Debug::CancelDebugBreak method to api
authorpodivilov@chromium.org <podivilov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Sep 2010 15:09:55 +0000 (15:09 +0000)
committerpodivilov@chromium.org <podivilov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Sep 2010 15:09:55 +0000 (15:09 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5535 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

include/v8-debug.h [changed mode: 0644->0755]
src/api.cc

old mode 100644 (file)
new mode 100755 (executable)
index 414fd86..4314727
@@ -253,9 +253,12 @@ class EXPORT Debug {
   static bool SetDebugEventListener(v8::Handle<v8::Object> that,
                                     Handle<Value> data = Handle<Value>());
 
-  // 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
index 5f480c9..344e9d7 100644 (file)
@@ -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);