Index: runtime/vm/debugger.cc |
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc |
index b23640b88bf3c98ccce5628ccb13de74d085bf50..98ba585180ccaa8102b7514ec7985478c0149450 100644 |
--- a/runtime/vm/debugger.cc |
+++ b/runtime/vm/debugger.cc |
@@ -1065,7 +1065,9 @@ void Debugger::Shutdown() { |
delete bpt; |
} |
// Signal isolate shutdown event. |
- SignalIsolateEvent(DebuggerEvent::kIsolateShutdown); |
+ if (!Service::IsServiceIsolate(isolate_)) { |
+ SignalIsolateEvent(DebuggerEvent::kIsolateShutdown); |
+ } |
} |
@@ -2252,8 +2254,9 @@ void Debugger::Initialize(Isolate* isolate) { |
return; |
} |
isolate_ = isolate; |
+ |
// Use the isolate's control port as the isolate_id for debugging. |
- // This port will be used as a unique ID to represet the isolate in the |
+ // This port will be used as a unique ID to represent the isolate in the |
// debugger wire protocol messages. |
isolate_id_ = isolate->main_port(); |
initialized_ = true; |
@@ -2262,7 +2265,9 @@ void Debugger::Initialize(Isolate* isolate) { |
void Debugger::NotifyIsolateCreated() { |
// Signal isolate creation event. |
- SignalIsolateEvent(DebuggerEvent::kIsolateCreated); |
+ if (!Service::IsServiceIsolate(isolate_)) { |
+ SignalIsolateEvent(DebuggerEvent::kIsolateCreated); |
+ } |
} |