mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 101188: Breakpoints don't work with MingW gdb. Use "toPortableString" instead of "toOsString" when setting the source search paths.
This commit is contained in:
parent
e7527608ff
commit
465bd40eb2
2 changed files with 13 additions and 4 deletions
|
@ -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
|
2005-06-27 Alain Magloire
|
||||||
Change in ICDIReferenceValue.
|
Change in ICDIReferenceValue.
|
||||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIReferenceValue.java
|
* cdi/org/eclipse/cdt/debug/core/cdi/model/type/ICDIReferenceValue.java
|
||||||
|
|
|
@ -94,8 +94,10 @@ import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.core.resources.IResourceChangeListener;
|
import org.eclipse.core.resources.IResourceChangeListener;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.MultiStatus;
|
import org.eclipse.core.runtime.MultiStatus;
|
||||||
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Preferences;
|
import org.eclipse.core.runtime.Preferences;
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener;
|
import org.eclipse.core.runtime.Preferences.IPropertyChangeListener;
|
||||||
|
@ -1729,17 +1731,19 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
if ( containers[i] instanceof ProjectSourceContainer ) {
|
if ( containers[i] instanceof ProjectSourceContainer ) {
|
||||||
IProject project = ((ProjectSourceContainer)containers[i]).getProject();
|
IProject project = ((ProjectSourceContainer)containers[i]).getProject();
|
||||||
if ( project != null && project.exists() )
|
if ( project != null && project.exists() )
|
||||||
list.add( project.getLocation().toOSString() );
|
list.add( project.getLocation().toPortableString() );
|
||||||
}
|
}
|
||||||
if ( containers[i] instanceof FolderSourceContainer ) {
|
if ( containers[i] instanceof FolderSourceContainer ) {
|
||||||
IContainer container = ((FolderSourceContainer)containers[i]).getContainer();
|
IContainer container = ((FolderSourceContainer)containers[i]).getContainer();
|
||||||
if ( container != null && container.exists() )
|
if ( container != null && container.exists() )
|
||||||
list.add( container.getLocation().toOSString() );
|
list.add( container.getLocation().toPortableString() );
|
||||||
}
|
}
|
||||||
if ( containers[i] instanceof CDirectorySourceContainer ) {
|
if ( containers[i] instanceof CDirectorySourceContainer ) {
|
||||||
File dir = ((CDirectorySourceContainer)containers[i]).getDirectory();
|
File dir = ((CDirectorySourceContainer)containers[i]).getDirectory();
|
||||||
if ( dir != null && dir.exists() )
|
if ( dir != null && dir.exists() ) {
|
||||||
list.add( dir.getAbsolutePath() );
|
IPath path = new Path( dir.getAbsolutePath() );
|
||||||
|
list.add( path.toPortableString() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( containers[i].isComposite() ) {
|
if ( containers[i].isComposite() ) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue