Missed a few comment changes in r1508.
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Mar 2009 07:36:52 +0000 (07:36 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Mar 2009 07:36:52 +0000 (07:36 +0000)
Review URL: http://codereview.chromium.org/42175

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1515 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/debug.cc

index 5ba5c7d..d315b64 100644 (file)
@@ -1958,7 +1958,8 @@ void DebugMessageThread::DebugEvent(v8::DebugEvent event,
     return;
   }
 
-  // Notify the debugger that a debug event has occurred.
+  // Notify the debugger that a debug event has occurred unless auto continue is
+  // active in which case no event is send.
   if (!auto_continue) {
     bool success = SetEventJSONFromEvent(event_data);
     if (!success) {
@@ -2051,7 +2052,9 @@ void DebugMessageThread::DebugEvent(v8::DebugEvent event,
     // Return the result.
     SendMessage(str);
 
-    // Return from debug event processing is VM should be running.
+    // Return from debug event processing if either the VM is put into the
+    // runnning state (through a continue command) or auto continue is active
+    // and there are no more commands queued.
     if (running || (auto_continue && !HasCommands())) {
       return;
     }