Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAnton Leherbauer2011-04-12 06:36:42 -0400
committerAnton Leherbauer2011-04-12 06:36:42 -0400
commite1cfb22cbae6f8258036b8c8cb1ac4613e19b8bd (patch)
tree868bf0509f9c8e0e8cd0c9329fda3682faaeb6d5 /dsf
parent9b7e344590c0c18f739c9b96e6bf2ac0de7721a2 (diff)
downloadorg.eclipse.cdt-e1cfb22cbae6f8258036b8c8cb1ac4613e19b8bd.tar.gz
org.eclipse.cdt-e1cfb22cbae6f8258036b8c8cb1ac4613e19b8bd.tar.xz
org.eclipse.cdt-e1cfb22cbae6f8258036b8c8cb1ac4613e19b8bd.zip
Bug 342535 - [disassembly] Don't resolve files to an inaccessible resource
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
index aeb28f8607..ebb53ddc17 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
@@ -2872,7 +2872,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
final IPath location= ((IStorage) sourceElement).getFullPath();
if (location != null) {
IFile iFile = ResourceLookup.selectFileForLocation(location, null);
- if (iFile != null) {
+ if (iFile != null && iFile.isAccessible()) {
sourceElement = iFile;
}
}

Back to the top