1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

change IFile to IPath for corefile

This commit is contained in:
David Inglis 2002-08-28 20:36:06 +00:00
parent 92dda1a9a6
commit f5bea71c1d

View file

@ -10,7 +10,7 @@ import org.eclipse.cdt.debug.core.ICDebugger;
import org.eclipse.cdt.debug.core.cdi.CDIException; import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.ICDISession; import org.eclipse.cdt.debug.core.cdi.ICDISession;
import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.IPath;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
public class GDBDebugger implements ICDebugger { public class GDBDebugger implements ICDebugger {
@ -33,9 +33,9 @@ public class GDBDebugger implements ICDebugger {
} }
} }
public ICDISession createCoreSession(ILaunchConfiguration config, IFile exe, IFile corefile) throws CDIException { public ICDISession createCoreSession(ILaunchConfiguration config, IFile exe, IPath corefile) throws CDIException {
try { try {
return MIPlugin.getDefault().createCSession(exe.getLocation().toOSString(), corefile.getLocation().toOSString()); return MIPlugin.getDefault().createCSession(exe.getLocation().toOSString(), corefile.toOSString());
} }
catch (IOException e) { catch (IOException e) {
throw new CDIException("Error initializing"); throw new CDIException("Error initializing");