Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-01-22 14:41:45 -0500
committerEugene Tarassov2013-01-22 14:41:45 -0500
commitfb8cd4ed50096eff7568dd639c16df5f8008294e (patch)
treef4dbc1e17cb095238f8f33e1a31806888fa6eba7 /plugins
parent5fd7d435d485be5215730a0169906286a1f679ee (diff)
downloadorg.eclipse.tcf-fb8cd4ed50096eff7568dd639c16df5f8008294e.tar.gz
org.eclipse.tcf-fb8cd4ed50096eff7568dd639c16df5f8008294e.tar.xz
org.eclipse.tcf-fb8cd4ed50096eff7568dd639c16df5f8008294e.zip
TCF Debugger: got rid of unwanted "Channel is closed" message in the Errors log
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/ViewMemoryCommand.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/ViewMemoryCommand.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/ViewMemoryCommand.java
index 7af0d7c73..9099c406c 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/ViewMemoryCommand.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/ViewMemoryCommand.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others.
+ * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -25,6 +25,7 @@ import org.eclipse.tcf.internal.debug.ui.model.TCFNode;
import org.eclipse.tcf.internal.debug.ui.model.TCFNodeExpression;
import org.eclipse.tcf.internal.debug.ui.model.TCFNodeRegister;
import org.eclipse.tcf.internal.debug.ui.model.TCFNumberFormat;
+import org.eclipse.tcf.protocol.IChannel;
import org.eclipse.tcf.protocol.JSON;
import org.eclipse.tcf.services.IExpressions;
import org.eclipse.tcf.services.IRegisters;
@@ -125,6 +126,7 @@ public class ViewMemoryCommand extends AbstractActionDelegate {
}.get();
}
catch (Exception x) {
+ if (node.getChannel().getState() != IChannel.STATE_OPEN) return null;
Activator.log("Cannot get memory address", x);
return null;
}

Back to the top