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

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

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 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 18 matching lines...) Expand all
29 29
30 RawFunction* function() const { return function_; } 30 RawFunction* function() const { return function_; }
31 intptr_t token_pos() const { return token_pos_; } 31 intptr_t token_pos() const { return token_pos_; }
32 void set_token_pos(intptr_t value) { token_pos_ = value; } 32 void set_token_pos(intptr_t value) { token_pos_ = value; }
33 intptr_t id() const { return id_; } 33 intptr_t id() const { return id_; }
34 34
35 RawScript* SourceCode(); 35 RawScript* SourceCode();
36 RawString* SourceUrl(); 36 RawString* SourceUrl();
37 intptr_t LineNumber(); 37 intptr_t LineNumber();
38 38
39 void GetCodeLocation(Library* lib, Script* script, intptr_t* token_pos); 39 void GetCodeLocation(Library* lib,
40 Script* script,
41 intptr_t* token_pos) const;
40 42
41 void Enable(); 43 void Enable();
42 void Disable(); 44 void Disable();
43 bool IsEnabled() const { return is_enabled_; } 45 bool IsEnabled() const { return is_enabled_; }
44 46
47 void PrintToJSONStream(JSONStream* stream) const;
hausner 2013/12/17 21:04:33 Should you import the header that defines JSONStre
turnidge 2013/12/17 21:50:01 Header is now included in the .cc file. I have pu
48
45 private: 49 private:
46 void VisitObjectPointers(ObjectPointerVisitor* visitor); 50 void VisitObjectPointers(ObjectPointerVisitor* visitor);
47 51
48 void set_function(const Function& func); 52 void set_function(const Function& func);
49 void set_next(SourceBreakpoint* value) { next_ = value; } 53 void set_next(SourceBreakpoint* value) { next_ = value; }
50 SourceBreakpoint* next() const { return this->next_; } 54 SourceBreakpoint* next() const { return this->next_; }
51 55
52 const intptr_t id_; 56 const intptr_t id_;
53 RawFunction* function_; 57 RawFunction* function_;
54 intptr_t token_pos_; 58 intptr_t token_pos_;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 const String& field_name); 350 const String& field_name);
347 351
348 void SignalBpReached(); 352 void SignalBpReached();
349 void SingleStepCallback(); 353 void SingleStepCallback();
350 354
351 void SignalExceptionThrown(const Instance& exc); 355 void SignalExceptionThrown(const Instance& exc);
352 static void SignalIsolateEvent(EventType type); 356 static void SignalIsolateEvent(EventType type);
353 357
354 uword GetPatchedStubAddress(uword breakpoint_address); 358 uword GetPatchedStubAddress(uword breakpoint_address);
355 359
360 void PrintBreakpointsToJSONArray(JSONArray* jsarr) const;
hausner 2013/12/17 21:04:33 ditto
turnidge 2013/12/17 21:50:01 Done.
361
356 static bool IsDebuggable(const Function& func); 362 static bool IsDebuggable(const Function& func);
357 363
358 private: 364 private:
359 enum ResumeAction { 365 enum ResumeAction {
360 kContinue, 366 kContinue,
361 kStepOver, 367 kStepOver,
362 kStepOut, 368 kStepOut,
363 kSingleStep 369 kSingleStep
364 }; 370 };
365 371
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 452
447 friend class Isolate; 453 friend class Isolate;
448 friend class SourceBreakpoint; 454 friend class SourceBreakpoint;
449 DISALLOW_COPY_AND_ASSIGN(Debugger); 455 DISALLOW_COPY_AND_ASSIGN(Debugger);
450 }; 456 };
451 457
452 458
453 } // namespace dart 459 } // namespace dart
454 460
455 #endif // VM_DEBUGGER_H_ 461 #endif // VM_DEBUGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698