Index: runtime/vm/debugger.h |
diff --git a/runtime/vm/debugger.h b/runtime/vm/debugger.h |
index 7c6a7b7138926ebb13ec6b825ad8bce47db6538c..b257a821043f4ef6becfa1551883ed8d037f3182 100644 |
--- a/runtime/vm/debugger.h |
+++ b/runtime/vm/debugger.h |
@@ -515,7 +515,9 @@ class Debugger { |
// Returns true if there is at least one breakpoint set in func or code. |
// Checks for both user-defined and internal temporary breakpoints. |
- bool HasBreakpoint(const Function& func); |
+ // This may be called from different threads, therefore do not use the, |
+ // debugger's zone. |
+ bool HasBreakpoint(const Function& func, Zone* zone); |
bool HasBreakpoint(const Code& code); |
// Returns true if the call at address pc is patched to point to |
@@ -650,10 +652,6 @@ class Debugger { |
void HandleSteppingRequest(DebuggerStackTrace* stack_trace); |
- Zone* zone() const { |
- return isolate_->current_zone(); |
- } |
- |
Isolate* isolate_; |
Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. |
bool initialized_; |