| Index: runtime/vm/debugger.cc
|
| diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
|
| index 8cfa2078f5280cca1efb8c0e4bb84fa751962b85..47283057d34d48ba732ab9e6484821e37118b920 100644
|
| --- a/runtime/vm/debugger.cc
|
| +++ b/runtime/vm/debugger.cc
|
| @@ -1066,7 +1066,9 @@ void Debugger::Shutdown() {
|
| delete bpt;
|
| }
|
| // Signal isolate shutdown event.
|
| - SignalIsolateEvent(DebuggerEvent::kIsolateShutdown);
|
| + if (!Service::IsServiceIsolate(isolate_)) {
|
| + SignalIsolateEvent(DebuggerEvent::kIsolateShutdown);
|
| + }
|
| }
|
|
|
|
|
| @@ -2254,8 +2256,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;
|
| @@ -2264,7 +2267,9 @@ void Debugger::Initialize(Isolate* isolate) {
|
|
|
| void Debugger::NotifyIsolateCreated() {
|
| // Signal isolate creation event.
|
| - SignalIsolateEvent(DebuggerEvent::kIsolateCreated);
|
| + if (!Service::IsServiceIsolate(isolate_)) {
|
| + SignalIsolateEvent(DebuggerEvent::kIsolateCreated);
|
| + }
|
| }
|
|
|
|
|
|
|