1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 23:45:23 +02:00

Bug 497691 - Allow all cu.* serial ports on Mac. Remove tty.*

gdb doesn't work when the serial port is tty.*. cu.* is supposed to
be for calling out, tty is for receiving. Our use cases are the former.

Change-Id: Iea15efbfa353eda3a7260c2f9c8a75a310f679f9
This commit is contained in:
Doug Schaefer 2016-08-12 13:42:19 -04:00
parent 08b8dca563
commit 057c7e099e

View file

@ -226,7 +226,7 @@ public class SerialPort {
public static String[] list() throws IOException {
String osName = System.getProperty("os.name"); //$NON-NLS-1$
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
return listDevs(Pattern.compile("(?:tty|cu)\\..*(?:usbserial|usbmodem).*")); //$NON-NLS-1$
return listDevs(Pattern.compile("cu\\..*")); //$NON-NLS-1$
} else if (osName.equals("Linux")) { //$NON-NLS-1$
return listDevs(Pattern.compile("ttyUSB.*")); //$NON-NLS-1$
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$