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

Unified Diff: runtime/vm/debugger_api_impl.cc

Issue 790793006: Remove deprecated debugger code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/include/dart_debugger_api.h ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_api_impl.cc
===================================================================
--- runtime/vm/debugger_api_impl.cc (revision 42527)
+++ runtime/vm/debugger_api_impl.cc (working copy)
@@ -106,9 +106,7 @@
static Dart_ExceptionThrownHandler* exc_thrown_handler = NULL;
static Dart_IsolateEventHandler* isolate_event_handler = NULL;
-static Dart_BreakpointHandler* legacy_bp_handler = NULL;
-
static void DebuggerEventHandler(DebuggerEvent* event) {
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
@@ -116,11 +114,7 @@
Dart_EnterScope();
Dart_IsolateId isolate_id = isolate->debugger()->GetIsolateId();
if (event->type() == DebuggerEvent::kBreakpointReached) {
- if (legacy_bp_handler != NULL) {
- Dart_StackTrace stack_trace =
- reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace());
- (*legacy_bp_handler)(isolate_id, NULL, stack_trace);
- } else if (paused_event_handler != NULL) {
+ if (paused_event_handler != NULL) {
Dart_CodeLocation location;
ActivationFrame* top_frame = event->top_frame();
location.script_url = Api::NewHandle(isolate, top_frame->SourceUrl());
@@ -175,12 +169,6 @@
}
-DART_EXPORT void Dart_SetBreakpointHandler(Dart_BreakpointHandler bp_handler) {
- legacy_bp_handler = bp_handler;
- Debugger::SetEventHandler(DebuggerEventHandler);
-}
-
-
DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) {
paused_event_handler = handler;
Debugger::SetEventHandler(DebuggerEventHandler);
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698