Chromium Code Reviews| Index: runtime/include/dart_debugger_api.h |
| =================================================================== |
| --- runtime/include/dart_debugger_api.h (revision 21556) |
| +++ runtime/include/dart_debugger_api.h (working copy) |
| @@ -25,6 +25,7 @@ |
| */ |
| #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT |
| +// DEPRECATED -- use Dart_PauesedEventHandler |
|
Tom Ball
2013/04/16 18:50:35
sb Dart_PausedEventHandler
hausner
2013/04/18 00:02:39
Must be my accent :)
|
| typedef void Dart_BreakpointHandler(Dart_IsolateId isolate_id, |
| Dart_Breakpoint breakpoint, |
| Dart_StackTrace stack_trace); |
| @@ -58,6 +59,10 @@ |
| typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id, |
| Dart_IsolateEvent kind); |
| +typedef void Dart_PausedEventHandler(Dart_IsolateId isolate_id, |
| + const Dart_CodeLocation& location); |
| + |
| + |
| /** |
| * 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 |
| @@ -276,6 +281,8 @@ |
| /** |
| + * DEPRECATED -- use Dart_SetPausedEventHandler |
| + * |
| * Installs a handler callback function that gets called by the VM |
| * when a breakpoint has been reached. |
| * |
| @@ -284,7 +291,18 @@ |
| DART_EXPORT void Dart_SetBreakpointHandler( |
| Dart_BreakpointHandler bp_handler); |
| + |
| /** |
| + * Installs a handler callback function that gets called by the VM |
| + * when a breakpoint location has been reached or when stepping. |
| + * |
| + * Requires there to be a current isolate. |
| + */ |
| +DART_EXPORT void Dart_SetPausedEventHandler( |
| + Dart_PausedEventHandler handler); |
| + |
| + |
| +/** |
| * Installs a callback function that gets called by the VM when |
| * a breakpoint has been resolved to an actual url and line number. |
| * |