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

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

Issue 11028040: - Add support to interrupt a running isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
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 #ifndef VM_DEBUGGER_H_ 5 #ifndef VM_DEBUGGER_H_
6 #define VM_DEBUGGER_H_ 6 #define VM_DEBUGGER_H_
7 7
8 #include "include/dart_debugger_api.h" 8 #include "include/dart_debugger_api.h"
9 9
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 private: 197 private:
198 void AddActivation(ActivationFrame* frame); 198 void AddActivation(ActivationFrame* frame);
199 ZoneGrowableArray<ActivationFrame*> trace_; 199 ZoneGrowableArray<ActivationFrame*> trace_;
200 200
201 friend class Debugger; 201 friend class Debugger;
202 DISALLOW_COPY_AND_ASSIGN(DebuggerStackTrace); 202 DISALLOW_COPY_AND_ASSIGN(DebuggerStackTrace);
203 }; 203 };
204 204
205 205
206 typedef void BreakpointHandler(SourceBreakpoint* bpt, 206 typedef void BreakpointHandler(Dart_Port isolate_id,
207 SourceBreakpoint* bpt,
207 DebuggerStackTrace* stack); 208 DebuggerStackTrace* stack);
208 209
209 210
210 class Debugger { 211 class Debugger {
211 public: 212 public:
212 enum EventType { 213 enum EventType {
213 kBreakpointReached = 1, 214 kBreakpointReached = 1,
214 kBreakpointResolved = 2, 215 kBreakpointResolved = 2,
215 kExceptionThrown = 3, 216 kExceptionThrown = 3,
216 kIsolateCreated = 4, 217 kIsolateCreated = 4,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 static EventHandler* event_handler_; 367 static EventHandler* event_handler_;
367 368
368 friend class SourceBreakpoint; 369 friend class SourceBreakpoint;
369 DISALLOW_COPY_AND_ASSIGN(Debugger); 370 DISALLOW_COPY_AND_ASSIGN(Debugger);
370 }; 371 };
371 372
372 373
373 } // namespace dart 374 } // namespace dart
374 375
375 #endif // VM_DEBUGGER_H_ 376 #endif // VM_DEBUGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698