1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Bug 332288 - [disassembly] Source lookup problems are logged multiple times for the same file

This commit is contained in:
Anton Leherbauer 2011-04-08 13:13:26 +00:00
parent c2a6ef0d6b
commit cd23b6b5b5

View file

@ -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$