Community
Participate
Working Groups
}
/**
* See bug232415
* See bug 232415
*
* @param path the absolute path to the source file
* @param path
* @return
* the absolute path to the source file
*/
* @return the simple filename if running on Windows and [path] is not an
private String adjustDebuggerPath(String path) {
* absolute UNIX one. Otherwise, [path] is returned
static String adjustDebuggerPath(String path) {
String result = path;
// Make it MinGW-specific
if (Platform.getOS().startsWith("win")) { //$NON-NLS-1$
if (!path.startsWith("/")) { //$NON-NLS-1$
result = path.substring(path.lastIndexOf('\\') + 1);
path = path.replace('\\', '/');
result = path.substring(path.lastIndexOf('/') + 1);
return result;
public void runToLine(IExecutionDMContext context, String sourceFile,
int lineNumber, boolean skipBreakpoints, RequestMonitor rm) {
// Hack around a MinGW bug; see 196154
sourceFile = MIBreakpointsManager.adjustDebuggerPath(sourceFile);
runToLocation(context, sourceFile + ":" + Integer.toString(lineNumber), skipBreakpoints, rm); //$NON-NLS-1$