| Index: include/dart_debugger_api.h
|
| ===================================================================
|
| --- include/dart_debugger_api.h (revision 13083)
|
| +++ include/dart_debugger_api.h (working copy)
|
| @@ -26,7 +26,15 @@
|
| Dart_Handle exception_object,
|
| Dart_StackTrace stack_trace);
|
|
|
| +typedef enum {
|
| + kCreated = 0,
|
| + kInterrupted,
|
| + kShutdown,
|
| +} Dart_IsolateEvent;
|
|
|
| +typedef void Dart_IsolateEventHandler(Dart_Isolate isolate,
|
| + Dart_IsolateEvent kind);
|
| +
|
| /**
|
| * Caches a given \object and returns an object id. The object id is only
|
| * valid while the VM is paused. The cache is invalidated when the VM
|
| @@ -287,6 +295,14 @@
|
| DART_EXPORT void Dart_SetExceptionThrownHandler(
|
| Dart_ExceptionThrownHandler handler);
|
|
|
| +/**
|
| + * Installs a callback function that gets called by the VM when
|
| + * an isolate event happens, e.g:
|
| + * - creation of a new isolate
|
| + * - shutdown of an isolate
|
| + * - interruption of an isolate
|
| + */
|
| +DART_EXPORT void Dart_SetIsolateEventHandler(Dart_IsolateEventHandler handler);
|
|
|
| // On which exceptions to pause.
|
| typedef enum {
|
|
|