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

Unified Diff: runtime/vm/debugger.h

Issue 9572022: Support breakpoints in closures (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.h
===================================================================
--- runtime/vm/debugger.h (revision 4901)
+++ runtime/vm/debugger.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -160,9 +160,9 @@
// Array of function activations on the call stack.
-class StackTrace : public ZoneAllocated {
+class DebuggerStackTrace : public ZoneAllocated {
public:
- explicit StackTrace(int capacity) : trace_(capacity) { }
+ explicit DebuggerStackTrace(int capacity) : trace_(capacity) { }
intptr_t Length() const { return trace_.length(); }
@@ -175,11 +175,12 @@
ZoneGrowableArray<ActivationFrame*> trace_;
friend class Debugger;
- DISALLOW_COPY_AND_ASSIGN(StackTrace);
+ DISALLOW_COPY_AND_ASSIGN(DebuggerStackTrace);
};
-typedef void BreakpointHandler(SourceBreakpoint* bpt, StackTrace* stack);
+typedef void BreakpointHandler(SourceBreakpoint* bpt,
+ DebuggerStackTrace* stack);
class Debugger {
@@ -244,7 +245,8 @@
void RegisterCodeBreakpoint(CodeBreakpoint* bpt);
SourceBreakpoint* GetSourceBreakpoint(const Function& func,
intptr_t token_index);
- CodeBreakpoint* MakeCodeBreakpoint(SourceBreakpoint* src_bpt);
+ CodeBreakpoint* MakeCodeBreakpoint(const Function& func,
+ intptr_t token_index);
// Returns NULL if no breakpoint exists for the given address.
CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address);
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698