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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugTarget.java

Issue 322303002: Version 1.5.0-dev.4.6 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugTarget.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugTarget.java (revision 37220)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugTarget.java (working copy)
@@ -71,9 +71,7 @@
private ServerBreakpointManager breakpointManager;
- // TODO(devoncarew): this "main" isolate is temporary, until the VM allows us to
- // set wildcard breakpoints across all isolates.
- private VmIsolate mainIsolate;
+ private VmIsolate currentIsolate;
private IProject currentProject;
@@ -201,6 +199,8 @@
@Override
public void debuggerPaused(PausedReason reason, VmIsolate isolate, List<VmCallFrame> frames,
VmValue exception) {
+ currentIsolate = isolate;
+
boolean resumed = false;
if (firstBreak) {
@@ -319,10 +319,6 @@
@Override
public void isolateCreated(VmIsolate isolate) {
- if (mainIsolate == null) {
- mainIsolate = isolate;
- }
-
addThread(new ServerDebugThread(this, isolate));
}
@@ -408,9 +404,8 @@
return getBreakpointFor(frame.getLocation());
}
- // TODO(devoncarew): the concept of a main isolate needs to go away
- protected VmIsolate getMainIsolate() {
- return mainIsolate;
+ protected VmIsolate getCurrentIsolate() {
+ return currentIsolate;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698