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

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

Issue 51793002: Add an API function to get a debugger stack trace from an error handle. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void VisitObjectPointers(ObjectPointerVisitor* visitor); 302 void VisitObjectPointers(ObjectPointerVisitor* visitor);
303 303
304 // Called from Runtime when a breakpoint in Dart code is reached. 304 // Called from Runtime when a breakpoint in Dart code is reached.
305 void BreakpointCallback(); 305 void BreakpointCallback();
306 306
307 // Returns true if there is at least one breakpoint set in func. 307 // Returns true if there is at least one breakpoint set in func.
308 // Checks for both user-defined and internal temporary breakpoints. 308 // Checks for both user-defined and internal temporary breakpoints.
309 bool HasBreakpoint(const Function& func); 309 bool HasBreakpoint(const Function& func);
310 310
311 DebuggerStackTrace* StackTrace(); 311 DebuggerStackTrace* StackTrace();
312 ExceptionStackTrace* BuildExceptionStackTrace();
rmacnak 2013/11/07 21:31:12 Ditto bad name.
312 313
313 RawArray* GetInstanceFields(const Instance& obj); 314 RawArray* GetInstanceFields(const Instance& obj);
314 RawArray* GetStaticFields(const Class& cls); 315 RawArray* GetStaticFields(const Class& cls);
315 RawArray* GetLibraryFields(const Library& lib); 316 RawArray* GetLibraryFields(const Library& lib);
316 RawArray* GetGlobalFields(const Library& lib); 317 RawArray* GetGlobalFields(const Library& lib);
317 318
318 intptr_t CacheObject(const Object& obj); 319 intptr_t CacheObject(const Object& obj);
319 RawObject* GetCachedObject(intptr_t obj_id); 320 RawObject* GetCachedObject(intptr_t obj_id);
320 bool IsValidObjectId(intptr_t obj_id); 321 bool IsValidObjectId(intptr_t obj_id);
321 322
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 433
433 friend class Isolate; 434 friend class Isolate;
434 friend class SourceBreakpoint; 435 friend class SourceBreakpoint;
435 DISALLOW_COPY_AND_ASSIGN(Debugger); 436 DISALLOW_COPY_AND_ASSIGN(Debugger);
436 }; 437 };
437 438
438 439
439 } // namespace dart 440 } // namespace dart
440 441
441 #endif // VM_DEBUGGER_H_ 442 #endif // VM_DEBUGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698