Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Patch: org.eclipse.cdt.debug.mi.core.MIPlugin (Cygwin-related)

Folks,

Under Windows, in MIPlugin.createCSession(String gdb, String program),
if the function fails to create a PTY (ex, on Windows), then GDB
is executed without the "-tty" option.

The problem is that in this case, the program that gets executed is
hardcoded as "gdb" - the provided gdb parameter is ignored.

This patch removes two quotes and fixes the problem.

-Samrobb

--- MIPlugin.java.orig  2002-10-09 15:52:55.000000000 -0400
+++ MIPlugin.java       2002-10-09 15:54:37.000000000 -0400
@@ -80,7 +80,7 @@
                } catch (IOException e) {
                        //e.printStackTrace();
                        pty = null;
-                       args = new String[] {"gdb", "-q", "-nw", "-i", "mi1", program};
+                       args = new String[] {gdb, "-q", "-nw", "-i", "mi1", program};
                }

                Process pgdb = ProcessFactory.getFactory().exec(args);


Back to the top