Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAnton Leherbauer2011-04-08 09:13:26 -0400
committerAnton Leherbauer2011-04-08 09:13:26 -0400
commitcd23b6b5b5ff52dfaa060b1482556390909ba50b (patch)
tree2a78e2409a516f82dd070acd9e79eb36b4293921 /dsf
parentc2a6ef0d6bb5b2d78378469216060a05e7a08daf (diff)
downloadorg.eclipse.cdt-cd23b6b5b5ff52dfaa060b1482556390909ba50b.tar.gz
org.eclipse.cdt-cd23b6b5b5ff52dfaa060b1482556390909ba50b.tar.xz
org.eclipse.cdt-cd23b6b5b5ff52dfaa060b1482556390909ba50b.zip
Bug 332288 - [disassembly] Source lookup problems are logged multiple times for the same file
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java5
1 files changed, 4 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 97e089cbaa..aeb28f8607 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
@@ -2879,7 +2879,10 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
}
fFile2Storage.put(file, sourceElement);
} else if (sourceElement == null) {
- logWarning(DisassemblyMessages.Disassembly_log_error_locateFile+file, null);
+ if (!fFile2Storage.containsKey(file)) {
+ logWarning(DisassemblyMessages.Disassembly_log_error_locateFile+file, null);
+ fFile2Storage.put(file, null);
+ }
} else {
fFile2Storage.put(file, null);
assert false : "missing support for source element of type " + sourceElement.getClass().toString(); //$NON-NLS-1$

Back to the top