Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CygwinMIEnvironmentDirectory.java')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CygwinMIEnvironmentDirectory.java43
1 files changed, 0 insertions, 43 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CygwinMIEnvironmentDirectory.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CygwinMIEnvironmentDirectory.java
deleted file mode 100644
index 3265bee8822..00000000000
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/CygwinMIEnvironmentDirectory.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- *(c) Copyright Rational Software Corporation, 2002
- * All Rights Reserved.
- *
- */
-
-package org.eclipse.cdt.debug.mi.core.command;
-
-import java.io.ByteArrayOutputStream;
-
-import org.eclipse.cdt.core.CommandLauncher;
-import org.eclipse.core.runtime.Path;
-
-/**
- * Cygwin implementation of the MIEnvironmentDirectory command. In the cygwin
- * environment, the paths are DOS paths and need to be converted to cygwin
- * style paths before passing them to gdb.
- */
-public class CygwinMIEnvironmentDirectory extends MIEnvironmentDirectory {
-
- CygwinMIEnvironmentDirectory(String[] paths) {
- super(paths);
-
- String[] newpaths = new String[paths.length];
- for (int i = 0; i < paths.length; i++) {
- // Use the cygpath utility to convert the path
- CommandLauncher launcher = new CommandLauncher();
- ByteArrayOutputStream output = new ByteArrayOutputStream();
-
- launcher.execute(
- new Path("cygpath"),
- new String[] { "-u", paths[i] },
- new String[0],
- new Path("."));
- if (launcher.waitAndRead(output, output) != CommandLauncher.OK)
- newpaths[i] = paths[i];
- else
- newpaths[i] = output.toString().trim();
- }
-
- setParameters(newpaths);
- }
-}

Back to the top