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

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

Issue 13940008: Add library id, location info to breakpointResolved event (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 SourceBreakpoint(intptr_t id, const Function& func, intptr_t token_pos); 27 SourceBreakpoint(intptr_t id, const Function& func, intptr_t token_pos);
28 28
29 RawFunction* function() const { return function_; } 29 RawFunction* function() const { return function_; }
30 intptr_t token_pos() const { return token_pos_; } 30 intptr_t token_pos() const { return token_pos_; }
31 intptr_t id() const { return id_; } 31 intptr_t id() const { return id_; }
32 32
33 RawScript* SourceCode(); 33 RawScript* SourceCode();
34 RawString* SourceUrl(); 34 RawString* SourceUrl();
35 intptr_t LineNumber(); 35 intptr_t LineNumber();
36 36
37 void GetCodeLocation(Library* lib, Script* script, intptr_t* token_pos);
38
37 void Enable(); 39 void Enable();
38 void Disable(); 40 void Disable();
39 bool IsEnabled() const { return is_enabled_; } 41 bool IsEnabled() const { return is_enabled_; }
40 42
41 private: 43 private:
42 void VisitObjectPointers(ObjectPointerVisitor* visitor); 44 void VisitObjectPointers(ObjectPointerVisitor* visitor);
43 45
44 void set_function(const Function& func); 46 void set_function(const Function& func);
45 void set_next(SourceBreakpoint* value) { next_ = value; } 47 void set_next(SourceBreakpoint* value) { next_ = value; }
46 SourceBreakpoint* next() const { return this->next_; } 48 SourceBreakpoint* next() const { return this->next_; }
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 384
383 friend class Isolate; 385 friend class Isolate;
384 friend class SourceBreakpoint; 386 friend class SourceBreakpoint;
385 DISALLOW_COPY_AND_ASSIGN(Debugger); 387 DISALLOW_COPY_AND_ASSIGN(Debugger);
386 }; 388 };
387 389
388 390
389 } // namespace dart 391 } // namespace dart
390 392
391 #endif // VM_DEBUGGER_H_ 393 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698