diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 07b0764806b..f923c97f656 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,8 @@ +2005-06-28 Mikhail Khodjaiants + Bug 101188: Breakpoints don't work with MingW gdb. + Use "toPortableString" instead of "toOsString" when setting the source search paths. + * CDebugTarget.java + 2005-06-27 Alain Magloire Change in ICDIReferenceValue. * cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIReferenceValue.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java index a09ca510e08..00c86c51ede 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java @@ -94,8 +94,10 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResourceChangeListener; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; +import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Preferences; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; @@ -1729,17 +1731,19 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv if ( containers[i] instanceof ProjectSourceContainer ) { IProject project = ((ProjectSourceContainer)containers[i]).getProject(); if ( project != null && project.exists() ) - list.add( project.getLocation().toOSString() ); + list.add( project.getLocation().toPortableString() ); } if ( containers[i] instanceof FolderSourceContainer ) { IContainer container = ((FolderSourceContainer)containers[i]).getContainer(); if ( container != null && container.exists() ) - list.add( container.getLocation().toOSString() ); + list.add( container.getLocation().toPortableString() ); } if ( containers[i] instanceof CDirectorySourceContainer ) { File dir = ((CDirectorySourceContainer)containers[i]).getDirectory(); - if ( dir != null && dir.exists() ) - list.add( dir.getAbsolutePath() ); + if ( dir != null && dir.exists() ) { + IPath path = new Path( dir.getAbsolutePath() ); + list.add( path.toPortableString() ); + } } if ( containers[i].isComposite() ) { try {