Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-03-25 06:27:39 -0400
committerTobias Schwarz2014-03-25 06:27:39 -0400
commit768664632eb82974d0b62de1b3fce7d36f956535 (patch)
treefd388ec5a141d2e03aecd84dc5a8c870ea3f76a4
parentb3da8199063bbd8e7a2666709745197017086fa7 (diff)
downloadorg.eclipse.tcf-768664632eb82974d0b62de1b3fce7d36f956535.tar.gz
org.eclipse.tcf-768664632eb82974d0b62de1b3fce7d36f956535.tar.xz
org.eclipse.tcf-768664632eb82974d0b62de1b3fce7d36f956535.zip
Target Explorer: fix source lookup validation
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
index 104515d33..b2230e3f3 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
@@ -21,6 +21,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.core.resources.IStorage;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
@@ -29,7 +30,6 @@ import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.layout.PixelConverter;
import org.eclipse.jface.resource.JFaceResources;
@@ -1052,7 +1052,7 @@ public class MemoryMapWidget {
final TCFLaunch launch = findLaunch();
if (launch != null) {
Object mapped = TCFSourceLookupDirector.lookup(launch, id, r.getFileName());
- if (!(mapped instanceof LocalFileStorage) || !((LocalFileStorage)mapped).getFile().exists()) {
+ if (!(mapped instanceof IStorage) || !((IStorage)mapped).getFullPath().toFile().exists()) {
symFileInfo = "Symbol file error: No such file or directory"; //$NON-NLS-1$
}
}

Back to the top