diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java index ea3e5d83883..753e5571d37 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java @@ -80,8 +80,11 @@ public class MapEntrySourceContainer extends AbstractSourceContainer { } // also check for device or UNC + int firstSep = path.indexOf("/"); //$NON-NLS-1$ int idx = path.indexOf(":"); //$NON-NLS-1$ - if (idx > 0) { + // ':' indicates a Windows device separator if it comes before + // the first segment separator + if (idx > 0 && (firstSep < 0 || idx < firstSep)) { String device = path.substring(0, idx + 1); path = path.substring(idx + 1); return new Path(path).setDevice(device);