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

Side by Side Diff: runtime/vm/debugger.cc

Issue 1232193003: Provide stdout and stderr output in the Observatory debugger. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tidy up Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void Debugger::SignalIsolateInterrupted() { 317 void Debugger::SignalIsolateInterrupted() {
318 if (HasEventHandler()) { 318 if (HasEventHandler()) {
319 Debugger* debugger = Isolate::Current()->debugger(); 319 Debugger* debugger = Isolate::Current()->debugger();
320 debugger->SignalIsolateEvent(DebuggerEvent::kIsolateInterrupted); 320 debugger->SignalIsolateEvent(DebuggerEvent::kIsolateInterrupted);
321 } 321 }
322 } 322 }
323 323
324 324
325 // The vm service handles breakpoint notifications in a different way 325 // The vm service handles breakpoint notifications in a different way
326 // than the regular debugger breakpoint notifications. 326 // than the regular debugger breakpoint notifications.
327 static void SendServiceBreakpointEvent(ServiceEvent::EventType type, 327 static void SendServiceBreakpointEvent(ServiceEvent::EventKind kind,
328 Breakpoint* bpt) { 328 Breakpoint* bpt) {
329 if (Service::NeedsDebugEvents()) { 329 if (Service::NeedsDebugEvents()) {
330 ServiceEvent service_event(Isolate::Current(), type); 330 ServiceEvent service_event(Isolate::Current(), kind);
331 service_event.set_breakpoint(bpt); 331 service_event.set_breakpoint(bpt);
332 Service::HandleEvent(&service_event); 332 Service::HandleEvent(&service_event);
333 } 333 }
334 } 334 }
335 335
336 336
337 void BreakpointLocation::AddBreakpoint(Breakpoint* bpt, Debugger* dbg) { 337 void BreakpointLocation::AddBreakpoint(Breakpoint* bpt, Debugger* dbg) {
338 bpt->set_next(breakpoints()); 338 bpt->set_next(breakpoints());
339 set_breakpoints(bpt); 339 set_breakpoints(bpt);
340 340
(...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2991 } 2991 }
2992 2992
2993 2993
2994 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2994 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2995 ASSERT(bpt->next() == NULL); 2995 ASSERT(bpt->next() == NULL);
2996 bpt->set_next(code_breakpoints_); 2996 bpt->set_next(code_breakpoints_);
2997 code_breakpoints_ = bpt; 2997 code_breakpoints_ = bpt;
2998 } 2998 }
2999 2999
3000 } // namespace dart 3000 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698