Index: runtime/vm/service_event.h |
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h |
index 3ca26e40a97c12f41b7b27c615178d0643afccd6..b959695ceb72f626b9679d5bddfddba603a051a7 100644 |
--- a/runtime/vm/service_event.h |
+++ b/runtime/vm/service_event.h |
@@ -17,11 +17,11 @@ class ServiceEvent { |
enum EventKind { |
kVMUpdate, // VM identity information has changed |
- kIsolateStart, // New isolate has started |
- kIsolateRunnable, // Isolate is ready to run |
- kIsolateExit, // Isolate has exited |
- kIsolateUpdate, // Isolate identity information has changed |
- |
+ kIsolateStart, // New isolate has started |
+ kIsolateRunnable, // Isolate is ready to run |
+ kIsolateExit, // Isolate has exited |
+ kIsolateUpdate, // Isolate identity information has changed |
+ kIsolateReload, // Result of a reload request |
kServiceExtensionAdded, // A service extension was registered |
kPauseStart, // --pause-isolates-on-start |
@@ -138,6 +138,15 @@ class ServiceEvent { |
exception_ = exception; |
} |
+ const Error* reload_error() const { |
+ ASSERT(kind_ == kIsolateReload); |
+ return reload_error_; |
+ } |
+ void set_reload_error(const Error* error) { |
+ ASSERT(kind_ == kIsolateReload); |
+ reload_error_ = error; |
+ } |
+ |
bool at_async_jump() const { |
return at_async_jump_; |
} |
@@ -209,6 +218,7 @@ class ServiceEvent { |
const TimelineEventBlock* timeline_event_block_; |
const String* extension_rpc_; |
const Object* exception_; |
+ const Error* reload_error_; |
bool at_async_jump_; |
const Object* inspectee_; |
const Heap::GCStats* gc_stats_; |