Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: runtime/include/dart_debugger_api.h

Issue 14298002: Deprecate old debugger breakpoint handler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PausedEventHandler
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.
*
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698